fr.paris.lutece.plugins.extend.service
Class DefaultExtendableResourceService

java.lang.Object
  extended by fr.paris.lutece.plugins.extend.service.DefaultExtendableResourceService
All Implemented Interfaces:
IDefaultExtendableResourceService, fr.paris.lutece.portal.service.resource.IExtendableResourceService

public class DefaultExtendableResourceService
extends Object
implements IDefaultExtendableResourceService

Default service that is invoked when other IExtendableResourceService are not invoked. This service stores in database the information of the IExtendableResource :


Field Summary
static String BEAN_SERVICE
          The Constant BEAN_SERVICE.
 
Constructor Summary
DefaultExtendableResourceService()
           
 
Method Summary
 void create(fr.paris.lutece.portal.service.resource.IExtendableResource resource)
          Creates default resource.
 fr.paris.lutece.portal.service.resource.IExtendableResource getResource(String strIdResource, String strResourceType)
          
 String getResourceType()
          
 String getResourceTypeDescription(Locale locale)
          
 String getResourceUrl(String strIdResource, String strResourceType)
          
 boolean isInvoked(String strResourceType)
          
 void remove(String strIdResource, String strResourceType)
          Delete.
 void update(fr.paris.lutece.portal.service.resource.IExtendableResource resource)
          Update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_SERVICE

public static final String BEAN_SERVICE
The Constant BEAN_SERVICE.

See Also:
Constant Field Values
Constructor Detail

DefaultExtendableResourceService

public DefaultExtendableResourceService()
Method Detail

isInvoked

public boolean isInvoked(String strResourceType)

Specified by:
isInvoked in interface fr.paris.lutece.portal.service.resource.IExtendableResourceService

getResource

public fr.paris.lutece.portal.service.resource.IExtendableResource getResource(String strIdResource,
                                                                               String strResourceType)

Specified by:
getResource in interface fr.paris.lutece.portal.service.resource.IExtendableResourceService

create

@Transactional(value="extend.transactionManager")
public void create(fr.paris.lutece.portal.service.resource.IExtendableResource resource)
Creates default resource.

Specified by:
create in interface IDefaultExtendableResourceService
Parameters:
resource - the resource

update

@Transactional(value="extend.transactionManager")
public void update(fr.paris.lutece.portal.service.resource.IExtendableResource resource)
Update.

Specified by:
update in interface IDefaultExtendableResourceService
Parameters:
resource - the resource

remove

@Transactional(value="extend.transactionManager")
public void remove(String strIdResource,
                                 String strResourceType)
Delete.

Specified by:
remove in interface IDefaultExtendableResourceService
Parameters:
strIdResource - the str id resource
strResourceType - the str resource type

getResourceType

public String getResourceType()

Specified by:
getResourceType in interface fr.paris.lutece.portal.service.resource.IExtendableResourceService

getResourceTypeDescription

public String getResourceTypeDescription(Locale locale)

Specified by:
getResourceTypeDescription in interface fr.paris.lutece.portal.service.resource.IExtendableResourceService

getResourceUrl

public String getResourceUrl(String strIdResource,
                             String strResourceType)

Specified by:
getResourceUrl in interface fr.paris.lutece.portal.service.resource.IExtendableResourceService


Copyright © 2013 Mairie de Paris. All Rights Reserved.