Interface IResourceExtenderService
- All Known Implementing Classes:
ResourceExtenderService
public interface IResourceExtenderService
IResourceExtenderService
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(ResourceExtenderDTO extender) Creates.voiddoCreateResourceAddOn(ResourceExtenderDTO resourceExtender) Do create resource add on.voiddoDeleteResourceAddOn(ResourceExtenderDTO resourceExtender) Do delete resource add on.findAll()Find by id hub resource.Find by filter.findByListIds(List<Integer> listIds) Find by list ids.findByPrimaryKey(int nIdExtender) Find by primary key.Find ids by filter.findResourceExtender(String strExtenderType, String strIdExtendableResource, String strExtendableResourceType) Find the resource extender.findResourceExtenderIncludingWildcard(String strExtenderType, String strIdExtendableResource, String strExtendableResourceType) Find the resource extender, or the wildcard resource extender if no extender with the specified id exists.findWildCardResourceExtender(String strExtenderType, String strExtendableResourceType) Find wildcard resource extender.getActionPermissions(List<Integer> listIds, fr.paris.lutece.portal.business.user.AdminUser user) Gets the actions permission.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.IExtendableResourcegetExtendableResource(ResourceExtenderDTO resourceExtender) Gets the extendable resourcefr.paris.lutece.portal.service.resource.IExtendableResourcegetExtendableResource(String strIdExtendableResource, String strExtendableResourceType) Gets the extendable resource.getExtendableResourceName(ResourceExtenderDTO resourceExtender) Gets the extendable resource name.getExtendableResourceName(String strIdExtendableResource, String strExtendableResourceType) Gets the extendable resource name.getExtendableResourceUrl(String strIdResource, String strResourceType) Get the main URL to access a resourcefr.paris.lutece.util.ReferenceListgetExtenderTypes(Locale locale) Gets the extender types.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.getResourceExtender(String strExtenderType) Gets the resource extender.Gets the resource extenders.booleanisAuthorized(String strIdExtendableResource, String strExtendableResourceType, String strExtenderType) Checks if is authorized.booleanisAuthorizedToAllResources(int nIdExtender) Checks if is authorized to all resources.booleanisAuthorizedToAllResources(String strExtendableResourceType, String strExtenderType) Checks if is authorized to all resources.voidremove(int nIdExtender) Delete.voidupdate(ResourceExtenderDTO extender) Update.
-
Method Details
-
create
Creates.- Parameters:
extender- the extender
-
update
Update.- Parameters:
extender- the extender
-
remove
@Transactional("extend.transactionManager") void remove(int nIdExtender) Delete.- Parameters:
nIdExtender- the n id extender
-
findByPrimaryKey
Find by primary key.- Parameters:
nIdExtender- the n id extender- Returns:
- the extender
-
findAll
List<ResourceExtenderDTO> findAll()Find by id hub resource.- Returns:
- the list
-
findByFilter
Find by filter.- Parameters:
filter- the filter- Returns:
- the list
-
findIdsByFilter
Find ids by filter.- Parameters:
filter- the filter- Returns:
- the list
-
findByListIds
Find by list ids.- Parameters:
listIds- the list ids- Returns:
- the list
-
findResourceExtender
ResourceExtenderDTO findResourceExtender(String strExtenderType, String strIdExtendableResource, String strExtendableResourceType) Find the resource extender.- Parameters:
strExtenderType- the str extender typestrIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type- Returns:
- the resource extender dto
-
findWildCardResourceExtender
ResourceExtenderDTO findWildCardResourceExtender(String strExtenderType, String strExtendableResourceType) Find wildcard resource extender.- Parameters:
strExtenderType- the str extender typestrExtendableResourceType- the str extendable resource type- Returns:
- the resource extender dto
-
findResourceExtenderIncludingWildcard
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.- Parameters:
strExtenderType- the str extender typestrIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type- Returns:
- the resource extender dto
-
getExtenderTypes
Gets the extender types.- Parameters:
locale- the locale- Returns:
- the extender types
-
getExtenderTypesInstalled
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.- Parameters:
strIdExtendableResource- Id of the resourcestrExtendableResourceType- Type of the resourceplugin- the plugin- Returns:
- A map of associations of string / boolean. Only installed extender types are considered.
-
isAuthorized
boolean isAuthorized(String strIdExtendableResource, String strExtendableResourceType, String strExtenderType) Checks if is authorized.- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typestrExtenderType- the str extender type- Returns:
- true, if is authorized
-
isAuthorizedToAllResources
Checks if is authorized to all resources.- Parameters:
strExtendableResourceType- the str extendable resource typestrExtenderType- the str extender type- Returns:
- true, if is authorized to all resources
-
isAuthorizedToAllResources
boolean isAuthorizedToAllResources(int nIdExtender) Checks if is authorized to all resources.- Parameters:
nIdExtender- the n id extender- Returns:
- true, if is authorized to all resources
-
getContent
String getContent(String strIdExtendableResource, String strExtendableResourceType, String strExtenderType, String strParameters, javax.servlet.http.HttpServletRequest request) Gets the resource extender content.- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typestrExtenderType- the str resource extender typestrParameters- the str parametersrequest- the request- Returns:
- the resource extender content
-
doCreateResourceAddOn
Do create resource add on.- Parameters:
resourceExtender- the extender
-
doDeleteResourceAddOn
Do delete resource add on.- Parameters:
resourceExtender- the extender
-
getResourceExtenders
List<IResourceExtender> getResourceExtenders()Gets the resource extenders.- Returns:
- the resource extenders
-
getResourceExtender
Gets the resource extender.- Parameters:
strExtenderType- the str extender type- Returns:
- the resource extender
-
getExtendableResourceName
Gets the extendable resource name.- Parameters:
resourceExtender- the resource extender- Returns:
- the extendable resource name
-
getExtendableResourceName
Gets the extendable resource name.- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type- Returns:
- the extendable resource name
-
getExtendableResource
fr.paris.lutece.portal.service.resource.IExtendableResource getExtendableResource(ResourceExtenderDTO resourceExtender) Gets the extendable resource- Parameters:
resourceExtender- the resource extender- Returns:
- the extendable resource
-
getExtendableResource
fr.paris.lutece.portal.service.resource.IExtendableResource getExtendableResource(String strIdExtendableResource, String strExtendableResourceType) Gets the extendable resource.- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type- Returns:
- the extendable resource
-
getActionPermissions
Map<String,Map<String, getActionPermissionsBoolean>> (List<Integer> listIds, fr.paris.lutece.portal.business.user.AdminUser user) Gets the actions permission.- Parameters:
listIds- the list idsuser- the user- Returns:
- the actions permission
-
getExtendableResourceUrl
Get the main URL to access a resource- Parameters:
strIdResource- The id of the resourcestrResourceType- The type of a resource- Returns:
- The main URL to access a resource, or null if the resource has no main URL
-