public class ResourceExtenderService extends Object implements IResourceExtenderService
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_SERVICE
The Constant BEAN_SERVICE.
|
| Constructor and Description |
|---|
ResourceExtenderService() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(ResourceExtenderDTO extender)
Creates.
|
void |
doCreateResourceAddOn(ResourceExtenderDTO resourceExtender)
Do create resource add on.
|
void |
doDeleteResourceAddOn(ResourceExtenderDTO resourceExtender)
Do delete resource add on.
|
List<ResourceExtenderDTO> |
findAll()
Find by id hub resource.
|
List<ResourceExtenderDTO> |
findByFilter(ResourceExtenderDTOFilter filter)
Find by filter.
|
List<ResourceExtenderDTO> |
findByListIds(List<Integer> listIds)
Find by list ids.
|
ResourceExtenderDTO |
findByPrimaryKey(int nIdExtender)
Find by primary key.
|
List<Integer> |
findIdsByFilter(ResourceExtenderDTOFilter filter)
Find ids by filter.
|
ResourceExtenderDTO |
findResourceExtender(String strExtenderType,
String strIdExtendableResource,
String strExtendableResourceType)
Find the resource extender.
|
ResourceExtenderDTO |
findResourceExtenderIncludingWildcard(String strExtenderType,
String strIdExtendableResource,
String strExtendableResourceType)
Find the resource extender, or the wildcard resource extender if no extender with the specified id exists.
|
ResourceExtenderDTO |
findWildCardResourceExtender(String strExtenderType,
String strExtendableResourceType)
Find wildcard resource extender.
|
Map<String,Map<String,Boolean>> |
getActionPermissions(List<Integer> listIds,
fr.paris.lutece.portal.business.user.AdminUser user)
Gets the actions permission.
|
String |
getContent(String strIdExtendableResource,
String strExtendableResourceType,
String strExtenderType,
String strParameters,
javax.servlet.http.HttpServletRequest request)
Gets the resource extender content.
|
fr.paris.lutece.portal.service.resource.IExtendableResource |
getExtendableResource(ResourceExtenderDTO resourceExtender)
Gets the extendable resource
|
fr.paris.lutece.portal.service.resource.IExtendableResource |
getExtendableResource(String strIdExtendableResource,
String strExtendableResourceType)
Gets the extendable resource.
|
String |
getExtendableResourceName(ResourceExtenderDTO resourceExtender)
Gets the extendable resource name.
|
String |
getExtendableResourceName(String strIdExtendableResource,
String strExtendableResourceType)
Gets the extendable resource name.
|
String |
getExtendableResourceUrl(String strIdResource,
String strResourceType)
Get the main URL to access a resource
|
fr.paris.lutece.util.ReferenceList |
getExtenderTypes(Locale locale)
Gets the extender types.
|
Map<String,Boolean> |
getExtenderTypesInstalled(String strIdExtendableResource,
String strExtendableResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of installed extenders for a given resource id and a given resource type.
|
IResourceExtender |
getResourceExtender(String strExtenderType)
Gets the resource extender.
|
List<IResourceExtender> |
getResourceExtenders()
Gets the resource extenders.
|
boolean |
isAuthorized(String strIdExtendableResource,
String strExtendableResourceType,
String strExtenderType)
Checks if is authorized.
|
boolean |
isAuthorizedToAllResources(int nIdExtender)
Checks if is authorized to all resources.
|
boolean |
isAuthorizedToAllResources(String strExtendableResourceType,
String strExtenderType)
Checks if is authorized to all resources.
|
void |
remove(int nIdExtender)
Delete.
|
void |
update(ResourceExtenderDTO extender)
Update.
|
public static final String BEAN_SERVICE
@Transactional(value="extend.transactionManager") public void create(ResourceExtenderDTO extender)
create in interface IResourceExtenderServiceextender - the extender@Transactional(value="extend.transactionManager") public void update(ResourceExtenderDTO extender)
update in interface IResourceExtenderServiceextender - the extender@Transactional(value="extend.transactionManager") public void remove(int nIdExtender)
remove in interface IResourceExtenderServicenIdExtender - the n id extenderpublic boolean isAuthorized(String strIdExtendableResource, String strExtendableResourceType, String strExtenderType)
isAuthorized in interface IResourceExtenderServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typestrExtenderType - the str extender typepublic boolean isAuthorizedToAllResources(String strExtendableResourceType, String strExtenderType)
isAuthorizedToAllResources in interface IResourceExtenderServicestrExtendableResourceType - the str extendable resource typestrExtenderType - the str extender typepublic boolean isAuthorizedToAllResources(int nIdExtender)
isAuthorizedToAllResources in interface IResourceExtenderServicenIdExtender - the n id extenderpublic ResourceExtenderDTO findByPrimaryKey(int nIdExtender)
findByPrimaryKey in interface IResourceExtenderServicenIdExtender - the n id extenderpublic List<ResourceExtenderDTO> findAll()
findAll in interface IResourceExtenderServicepublic List<ResourceExtenderDTO> findByFilter(ResourceExtenderDTOFilter filter)
findByFilter in interface IResourceExtenderServicefilter - the filterpublic ResourceExtenderDTO findResourceExtender(String strExtenderType, String strIdExtendableResource, String strExtendableResourceType)
findResourceExtender in interface IResourceExtenderServicestrExtenderType - the str extender typestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic ResourceExtenderDTO findWildCardResourceExtender(String strExtenderType, String strExtendableResourceType)
findWildCardResourceExtender in interface IResourceExtenderServicestrExtenderType - the str extender typestrExtendableResourceType - the str extendable resource typepublic ResourceExtenderDTO findResourceExtenderIncludingWildcard(String strExtenderType, String strIdExtendableResource, String strExtendableResourceType)
findResourceExtenderIncludingWildcard in interface IResourceExtenderServicestrExtenderType - the str extender typestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic List<Integer> findIdsByFilter(ResourceExtenderDTOFilter filter)
findIdsByFilter in interface IResourceExtenderServicefilter - the filterpublic List<ResourceExtenderDTO> findByListIds(List<Integer> listIds)
findByListIds in interface IResourceExtenderServicelistIds - the list idspublic fr.paris.lutece.util.ReferenceList getExtenderTypes(Locale locale)
getExtenderTypes in interface IResourceExtenderServicelocale - the localepublic Map<String,Boolean> getExtenderTypesInstalled(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getExtenderTypesInstalled in interface IResourceExtenderServicestrIdExtendableResource - Id of the resourcestrExtendableResourceType - Type of the resourceplugin - the pluginpublic String getContent(String strIdExtendableResource, String strExtendableResourceType, String strExtenderType, String strParameters, javax.servlet.http.HttpServletRequest request)
getContent in interface IResourceExtenderServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typestrExtenderType - the str resource extender typestrParameters - the str parametersrequest - the requestpublic void doCreateResourceAddOn(ResourceExtenderDTO resourceExtender)
doCreateResourceAddOn in interface IResourceExtenderServiceresourceExtender - the extenderpublic void doDeleteResourceAddOn(ResourceExtenderDTO resourceExtender)
doDeleteResourceAddOn in interface IResourceExtenderServiceresourceExtender - the extenderpublic List<IResourceExtender> getResourceExtenders()
getResourceExtenders in interface IResourceExtenderServicepublic IResourceExtender getResourceExtender(String strExtenderType)
getResourceExtender in interface IResourceExtenderServicestrExtenderType - the str extender typepublic String getExtendableResourceName(ResourceExtenderDTO resourceExtender)
getExtendableResourceName in interface IResourceExtenderServiceresourceExtender - the resource extenderpublic String getExtendableResourceName(String strIdExtendableResource, String strExtendableResourceType)
getExtendableResourceName in interface IResourceExtenderServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic fr.paris.lutece.portal.service.resource.IExtendableResource getExtendableResource(String strIdExtendableResource, String strExtendableResourceType)
getExtendableResource in interface IResourceExtenderServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic fr.paris.lutece.portal.service.resource.IExtendableResource getExtendableResource(ResourceExtenderDTO resourceExtender)
getExtendableResource in interface IResourceExtenderServiceresourceExtender - the resource extenderpublic Map<String,Map<String,Boolean>> getActionPermissions(List<Integer> listIds, fr.paris.lutece.portal.business.user.AdminUser user)
getActionPermissions in interface IResourceExtenderServicelistIds - the list idsuser - the userpublic String getExtendableResourceUrl(String strIdResource, String strResourceType)
getExtendableResourceUrl in interface IResourceExtenderServicestrIdResource - The id of the resourcestrResourceType - The type of a resourceCopyright © 2022 City of Paris. All rights reserved.