fr.paris.lutece.plugins.document.modules.ckan.service
Class CkanService

java.lang.Object
  extended by fr.paris.lutece.plugins.document.modules.ckan.service.CkanService

public class CkanService
extends Object

CkanService


Field Summary
static String NOT_FOUND
           
 
Constructor Summary
CkanService()
           
 
Method Summary
 String getDefault(String strKey)
          Get a default value for a given key
 String getMapping(String strKey)
          Get the mapping value for a given key
static String getNameId(fr.paris.lutece.plugins.document.business.Document doc)
          Build the name ID
 String getResourceUrlFormat()
          Return the resource URL format
 void setDefaults(Map defaults)
          Sets defaults (injected)
 void setMappings(Map mappings)
          Sets the mappings (injected)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_FOUND

public static final String NOT_FOUND
See Also:
Constant Field Values
Constructor Detail

CkanService

public CkanService()
Method Detail

setMappings

public void setMappings(Map mappings)
Sets the mappings (injected)

Parameters:
mappings -

setDefaults

public void setDefaults(Map defaults)
Sets defaults (injected)

Parameters:
defaults -

getResourceUrlFormat

public String getResourceUrlFormat()
Return the resource URL format

Returns:
the resource URL format

getMapping

public String getMapping(String strKey)
Get the mapping value for a given key

Parameters:
strKey - The key
Returns:
The value

getDefault

public String getDefault(String strKey)
Get a default value for a given key

Parameters:
strKey - The Key
Returns:
The value

getNameId

public static String getNameId(fr.paris.lutece.plugins.document.business.Document doc)
Build the name ID

Parameters:
doc - The document
Returns:
The ID


Copyright © 2013 Mairie de Paris. All Rights Reserved.