Class DfService
- All Implemented Interfaces:
IDfModule
,IDfService
- Since:
- 5.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.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.boolean
isCompatible
(String version) Checks if this object is compatible with the specified version.void
releaseSession
(IDfSession session) Releases a handle to a Docbase session.void
setSessionManager
(IDfSessionManager sessionManager) Called by the runtime environment during service creation to associate a session manager with this service instance.boolean
supportsFeature
(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:
getName
in 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:
getVersion
in 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:
getVendorString
in 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:
isCompatible
in interfaceIDfService
- Parameters:
version
- version string of format:<major version>.<minor version>
. Example:"1.0"
- Returns:
true
if service is compatible with the version (false
if 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:
supportsFeature
in interfaceIDfService
- Parameters:
feature
- feature string- Returns:
- true if feature is supported (
false
if 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:
cleanupResources
in 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:
getSessionManager
in 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:
getSession
in 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:
releaseSession
in interfaceIDfService
- Parameters:
session
- a session that was obtained fromgetSession(java.lang.String)
.- Throws:
DfServiceException
- Internal error
-