public interface PageMappingService
URLAdapter| Modifier and Type | Method and Description |
|---|---|
SPageMapping |
create(String key,
Long pageId,
List<String> authorizationRules) |
SPageMapping |
create(String key,
String url,
String urlAdapter,
List<String> authorizationRules) |
void |
delete(SPageMapping SPageMapping)
delete this page mapping
|
List<SPageMapping> |
get(long pageId,
int startIndex,
int maxResults)
Gets the paginated mappings of the page.
|
SPageMapping |
get(String key) |
SPageURL |
resolvePageURL(SPageMapping pageMapping,
Map<String,Serializable> context,
boolean executeAuthorizationRules) |
void |
update(SPageMapping pageMapping,
Long pageId)
update the given page mapping
|
void |
update(SPageMapping pageMapping,
String url,
String urlAdapter)
update the given page mapping
|
SPageMapping create(String key, Long pageId, List<String> authorizationRules) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException
key - the key used to retrieve the mappingpageId - the id of the custom pageauthorizationRules - the names of the authorization rules to executeorg.bonitasoft.engine.commons.exceptions.SObjectCreationException - when there is an issue while creating this objectSPageMapping create(String key, String url, String urlAdapter, List<String> authorizationRules) throws org.bonitasoft.engine.commons.exceptions.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 executeorg.bonitasoft.engine.commons.exceptions.SObjectCreationException - when there is an issue while creating this objectSPageMapping get(String key) throws org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException, org.bonitasoft.engine.persistence.SBonitaReadException
key - the key of the page mapping to retrieveorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundException - when there is no mapping having this keyorg.bonitasoft.engine.persistence.SBonitaReadExceptionSPageURL resolvePageURL(SPageMapping pageMapping, Map<String,Serializable> context, boolean executeAuthorizationRules) throws org.bonitasoft.engine.commons.exceptions.SExecutionException, SAuthorizationException
pageMapping - context - executeAuthorizationRules - org.bonitasoft.engine.commons.exceptions.SExecutionExceptionSAuthorizationExceptionvoid delete(SPageMapping SPageMapping) throws org.bonitasoft.engine.commons.exceptions.SDeletionException
SPageMapping - the page mapping to deleteorg.bonitasoft.engine.commons.exceptions.SDeletionExceptionvoid update(SPageMapping pageMapping, Long pageId) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException, org.bonitasoft.engine.persistence.SBonitaReadException
pageMapping - the pageMapping to updatepageId - the id of the page or nullorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionvoid update(SPageMapping pageMapping, String url, String urlAdapter) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException, org.bonitasoft.engine.persistence.SBonitaReadException
pageMapping - the pageMapping to updateurl - the URL or nullurlAdapter - the new URL adapter to useorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionList<SPageMapping> get(long pageId, int startIndex, int maxResults) throws org.bonitasoft.engine.persistence.SBonitaReadException
pageId - the page identifierstartIndex - the start indexmaxResults - the max resultsorg.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.