public class PageMappingServiceImpl extends Object implements PageMappingService
| Modifier and Type | Field and Description |
|---|---|
static String |
PAGE_MAPPING |
| Constructor and Description |
|---|
PageMappingServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor) |
| 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) |
List<SPageMapping> |
get(long pageId,
int startIndex,
int maxResults) |
SPageMapping |
get(String key) |
protected boolean |
isAllowedToAccess(SPageMapping pageMapping,
Map<String,Serializable> context,
List<String> pageAuthorizationRules) |
SPageURL |
resolvePageURL(SPageMapping pageMapping,
Map<String,Serializable> context,
boolean executeAuthorizationRules) |
void |
setAuthorizationRules(List<AuthorizationRule> authorizationRules) |
void |
setURLAdapters(List<URLAdapter> urlAdapters) |
void |
update(SPageMapping pageMapping,
Long pageId) |
void |
update(SPageMapping pageMapping,
String url,
String urlAdapter) |
public static final String PAGE_MAPPING
public PageMappingServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor)
public void setURLAdapters(List<URLAdapter> urlAdapters)
public void setAuthorizationRules(List<AuthorizationRule> authorizationRules)
public SPageMapping create(String key, Long pageId, List<String> authorizationRules) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException
create in interface PageMappingServiceorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionpublic SPageMapping create(String key, String url, String urlAdapter, List<String> authorizationRules) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException
create in interface PageMappingServiceorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionpublic SPageMapping get(String key) throws org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException, org.bonitasoft.engine.persistence.SBonitaReadException
get in interface PageMappingServiceorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic SPageURL resolvePageURL(SPageMapping pageMapping, Map<String,Serializable> context, boolean executeAuthorizationRules) throws org.bonitasoft.engine.commons.exceptions.SExecutionException, SAuthorizationException
resolvePageURL in interface PageMappingServiceorg.bonitasoft.engine.commons.exceptions.SExecutionExceptionSAuthorizationExceptionprotected boolean isAllowedToAccess(SPageMapping pageMapping, Map<String,Serializable> context, List<String> pageAuthorizationRules) throws org.bonitasoft.engine.commons.exceptions.SExecutionException
org.bonitasoft.engine.commons.exceptions.SExecutionExceptionpublic void delete(SPageMapping sPageMapping) throws org.bonitasoft.engine.commons.exceptions.SDeletionException
delete in interface PageMappingServiceorg.bonitasoft.engine.commons.exceptions.SDeletionExceptionpublic void update(SPageMapping pageMapping, Long pageId) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException, org.bonitasoft.engine.persistence.SBonitaReadException
update in interface PageMappingServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void 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
update in interface PageMappingServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SPageMapping> get(long pageId, int startIndex, int maxResults) throws org.bonitasoft.engine.persistence.SBonitaReadException
get in interface PageMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.