Class DfService
- All Implemented Interfaces:
IDfModule,IDfService
- Since:
- 5.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.getName()Returns the fully qualified logical name of the service interface.getSession(String docbaseName) Obtains a handle to a Docbase session.Gets the session manager.Gets the Copyright statement string.Gets the current version of the service as a string.booleanisCompatible(String version) Checks if this object is compatible with the specified version.voidreleaseSession(IDfSession session) Releases a handle to a Docbase session.voidsetSessionManager(IDfSessionManager sessionManager) Called by the runtime environment during service creation to associate a session manager with this service instance.booleansupportsFeature(String feature) Checks if the specified feature is supported by the implementation.
-
Constructor Details
-
DfService
public DfService()
-
-
Method Details
-
getName
Returns the fully qualified logical name of the service interface.This is a default implementation that may work in many cases. Most services will choose to override this method with a more accurate implementation.
- Specified by:
getNamein interfaceIDfService- Returns:
- logical service name
-
getVersion
Gets the current version of the service as a string.This is a default implementation that returns a sample version. Most services will choose to override this method with a more meaningful implementation.
- Specified by:
getVersionin interfaceIDfService- Returns:
- version string
- See Also:
-
getVendorString
Gets the Copyright statement string.This is a default implementation that returns an empty string. Many services will choose to override this method with a more meaningful implementation.
- Specified by:
getVendorStringin interfaceIDfService- Returns:
- copyright statement
-
isCompatible
Checks if this object is compatible with the specified version.This is a default implementation that returns true if the version is an exact match. Many services will choose to override this method with a more meaningful implementation.
- Specified by:
isCompatiblein interfaceIDfService- Parameters:
version- version string of format:<major version>.<minor version>. Example:"1.0"- Returns:
trueif service is compatible with the version (falseif incompatible)
-
supportsFeature
Checks if the specified feature is supported by the implementation.This is a default implementation that returns false. Many services will choose to override this method with a more meaningful implementation.
- Specified by:
supportsFeaturein interfaceIDfService- Parameters:
feature- feature string- Returns:
- true if feature is supported (
falseif the feature is not supported)
-
cleanupResources
Deprecated.Provides to the service client an opportunity to release some service specific resources before the Java garbage collector collects the object.This method should not be used. Letting the client control cleanup can interfere with container life-cycle management.
- Specified by:
cleanupResourcesin interfaceIDfService- Throws:
DfServiceException- Internal error
-
setSessionManager
Called by the runtime environment during service creation to associate a session manager with this service instance.This implementation is typically sufficient and doesn't need to be overridden.
-
getSessionManager
Gets the session manager.- Specified by:
getSessionManagerin interfaceIDfService- Returns:
- the
IDfSessionManager
-
getSession
Obtains a handle to a Docbase session.Each time this method is called a corresponding call to
releaseSession(com.documentum.fc.client.IDfSession)must be made once you are through using the session.- Specified by:
getSessionin interfaceIDfService- Parameters:
docbaseName- name of the Docbase- Returns:
- a session
- Throws:
DfServiceException
-
releaseSession
Releases a handle to a Docbase session.This method must be called for each call to
getSession(java.lang.String)after you are through using the session.- Specified by:
releaseSessionin interfaceIDfService- Parameters:
session- a session that was obtained fromgetSession(java.lang.String).- Throws:
DfServiceException- Internal error
-