fr.paris.lutece.plugins.theme.service
Class ThemeResourceIdService

java.lang.Object
  extended by fr.paris.lutece.portal.service.rbac.ResourceIdService
      extended by fr.paris.lutece.plugins.theme.service.ThemeResourceIdService

public class ThemeResourceIdService
extends fr.paris.lutece.portal.service.rbac.ResourceIdService

ThemeResourceIdService


Field Summary
static java.lang.String PERMISSION_CREATE_THEME
           
static java.lang.String PERMISSION_DELETE_THEME
           
static java.lang.String PERMISSION_MODIFY_GLOBAL_THEME
           
static java.lang.String PERMISSION_MODIFY_THEME
           
 
Constructor Summary
ThemeResourceIdService()
          Create a new instance of ThemeResourceIdService
 
Method Summary
 fr.paris.lutece.util.ReferenceList getResourceIdList(java.util.Locale locale)
          Returns a list of theme resource ids
 java.lang.String getTitle(java.lang.String strTheme, java.util.Locale locale)
          Returns the Title of a given resource
 void register()
          Initializes the service
 
Methods inherited from class fr.paris.lutece.portal.service.rbac.ResourceIdService
getPluginName, setPluginName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERMISSION_CREATE_THEME

public static final java.lang.String PERMISSION_CREATE_THEME
See Also:
Constant Field Values

PERMISSION_MODIFY_THEME

public static final java.lang.String PERMISSION_MODIFY_THEME
See Also:
Constant Field Values

PERMISSION_DELETE_THEME

public static final java.lang.String PERMISSION_DELETE_THEME
See Also:
Constant Field Values

PERMISSION_MODIFY_GLOBAL_THEME

public static final java.lang.String PERMISSION_MODIFY_GLOBAL_THEME
See Also:
Constant Field Values
Constructor Detail

ThemeResourceIdService

public ThemeResourceIdService()
Create a new instance of ThemeResourceIdService

Method Detail

register

public void register()
Initializes the service

Specified by:
register in class fr.paris.lutece.portal.service.rbac.ResourceIdService

getResourceIdList

public fr.paris.lutece.util.ReferenceList getResourceIdList(java.util.Locale locale)
Returns a list of theme resource ids

Specified by:
getResourceIdList in class fr.paris.lutece.portal.service.rbac.ResourceIdService
Parameters:
locale - The current locale
Returns:
A list of resource ids

getTitle

public java.lang.String getTitle(java.lang.String strTheme,
                                 java.util.Locale locale)
Returns the Title of a given resource

Specified by:
getTitle in class fr.paris.lutece.portal.service.rbac.ResourceIdService
Parameters:
strTheme - the theme key
locale - The current locale
Returns:
The Title of a given resource


Copyright © 2011 Mairie de Paris. All Rights Reserved.