|
Oracle Content Database Web Services Java API Reference for Oracle WebCenter Suite 10g (10.1.3.2) B32189-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ifs.fdk.ManagersFactory
public abstract class ManagersFactory
Represents an abstraction factory that can return the right instances to be used in various environments such as in-process, remoted or to connect to other systems.
The subclass instances are associated with a specific session and they require credentials in order to get started. An instance is obtained via the various login()
static methods.
When the client no longer needs the instance, it must call logout()
on it so that the implementation can release any allocated resources. Failure to do so may result in sessions being kept alive forever.
THREAD SAFETY NOTE: The consumer of these objects must not assume that the implementations of this class are thread safe, though some may be. Because each instance returned by the login()
methods and instances of the Managers returned by the methods in this class are usually associated with a user session, the calling code should ensure that proper synchronization is done when calling the methods of this class or calling the methods of the Managers returned by this class. Please see the Java Memory Model (JSR-133) for more information.
Field Summary | |
---|---|
static java.lang.String |
CONFIG_SERVER_VERSION The optional configuration parameter that can be passed to the underlying implementation in the configuration map, representing the server version the client is trying to connect to. |
protected static java.lang.String |
CONFIG_WS_URL The Web Services URL configuration property name passed to the implementation subclass in the Map configuration. |
Constructor Summary | |
---|---|
protected |
ManagersFactory(java.util.Map config) Protected constructor. |
Method Summary | |
---|---|
abstract ArchiveManager |
getArchiveManager() |
abstract CategoryManager |
getCategoryManager() |
abstract CommonManager |
getCommonManager() |
abstract ContainerManager |
getContainerManager() |
abstract DomainManager |
getDomainManager() |
abstract FileContentManager |
getFileContentManager() |
abstract FileManager |
getFileManager() |
abstract GroupManager |
getGroupManager() |
abstract LockManager |
getLockManager() |
abstract PagingManager |
getPagingManager() |
abstract QuotaManager |
getQuotaManager() |
abstract RequestManager |
getRequestManager() |
abstract SearchManager |
getSearchManager() |
abstract SecurityManager |
getSecurityManager() |
abstract SessionManager |
getSessionManager() |
abstract SortManager |
getSortManager() |
abstract SystemConfigurationManager |
getSystemConfigurationManager() |
abstract TrashManager |
getTrashManager() |
abstract Item |
getUser(AttributeRequest[] attributes) Returns the user as an Item that was authenticated for this instance. |
abstract UserManager |
getUserManager() |
abstract VersionManager |
getVersionManager() |
abstract VirusManager |
getVirusManager() |
abstract WorkflowManager |
getWorkflowManager() |
abstract WorkspaceManager |
getWorkspaceManager() |
static ManagersFactory |
login(FdkCredential credential) Returns an authenticated instance for use by in-process clients only. |
static ManagersFactory |
login(FdkCredential credential, java.lang.String wsUrl) Returns an authenticated instance for use by either remoted clients over Web Services if an URL is provided or in-process clients if the URL is null . |
static ManagersFactory |
login(FdkCredential credential, java.lang.String wsUrl, java.util.Map config) Returns an authenticated instance for use by either remoted clients over Web Services if an URL is provided or in-process clients if the URL is null . |
abstract void |
logout() The counterpart of the login() methods. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIG_SERVER_VERSION
ManagersFactory
protected static final java.lang.String CONFIG_WS_URL
ManagersFactory
null
and it represents the URL of the server to connect to, e.g. http://localhost:7777/content/ws
Constructor Detail |
---|
protected ManagersFactory(java.util.Map config) throws FdkException
FdkException
Method Detail |
---|
public static ManagersFactory login(FdkCredential credential, java.lang.String wsUrl) throws FdkException
ManagersFactory
null
.credential
- The credential to use for authentication. Required.wsUrl
- The web services URL of the server to connect to, e.g. http://localhost:7777/content/ws
null
, the in-process instance is returned, which is equivalent to calling ManagersFactory.login(FdkCredential)
FdkException
public static ManagersFactory login(FdkCredential credential, java.lang.String wsUrl, java.util.Map config) throws FdkException
ManagersFactory
null
. Additionally, configuration parameters for the underlying implementation may be provided.credential
- The credential to use for authentication. Required.wsUrl
- The web services URL of the server to connect to, e.g. http://localhost:7777/content/ws
null
, the in-process instance is returned, which is equivalent to calling ManagersFactory.login(FdkCredential)
config
- The custom configuration parameters. Optional.FdkException
public static ManagersFactory login(FdkCredential credential) throws FdkException
ManagersFactory
oracle.ifs.fdk.InProcessManagersFactory
and it is safe to cast to it in order to use its additional functionality.credential
- The credential to use for authentication. Required.FdkException
public abstract void logout() throws FdkException
ManagersFactory
login()
methods.
Logs out any underlying session and disposes the resources allocated by this instance.
Clients must call this method when the instance is no longer needed (i.e. when the user session needs to be terminated).
FdkException
public abstract Item getUser(AttributeRequest[] attributes) throws FdkException
ManagersFactory
attributes
- Optional attributes to return. Can be null
.FdkException
public abstract CommonManager getCommonManager() throws FdkException
FdkException
public abstract FileManager getFileManager() throws FdkException
FdkException
public abstract SessionManager getSessionManager() throws FdkException
FdkException
public abstract ArchiveManager getArchiveManager() throws FdkException
FdkException
public abstract CategoryManager getCategoryManager() throws FdkException
FdkException
public abstract ContainerManager getContainerManager() throws FdkException
FdkException
public abstract DomainManager getDomainManager() throws FdkException
FdkException
public abstract GroupManager getGroupManager() throws FdkException
FdkException
public abstract LockManager getLockManager() throws FdkException
FdkException
public abstract PagingManager getPagingManager() throws FdkException
FdkException
public abstract QuotaManager getQuotaManager() throws FdkException
FdkException
public abstract RequestManager getRequestManager() throws FdkException
FdkException
public abstract SearchManager getSearchManager() throws FdkException
FdkException
public abstract SecurityManager getSecurityManager() throws FdkException
FdkException
public abstract SortManager getSortManager() throws FdkException
FdkException
public abstract SystemConfigurationManager getSystemConfigurationManager() throws FdkException
FdkException
public abstract TrashManager getTrashManager() throws FdkException
FdkException
public abstract UserManager getUserManager() throws FdkException
FdkException
public abstract VersionManager getVersionManager() throws FdkException
FdkException
public abstract VirusManager getVirusManager() throws FdkException
FdkException
public abstract WorkflowManager getWorkflowManager() throws FdkException
FdkException
public abstract WorkspaceManager getWorkspaceManager() throws FdkException
FdkException
public abstract FileContentManager getFileContentManager() throws FdkException
FdkException
|
Oracle Content Database Web Services Java API Reference for Oracle WebCenter Suite 10g (10.1.3.2) B32189-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |