public class FormMappingServiceImpl extends Object implements FormMappingService
| Modifier and Type | Field and Description |
|---|---|
static String |
FORM_MAPPING |
| Constructor and Description |
|---|
FormMappingServiceImpl(Recorder recorder,
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(QueryOptions queryOptions) |
List<SFormMapping> |
list(int fromIndex,
int numberOfResults) |
List<SFormMapping> |
list(long processDefinitionId,
int fromIndex,
int numberOfResults) |
List<SFormMapping> |
searchFormMappings(QueryOptions queryOptions) |
void |
update(SFormMapping formMapping,
String url,
Long pageId) |
public static final String FORM_MAPPING
public FormMappingServiceImpl(Recorder recorder, 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 SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectCreationException
create in interface FormMappingServiceSBonitaReadExceptionorg.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 SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
get in interface FormMappingServiceSBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SFormMapping get(String key) throws SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
get in interface FormMappingServiceSBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic SFormMapping get(long processDefinitionId, Integer type, String task) throws SBonitaReadException
get in interface FormMappingServiceSBonitaReadExceptionpublic SFormMapping get(long processDefinitionId, Integer type) throws SBonitaReadException
get in interface FormMappingServiceSBonitaReadExceptionpublic List<SFormMapping> list(long processDefinitionId, int fromIndex, int numberOfResults) throws SBonitaReadException
list in interface FormMappingServiceSBonitaReadExceptionpublic List<SFormMapping> list(int fromIndex, int numberOfResults) throws SBonitaReadException
list in interface FormMappingServiceSBonitaReadExceptionpublic long getNumberOfFormMappings(QueryOptions queryOptions) throws SBonitaReadException
getNumberOfFormMappings in interface FormMappingServiceSBonitaReadExceptionpublic List<SFormMapping> searchFormMappings(QueryOptions queryOptions) throws SBonitaReadException
searchFormMappings in interface FormMappingServiceSBonitaReadExceptionCopyright © 2019 Bonitasoft S.A.. All rights reserved.