public interface OsidProxyManager extends OsidProfile, OsidProxyManager, java.io.Closeable
The OsidProxyManager
is the top level interface for all
OSID proxy managers. A proxy manager accepts parameters to pass through
end-user authentication credentials and other necessary request parameters
in a server environment. Native applications should use an
OsidManager
to maintain a higher degree of interoperability by
avoiding this coupling.
An OSID proxy manager is instantiated through the
OsidRuntimeManager
and represents an instance of a service. An
OSID manager is responsible for defining clusters of interoperability
within a service and creating sessions that generally correspond to these
clusters, An application need only create a single OsidProxyManager
per service and implementors must ensure the
OsidProxyManager
is thread-safe .
The
OsidSessions
spawned from an OSID manager are dedicated to single
processing threads. The OsidProxyManager
defines methods in
common throughout all OSID managers which implement this interface.
Modifier and Type | Method and Description |
---|---|
void |
changeBranch(Id branchId,
Proxy proxy)
Changes the service branch.
|
void |
initialize(OsidRuntimeManager runtime)
Initializes this manager.
|
JournalEntry |
rollbackService(java.util.Date rollbackTime,
Proxy proxy)
Rolls back this service to a point in time.
|
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordType
getBranding, getBrandingIds, getLicense, getProvider, getProviderId
close
void 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, Proxy proxy) throws OperationFailedException, PermissionDeniedException
rollbackTime
- the requested timeproxy
- a proxyNullArgumentException
- proxy
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnimplementedException
-
supportsJournalRollback()
is false
mandatory
- This method must be implemented. void changeBranch(Id branchId, Proxy proxy) throws NotFoundException, OperationFailedException, PermissionDeniedException
branchId
- the new service branchproxy
- a proxyNotFoundException
- branchId
not foundNullArgumentException
- branchId
or
proxy
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnimplementedException
-
supportsJournalBranching()
is false
mandatory
- This method must be implemented.