public class DeferredActionService extends java.lang.Object implements IDeferredAction
Constructor and Description |
---|
DeferredActionService(Container container,
javax.sql.DataSource dataSource,
BmContext context) |
Modifier and Type | Method and Description |
---|---|
ContainerChangeset<java.lang.String> |
changeset(java.lang.Long since) |
ContainerChangeset<java.lang.Long> |
changesetById(java.lang.Long since) |
ContainerChangelog |
containerChangelog(java.lang.Long since) |
void |
create(java.lang.String uid,
DeferredAction deferredAction)
Creates a new
DeferredAction with the given uid. |
void |
delete(java.lang.String uid)
Deletes a
DeferredAction . |
void |
deleteAll()
Deletes all
DeferredAction . |
java.util.List<ItemValue<DeferredAction>> |
getByActionId(java.lang.String actionId,
java.lang.Long to)
Fetches a list of all
DeferredAction s matching an actionId and period
of time |
java.util.List<ItemValue<DeferredAction>> |
getByReference(java.lang.String reference)
Fetches a list of all
DeferredAction s matching a reference |
ItemValue<DeferredAction> |
getComplete(java.lang.String uid)
Fetches a
DeferredAction . |
long |
getVersion() |
ItemChangelog |
itemChangelog(java.lang.String itemUid,
java.lang.Long since) |
java.util.List<ItemValue<DeferredAction>> |
multipleGet(java.util.List<java.lang.String> uids)
Fetch multiple
DeferredAction s by their uids. |
void |
update(java.lang.String uid,
DeferredAction deferredAction)
Updates a
DeferredAction . |
public void create(java.lang.String uid, DeferredAction deferredAction) throws ServerFault
IDeferredAction
DeferredAction
with the given uid.create
in interface IDeferredAction
uid
- the deferred action's unique iddeferredAction
- deferred action dataServerFault
- standard error object (unchecked exception)public void update(java.lang.String uid, DeferredAction deferredAction) throws ServerFault
IDeferredAction
DeferredAction
.update
in interface IDeferredAction
uid
- the deferred action's unique iddeferredAction
- deferred action dataServerFault
- standard error object (unchecked exception)public void delete(java.lang.String uid) throws ServerFault
IDeferredAction
DeferredAction
.delete
in interface IDeferredAction
uid
- the deferred action's unique idServerFault
- standard error object (unchecked exception)public void deleteAll() throws ServerFault
IDeferredAction
DeferredAction
.deleteAll
in interface IDeferredAction
ServerFault
- standard error object (unchecked exception)public ItemValue<DeferredAction> getComplete(java.lang.String uid) throws ServerFault
IDeferredAction
DeferredAction
.getComplete
in interface IDeferredAction
uid
- the deferred action's unique idServerFault
- standard error object (unchecked exception)public java.util.List<ItemValue<DeferredAction>> getByActionId(java.lang.String actionId, java.lang.Long to) throws ServerFault
IDeferredAction
DeferredAction
s matching an actionId and period
of timegetByActionId
in interface IDeferredAction
actionId
- the actionIdto
- fetches actions having date < toServerFault
- standard error object (unchecked exception)public java.util.List<ItemValue<DeferredAction>> getByReference(java.lang.String reference) throws ServerFault
IDeferredAction
DeferredAction
s matching a referencegetByReference
in interface IDeferredAction
reference
- the referenceServerFault
- standard error object (unchecked exception)public ItemChangelog itemChangelog(java.lang.String itemUid, java.lang.Long since) throws ServerFault
itemChangelog
in interface IChangelogSupport
ContainerChangelog
ServerFault
public ContainerChangelog containerChangelog(java.lang.Long since) throws ServerFault
containerChangelog
in interface IChangelogSupport
ContainerChangelog
ServerFault
public ContainerChangeset<java.lang.String> changeset(java.lang.Long since) throws ServerFault
changeset
in interface IChangelogSupport
ContainerChangeset
ServerFault
public ContainerChangeset<java.lang.Long> changesetById(java.lang.Long since) throws ServerFault
changesetById
in interface IChangelogSupport
ContainerChangeset
with internal
numeric idsServerFault
public long getVersion() throws ServerFault
getVersion
in interface IChangelogSupport
ServerFault
public java.util.List<ItemValue<DeferredAction>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
IDeferredAction
DeferredAction
s by their uids.multipleGet
in interface IDeferredAction
uids
- the unique identifiers to fetchItemValue
ServerFault
- If anything goes wrongCopyright © 2021. All Rights Reserved.