public interface OsidManager extends OsidProfile, OsidManager, java.io.Closeable
The OsidManager is the top level interface for all OSID
managers. An OSID manager is instantiated through the
OsidRuntimeManager and represents an instance of a service. An
OSID manager is responsible for implementing a profile for a service and
creating sessions that, in general, correspond to the profile. An
application need only create a single OsidManager per
service and implementors must ensure the OsidManager is
thread-safe . The OsidSessions spawned from
an OSID manager are dedicated to single processing threads. The
OsidManager defines methods in common throughout all OSID managers
which implement this interface.
| Modifier and Type | Method and Description |
|---|---|
void |
changeBranch(Id branchId)
Changes the service branch.
|
void |
initialize(OsidRuntimeManager runtime)
Initializes this manager.
|
JournalEntry |
rollbackService(java.util.Date rollbackTime)
Rolls back this service to a point in time.
|
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypegetBranding, getBrandingIds, getLicense, getProvider, getProviderIdclosevoid initialize(OsidRuntimeManager runtime) throws ConfigurationErrorException, OperationFailedException
runtime - the runtime environmentConfigurationErrorException - an error with
implementation configurationIllegalStateException - this manager has already been
initialized by the OsidRuntime NullArgumentException - runtime is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. In - addition to loading its runtime configuration an
implementation may create shared resources such as connection
pools to be shared among all sessions of this service and
released when this manager is closed. Providers must
thread-protect any data stored in the manager.
To maximize interoperability, providers should not honor a
second call to initialize() and must set an
ILLEGAL_STATE error. JournalEntry rollbackService(java.util.Date rollbackTime) throws OperationFailedException, PermissionDeniedException
rollbackTime - the requested timeOperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnimplementedException -
supportsJournalRollback() is false mandatory - This method must be implemented. void changeBranch(Id branchId) throws NotFoundException, OperationFailedException, PermissionDeniedException
branchId - the new service branchNotFoundException - branchId not foundNullArgumentException - branchId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnimplementedException -
supportsJournalBranching() is false mandatory - This method must be implemented.