public interface BatchService
| Modifier and Type | Method and Description |
|---|---|
default void |
abort(String sessionId)
Roll back any uncommited changes during a
FedoraSession for the anonymous user |
void |
abort(String sessionId,
String username)
Roll back any uncommited changes during a
FedoraSession |
default void |
begin(FedoraSession session)
Create a new batch operation with a FedoraSession for the anonymous user and add it to the currently open ones
|
void |
begin(FedoraSession session,
String username)
Create a new batch operation with a FedoraSession and add it to the currently open ones
|
default void |
commit(String sessionId)
Commit any changes during a
FedoraSession with the given id for the anonymous user |
void |
commit(String sessionId,
String username)
Commit any changes during a
FedoraSession with the given id and username |
default boolean |
exists(String sessionId)
Check if a FedoraSession exists for the anonymous user
|
boolean |
exists(String sessionId,
String username)
Check if a FedoraSession exists for a particular user
|
default FedoraSession |
getSession(String sessionId)
Retrieve an open
FedoraSession for an anonymous user |
FedoraSession |
getSession(String sessionId,
String username)
Retrieve an open
FedoraSession for a given user |
void |
refresh(String sessionId,
String username)
Refresh an existing session using an implementation-defined default
|
void |
removeExpired()
Check for expired batch operations and remove them
|
void removeExpired()
void begin(FedoraSession session, String username)
session - The session to use for this batch operationusername - the name of the Principaldefault void begin(FedoraSession session)
session - The session to use for this batch operationFedoraSession getSession(String sessionId, String username)
FedoraSession for a given usersessionId - the Id of the FedoraSessionusername - the name of the PrincipalFedoraSession with this userdefault FedoraSession getSession(String sessionId)
FedoraSession for an anonymous usersessionId - the Id of the FedoraSessionFedoraSessionboolean exists(String sessionId, String username)
sessionId - the Id of the FedoraSessionusername - the name of the PrincipalFedoraSession object for the defined userdefault boolean exists(String sessionId)
sessionId - the Id of the FedoraSessionFedoraSession objectvoid refresh(String sessionId, String username)
sessionId - the Id of the FedoraSessionusername - the name of the Principalvoid commit(String sessionId, String username)
FedoraSession with the given id and usernamesessionId - the id of the FedoraSessionusername - the name of the Principaldefault void commit(String sessionId)
FedoraSession with the given id for the anonymous usersessionId - the id of the FedoraSessionvoid abort(String sessionId, String username)
FedoraSessionsessionId - the id of the FedoraSessionusername - the name of the Principaldefault void abort(String sessionId)
FedoraSession for the anonymous usersessionId - the id of the FedoraSessionCopyright © 2013–2019 DuraSpace, Inc.. All rights reserved.