Package com.documentum.fc.client
Interface IDfService
- All Superinterfaces:
IDfModule
- All Known Implementing Classes:
DfService
Parent interface for all service-based business objects. All Documentum
Business Objects Framework service-based business objects interfaces
must extend this
IDfService interface as well as implement
this IDfService interface in order to provide some common
functionality for all services.- Since:
- 5.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidProvides to the service client an opportunity to release some service specific resources before the Java garbage collector will collect the object.getName()Returns the fully qualified logical name of the service interface.getSession(String docbase) Returns a previously established "managed"IDfSessionobject.Allows a service to obtain the its session manager handle.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, often used in conjunction with thesupportsFeaturemethod.voidreleaseSession(IDfSession session) Releases the "managed" session back to the session pool.booleansupportsFeature(String feature) Checks if the specified feature matches an entry in the implementations list of supported features.
-
Method Details
-
getName
String getName()Returns the fully qualified logical name of the service interface. For example,"com.documentum.services.inbox.IInbox"
- Returns:
- logical service name
-
getVersion
String getVersion()Gets the current version of the service as a string. The version string has the following format:<major version>.<minor version>. Example:"1.0".- Returns:
- version string
- See Also:
-
getVendorString
String getVendorString()Gets the Copyright statement string.If a service is provided by Documentum the vendor string would be "Copyright (c) Documentum, Inc. 2002. All Rights reserved.".
- Returns:
- copyright statement
-
isCompatible
Checks if this object is compatible with the specified version, often used in conjunction with thesupportsFeaturemethod.An example might be,
isCompatible( "1.2" );- 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 matches an entry in the implementations list of supported features. The implementation is up to the author of the SBO class. For example, the class could look up a table in the repository, store features in a privateHashtable, array,IDfList, etc. Based on this information, specific UI features might then be switched on or off.Based on this feature information, a program can make decisions on how to use the object, for example, certain UI features can then be switched on or off. For instance, a search service may not support an external search or full text search.
supportsFeature( "fulltextsearch" );- Parameters:
feature- feature string- Returns:
- true if feature is supported (
falseif the feature is not supported)
-
getSessionManager
IDfSessionManager getSessionManager()Allows a service to obtain the its session manager handle. Under normal circumstance a service implementation does not need to access the service session directly since some convenience methods are provided by the abstract"DfService"class.- Returns:
- the
IDfSessionManager
-
getSession
Returns a previously established "managed"IDfSessionobject. Each time this method is called a correspondingreleaseSessionmethod must be called.Calling this method before releasing the session is not an error. It merely returns the
IDfSessionobject reference again.- Parameters:
docbase- repository name- Returns:
- an
IDfSessionobject, either from the session pool or one that has not yet returned to the session pool. - Throws:
DfServiceException
-
releaseSession
Releases the "managed" session back to the session pool. Must be called for each call ofgetSession().- Parameters:
session- anIDfSessionobject that was obtained from the session manager.- Throws:
DfServiceException- Internal error
-
cleanupResources
Provides to the service client an opportunity to release some service specific resources before the Java garbage collector will collect the object.- Throws:
DfServiceException- Internal error
-