public class FormMappingServiceImpl extends Object implements FormMappingService
| Modifier and Type | Field and Description |
|---|---|
static String |
FORM_MAPPING |
| Constructor and Description |
|---|
FormMappingServiceImpl(Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
SessionService sessionService,
ReadSessionAccessor sessionAccessor,
PageMappingService pageMappingService,
PageService pageService,
FormMappingKeyGenerator formMappingKeyGenerator,
String externalUrlAdapter,
String legacyUrlAdapter,
QueriableLoggerService queriableLoggerService,
AuthorizationRuleMapping authorizationRuleMapping) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
checkAndGetUrlAdapter(String url) |
protected void |
checkThatInternalPageExists(Long pageId) |
protected void |
checkUrlNotEmpty(String url) |
SFormMapping |
create(long processDefinitionId,
String task,
Integer type,
String target,
String form) |
protected SPageMapping |
createPageMappingForExistingFormMapping(SFormMapping formMapping,
String url,
Long pageId) |
void |
delete(SFormMapping formMapping) |
SFormMapping |
get(long formMappingId) |
SFormMapping |
get(long processDefinitionId,
Integer type) |
SFormMapping |
get(long processDefinitionId,
Integer type,
String task) |
SFormMapping |
get(String key) |
long |
getNumberOfFormMappings(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<SFormMapping> |
list(int fromIndex,
int numberOfResults) |
List<SFormMapping> |
list(long processDefinitionId,
int fromIndex,
int numberOfResults) |
List<SFormMapping> |
searchFormMappings(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
void |
update(SFormMapping formMapping,
String url,
Long pageId) |
public static final String FORM_MAPPING
public FormMappingServiceImpl(Recorder recorder, org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService, SessionService sessionService, ReadSessionAccessor sessionAccessor, PageMappingService pageMappingService, PageService pageService, FormMappingKeyGenerator formMappingKeyGenerator, String externalUrlAdapter, String legacyUrlAdapter, QueriableLoggerService queriableLoggerService, AuthorizationRuleMapping authorizationRuleMapping)
public SFormMapping create(long processDefinitionId, String task, Integer type, String target, String form) throws org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectCreationException
create in interface FormMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionpublic void update(SFormMapping formMapping, String url, Long pageId) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
update in interface FormMappingServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionprotected SPageMapping createPageMappingForExistingFormMapping(SFormMapping formMapping, String url, Long pageId) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException
org.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionprotected void checkThatInternalPageExists(Long pageId) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
org.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionprotected String checkAndGetUrlAdapter(String url) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
org.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionprotected void checkUrlNotEmpty(String url) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
org.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic void delete(SFormMapping formMapping) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
delete in interface FormMappingServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic SFormMapping get(long formMappingId) throws org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
get in interface FormMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SFormMapping get(String key) throws org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
get in interface FormMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SFormMapping get(long processDefinitionId, Integer type, String task) throws org.bonitasoft.engine.persistence.SBonitaReadException
get in interface FormMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic SFormMapping get(long processDefinitionId, Integer type) throws org.bonitasoft.engine.persistence.SBonitaReadException
get in interface FormMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SFormMapping> list(long processDefinitionId, int fromIndex, int numberOfResults) throws org.bonitasoft.engine.persistence.SBonitaReadException
list in interface FormMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SFormMapping> list(int fromIndex, int numberOfResults) throws org.bonitasoft.engine.persistence.SBonitaReadException
list in interface FormMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfFormMappings(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfFormMappings in interface FormMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SFormMapping> searchFormMappings(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchFormMappings in interface FormMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.