public class TokenServiceImpl extends Object implements org.bonitasoft.engine.core.process.instance.api.TokenService
| Constructor and Description |
|---|
TokenServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceRead,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger) |
| Modifier and Type | Method and Description |
|---|---|
org.bonitasoft.engine.core.process.instance.model.SToken |
createToken(Long processInstanceId,
Long refId,
Long parentRefId) |
void |
createTokens(Long processInstanceId,
Long refId,
Long parentRefId,
int numberOfToken) |
void |
deleteAllTokens() |
void |
deleteToken(org.bonitasoft.engine.core.process.instance.model.SToken token) |
void |
deleteTokens(long processInstanceId) |
void |
deleteTokens(Long processInstanceId,
Long refId,
int numberOfToken) |
int |
getNumberOfToken(long processInstanceId) |
int |
getNumberOfToken(long processInstanceId,
long refId) |
org.bonitasoft.engine.core.process.instance.model.SToken |
getToken(long tokenId) |
org.bonitasoft.engine.core.process.instance.model.SToken |
getToken(long processInstanceId,
long refId) |
List<org.bonitasoft.engine.core.process.instance.model.SToken> |
getTokens(long processInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.SToken> |
getTokens(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
public TokenServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceRead,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger)
public org.bonitasoft.engine.core.process.instance.model.SToken createToken(Long processInstanceId, Long refId, Long parentRefId) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException
createToken in interface org.bonitasoft.engine.core.process.instance.api.TokenServiceorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionpublic void createTokens(Long processInstanceId, Long refId, Long parentRefId, int numberOfToken) throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException
createTokens in interface org.bonitasoft.engine.core.process.instance.api.TokenServiceorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionpublic void deleteTokens(Long processInstanceId, Long refId, int numberOfToken) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException, org.bonitasoft.engine.commons.exceptions.SObjectReadException
deleteTokens in interface org.bonitasoft.engine.core.process.instance.api.TokenServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionorg.bonitasoft.engine.commons.exceptions.SObjectReadExceptionpublic void deleteToken(org.bonitasoft.engine.core.process.instance.model.SToken token)
throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
deleteToken in interface org.bonitasoft.engine.core.process.instance.api.TokenServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic void deleteTokens(long processInstanceId)
throws org.bonitasoft.engine.commons.exceptions.SObjectReadException,
org.bonitasoft.engine.commons.exceptions.SObjectModificationException
deleteTokens in interface org.bonitasoft.engine.core.process.instance.api.TokenServiceorg.bonitasoft.engine.commons.exceptions.SObjectReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic void deleteAllTokens()
throws org.bonitasoft.engine.commons.exceptions.SObjectReadException,
org.bonitasoft.engine.commons.exceptions.SObjectModificationException
deleteAllTokens in interface org.bonitasoft.engine.core.process.instance.api.TokenServiceorg.bonitasoft.engine.commons.exceptions.SObjectReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic org.bonitasoft.engine.core.process.instance.model.SToken getToken(long tokenId)
throws org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException,
org.bonitasoft.engine.commons.exceptions.SObjectReadException
org.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionorg.bonitasoft.engine.commons.exceptions.SObjectReadExceptionpublic int getNumberOfToken(long processInstanceId)
throws org.bonitasoft.engine.commons.exceptions.SObjectReadException
getNumberOfToken in interface org.bonitasoft.engine.core.process.instance.api.TokenServiceorg.bonitasoft.engine.commons.exceptions.SObjectReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SToken> getTokens(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.commons.exceptions.SObjectReadException
org.bonitasoft.engine.commons.exceptions.SObjectReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SToken> getTokens(long processInstanceId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.commons.exceptions.SObjectReadException
org.bonitasoft.engine.commons.exceptions.SObjectReadExceptionpublic int getNumberOfToken(long processInstanceId,
long refId)
throws org.bonitasoft.engine.commons.exceptions.SObjectReadException
getNumberOfToken in interface org.bonitasoft.engine.core.process.instance.api.TokenServiceorg.bonitasoft.engine.commons.exceptions.SObjectReadExceptionpublic org.bonitasoft.engine.core.process.instance.model.SToken getToken(long processInstanceId,
long refId)
throws org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException,
org.bonitasoft.engine.commons.exceptions.SObjectReadException
getToken in interface org.bonitasoft.engine.core.process.instance.api.TokenServiceorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionorg.bonitasoft.engine.commons.exceptions.SObjectReadExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.