Class FormMappingServiceImpl
java.lang.Object
org.bonitasoft.engine.core.form.impl.FormMappingServiceImpl
- All Implemented Interfaces:
FormMappingService
- Author:
- Baptiste Mesta
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFormMappingServiceImpl(Recorder recorder, ReadPersistenceService persistenceService, SessionService sessionService, ReadSessionAccessor sessionAccessor, PageMappingService pageMappingService, PageService pageService, FormMappingKeyGenerator formMappingKeyGenerator, String externalUrlAdapter, String legacyUrlAdapter, QueriableLoggerService queriableLoggerService, AuthorizationRuleMapping authorizationRuleMapping) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voidcheckThatInternalPageExists(Long pageId) protected voidcheckUrlNotEmpty(String url) protected SPageMappingcreatePageMappingForExistingFormMapping(SFormMapping formMapping, String url, Long pageId) voiddelete(SFormMapping formMapping) get(long formMappingId) longgetNumberOfFormMappings(QueryOptions queryOptions) list(int fromIndex, int numberOfResults) list(long processDefinitionId, int fromIndex, int numberOfResults) searchFormMappings(QueryOptions queryOptions) voidupdate(SFormMapping formMapping, String url, Long pageId)
-
Field Details
-
FORM_MAPPING
- See Also:
-
-
Constructor Details
-
FormMappingServiceImpl
public FormMappingServiceImpl(Recorder recorder, ReadPersistenceService persistenceService, SessionService sessionService, ReadSessionAccessor sessionAccessor, PageMappingService pageMappingService, PageService pageService, FormMappingKeyGenerator formMappingKeyGenerator, String externalUrlAdapter, String legacyUrlAdapter, QueriableLoggerService queriableLoggerService, AuthorizationRuleMapping authorizationRuleMapping)
-
-
Method Details
-
create
public SFormMapping create(long processDefinitionId, String task, Integer type, String target, String form) throws SBonitaReadException, SObjectCreationException - Specified by:
createin interfaceFormMappingService- Throws:
SBonitaReadExceptionSObjectCreationException
-
update
public void update(SFormMapping formMapping, String url, Long pageId) throws SObjectModificationException - Specified by:
updatein interfaceFormMappingService- Throws:
SObjectModificationException
-
createPageMappingForExistingFormMapping
protected SPageMapping createPageMappingForExistingFormMapping(SFormMapping formMapping, String url, Long pageId) throws SObjectCreationException - Throws:
SObjectCreationException
-
checkThatInternalPageExists
- Throws:
SObjectModificationException
-
checkAndGetUrlAdapter
- Throws:
SObjectModificationException
-
checkUrlNotEmpty
- Throws:
SObjectModificationException
-
delete
- Specified by:
deletein interfaceFormMappingService- Throws:
SObjectModificationException
-
get
- Specified by:
getin interfaceFormMappingService- Throws:
SBonitaReadExceptionSObjectNotFoundException
-
get
- Specified by:
getin interfaceFormMappingService- Throws:
SBonitaReadExceptionSObjectNotFoundException
-
get
public SFormMapping get(long processDefinitionId, Integer type, String task) throws SBonitaReadException - Specified by:
getin interfaceFormMappingService- Throws:
SBonitaReadException
-
get
- Specified by:
getin interfaceFormMappingService- Throws:
SBonitaReadException
-
list
public List<SFormMapping> list(long processDefinitionId, int fromIndex, int numberOfResults) throws SBonitaReadException - Specified by:
listin interfaceFormMappingService- Throws:
SBonitaReadException
-
list
- Specified by:
listin interfaceFormMappingService- Throws:
SBonitaReadException
-
getNumberOfFormMappings
- Specified by:
getNumberOfFormMappingsin interfaceFormMappingService- Throws:
SBonitaReadException
-
searchFormMappings
- Specified by:
searchFormMappingsin interfaceFormMappingService- Throws:
SBonitaReadException
-