public interface PageMappingService
URLAdapter| Modifier and Type | Method and Description |
|---|---|
SPageMapping |
create(java.lang.String key,
java.lang.Long pageId,
java.util.List<java.lang.String> authorizationRules) |
SPageMapping |
create(java.lang.String key,
java.lang.String url,
java.lang.String urlAdapter,
java.util.List<java.lang.String> authorizationRules) |
void |
delete(SPageMapping SPageMapping)
delete this page mapping
|
java.util.List<SPageMapping> |
get(long pageId,
int startIndex,
int maxResults)
Gets the paginated mappings of the page.
|
SPageMapping |
get(java.lang.String key) |
SPageURL |
resolvePageURL(SPageMapping pageMapping,
java.util.Map<java.lang.String,java.io.Serializable> context,
boolean executeAuthorizationRules) |
void |
update(SPageMapping pageMapping,
java.lang.Long pageId)
update the given page mapping
|
void |
update(SPageMapping pageMapping,
java.lang.String url,
java.lang.String urlAdapter)
update the given page mapping
|
SPageMapping create(java.lang.String key, java.lang.Long pageId, java.util.List<java.lang.String> authorizationRules) throws SObjectCreationException
key - the key used to retrieve the mappingpageId - the id of the custom pageauthorizationRules - the names of the authorization rules to executeSObjectCreationException - when there is an issue while creating this objectSPageMapping create(java.lang.String key, java.lang.String url, java.lang.String urlAdapter, java.util.List<java.lang.String> authorizationRules) throws SObjectCreationException
key - the key used to retrieve the mappingurl - the external URL the mapping points tourlAdapter - the name of the URL adapter that transform the URL in case of an external URL. i.e. it can add
parametersauthorizationRules - the names of the authorization rules to executeSObjectCreationException - when there is an issue while creating this objectSPageMapping get(java.lang.String key) throws SObjectNotFoundException, SBonitaReadException
key - the key of the page mapping to retrieveSObjectNotFoundException - when there is no mapping having this keySBonitaReadExceptionSPageURL resolvePageURL(SPageMapping pageMapping, java.util.Map<java.lang.String,java.io.Serializable> context, boolean executeAuthorizationRules) throws SExecutionException, SAuthorizationException
pageMapping - context - executeAuthorizationRules - SExecutionExceptionSAuthorizationExceptionvoid delete(SPageMapping SPageMapping) throws SDeletionException
SPageMapping - the page mapping to deleteSDeletionExceptionvoid update(SPageMapping pageMapping, java.lang.Long pageId) throws SObjectModificationException, SObjectNotFoundException, SBonitaReadException
pageMapping - the pageMapping to updatepageId - the id of the page or nullSObjectModificationExceptionSObjectNotFoundExceptionSBonitaReadExceptionvoid update(SPageMapping pageMapping, java.lang.String url, java.lang.String urlAdapter) throws SObjectModificationException, SObjectNotFoundException, SBonitaReadException
pageMapping - the pageMapping to updateurl - the URL or nullurlAdapter - the new URL adapter to useSObjectModificationExceptionSObjectNotFoundExceptionSBonitaReadExceptionjava.util.List<SPageMapping> get(long pageId, int startIndex, int maxResults) throws SBonitaReadException
pageId - the page identifierstartIndex - the start indexmaxResults - the max resultsSBonitaReadException