com.ibm.ecm.extension
Class PluginServiceCallbacks
- java.lang.Object
- com.ibm.ecm.extension.PluginServiceCallbacks
- public class PluginServiceCallbacks
- extends java.lang.Object
Constructor Summary
Constructor and Description |
---|
PluginServiceCallbacks(javax.servlet.http.HttpServletRequest request,Plugin plugin)
For Internal Use Only.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
addODNote(java.lang.String repositoryId,java.lang.String documentId,java.lang.String templateName,java.lang.String noteGroupName,java.lang.String noteText,boolean noteIsOKToCopy,boolean noteIsPublic)
Adds a note for a document in a Content Manager OnDemand repository.
|
|
CMApiAndServerVersionAtOrNewer(com.ibm.mm.sdk.server.DKDatastoreICM datastore,int version,int release,int csd,int fixpack)
Determines if the CM API and CM server versions are at or newer than the specified level.
|
|
executePluginAPI(java.lang.String pluginId,java.lang.String apiId,java.lang.Object[] arguments)
Invokes a plug-in API.
|
|
getCMAnnotations(CMItem item,java.lang.String repositoryId)
Deprecated. As of version 2.0.2. This method is being removed because it has a dependency on the internal ICN
CMObject class. Use
getCMAnnotationsXDO , which returns
an instance of dkXDO instead.
|
|
getCMAnnotations(CMItem item,java.lang.String repositoryId,int partNum)
Deprecated. As of version 2.0.2. This method is being removed because it has a dependency on the internal ICN
CMObject class. Use
getCMAnnotationsXDO , which
returns an instance of dkXDO instead.
|
|
getCMAnnotationsXDO(java.lang.String repositoryId,java.lang.String documentId)
Retrieves Applet viewer annotations (partNum = 0).
|
|
getCMAnnotationsXDO(java.lang.String repositoryId,java.lang.String documentId,int partNum)
Retrieves annotations stored in the item's specified part number.
|
|
getCMBookmarks(CMItem item,java.lang.String repositoryId)
Deprecated. As of version 2.0.2. This method is being removed because it has a dependency on the internal ICN
CMObject class. Use
getCMBookmarksXDO , which returns an
instance of dkXDO instead.
|
|
getCMBookmarksXDO(java.lang.String repositoryId,java.lang.String documentId)
Retrieves Applet viewer bookmarks (partNum = 1).
|
|
getCMDatastore(java.lang.String repositoryId)
Returns a connection to the IBM Content Manager server for the given repository.
The returned connection should only be used within a synchronized block using the object returned by: getSynchObject(String repositoryId, String repositoryType) |
|
getCMDocument(java.lang.String repositoryId,java.lang.String documentId,boolean baseAttributes,boolean partsList,boolean partsAttributes)
Deprecated. As of version 2.0.2.1. This method is being removed because it has an indirect dependency on the
internal ICN CMItem class. Use
getCMDocumentDDO instead.
|
|
getCMDocument(java.lang.String repositoryId,java.lang.String documentId,com.ibm.mm.sdk.common.DKRetrieveOptionsICM dkRetrieveOptions)
Deprecated. As of version 2.0.2. This method is being removed because it has a dependency on the internal ICN
CMItem class. Use
getCMDocumentDDO , which returns an instance of DKDDO instead.
|
|
getCMDocumentDDO(java.lang.String repositoryId,java.lang.String documentId,boolean baseAttributes,boolean partsList,boolean partsAttributes)
Retrieves a Content Manager document.
|
|
getCMISDocument(java.lang.String repositoryId,java.lang.String documentId)
Retrieves a CMIS document.
|
|
getCMPrivilegeMasks(java.lang.String repositoryId,java.util.List<com.ibm.mm.sdk.common.DKDDO> items)
Returns the privilege masks for the given CM items.
|
|
getConfigurationKeys()
Returns an array of key for the plug-in configurations.
|
|
getLocale()
Returns the locale that is currently in use for this user session.
|
getLogger()
|
|
|
getMonitoringCounter(java.lang.String eventName)
|
|
getMonitoringCounter(java.lang.String eventName,java.lang.String subEventName)
|
|
getNavigatorBaseUrl()
Returns the base URL for IBM Content Navigator.
|
|
getODDocument(java.lang.String repositoryId,java.lang.String documentId,java.lang.String templateName)
Retrieves a Content Manager OnDemand document.
|
|
getODNotes(java.lang.String repositoryId,java.lang.String documentId,java.lang.String templateName)
Retrieves Notes for an OD document.
|
|
getODPrivilegeMasks(java.lang.String repositoryId,com.ibm.edms.od.ODFolder folder,java.util.List<com.ibm.edms.od.ODHit> items)
Returns the privilege masks for the given OD Objects.
|
|
getODServer(java.lang.String repositoryId)
Returns a connection to the IBM Content Manager OnDemand server for the given repository.
The returned connection should only be used within a synchronized block using the object returned by: getSynchObject(String repositoryId, String repositoryType) |
|
getOriginalRequest(javax.servlet.http.HttpServletRequest request)
|
|
getP8Annotations(com.filenet.api.core.Document document,java.lang.String repositoryId,java.lang.String[] properties)
Gets the native AnnotationSet object representing the annotations of a FileNet P8 document.
|
|
getP8AnnotationsXML(com.filenet.api.core.Document document,java.lang.String repositoryId)
Gets the annotations XML representing the annotations of a FileNet P8 document.
|
|
getP8Connection(java.lang.String repositoryId)
Returns a connection to the IBM FileNet P8 domain for the given repository.
The returned connection should only be used within a synchronized block using the object returned by: getSynchObject(String repositoryId, String repositoryType) |
|
getP8ConnectionObject(java.lang.String repositoryId)
Deprecated. This method is deprecated because it uses internal class P8Connection. Use getP8Connection instead.
|
|
getP8Document(java.lang.String repositoryId,java.lang.String documentId,java.lang.String vsId,java.lang.String version)
Retrieves a FileNet P8 document.
|
|
getP8DocumentResultsPropertyFilter()
Retrieves the P8 property filter for document results.
|
|
getP8Domain(java.lang.String repositoryId)
Deprecated. Retrieves the FileNet P8 domain for the given repository. This method retrieves all properties of the
domain which could have an performance impact. Use getP8Domain(String repositoryId, PropertyFilter
propertyFilter) for better performance.
|
|
getP8Domain(java.lang.String repositoryId,com.filenet.api.property.PropertyFilter propertyFilter)
Retrieves the FileNet P8 domain for the given repository.
|
|
getP8FolderResultsPropertyFilter()
Retrieves the P8 property filter for folder results.
|
|
getP8ObjectStore(java.lang.String repositoryId)
Retrieves the IBM FileNet P8 object store for the given repository.
|
|
getP8PrivilegeMasks(java.lang.String repositoryId,java.util.List<java.lang.Object> items)
Returns the privilege masks for the given P8 Objects.
|
|
getP8Subject(java.lang.String repositoryId)
Retrieves the IBM FileNet P8
Subject object for the given repository.
|
getPluginRepositoryConnection(java.lang.String repositoryId)
Retrieves the PluginRepositoryConnection representing a plug-in provided repository.
|
|
|
getPluginResources()
Returns the plug-in message resource bundle.
|
|
getRepositoryId()
Returns the identifier for the repository, such as the server name or object store identifier.
|
|
getRequestActionForm()
|
|
getRequestUploadFile()
|
|
getResources()
Returns the Navigator message resource bundle.
|
|
getResources(java.lang.String resources)
Returns the specified message resource bundle.
|
|
getServerBaseUrl()
Returns the URL to address the application server that is running IBM Content Navigator services.
|
|
getSynchObject(java.lang.String repositoryId,java.lang.String repositoryType)
Returns a synchronization object for the specified repository.
|
|
getSystemPropertyLabel(java.lang.String repositoryType,java.lang.String id,java.util.Locale locale)
Retrieves the label to use for a system property.
|
|
getUserConfigurationKeys()
Returns the configuration keys per-user configuration of the plug-in
|
|
getUserId()
Returns the user identifier for the current repository.
|
|
getVWSession(java.lang.String repositoryId,java.lang.String connectionPoint)
Retrieves a VWSession object for a given repository FileNet P8 domain.
|
|
loadConfiguration()
Returns the configuration for the plug-in.
|
|
loadConfigurations(java.lang.String[] keys)
Return an array of configuration in the same order denoted by keys
|
|
loadFeatureConfiguration(java.lang.String featureId)
Returns the feature's configuration for the plug-in.
|
|
loadUserConfiguration(java.lang.String key)
Returns the per-user configuration for the plug-in for the given key.
|
|
loadUserConfiguration(java.lang.String[] keys)
Returns the per-user multiple configuration for the plug-in for the given key.
|
|
pluginAPIExists(java.lang.String pluginId,java.lang.String apiId)
Returns true if the plug-in specified is loaded and has a plug-in API of the specified id.
|
readJSONRequest(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response,java.lang.Class jsonRequestClass)
Reads the parameters of an HttpServletRequest, populating a JSONRequest (an extension of JSONObject) with the
parameters.
|
|
|
refreshSecurityToken(java.lang.String url)
If the url contains a security token, and it is stale, replace it with the current security token.
|
|
retrieveAnnotations(java.lang.String repositoryId,java.lang.String repositoryType,java.lang.String documentId,java.lang.String p8VsId,java.lang.String p8Version,java.lang.String odFolderName,boolean cmBookmarks,java.lang.Integer cmAnnotationPosition)
Deprecated. As of version 2.0.2. This method is being deprecated because it has a dependency on the ICN internal
class BaseMediator. Use
retrieveJSONAnnotations instead.
|
|
retrieveContent(java.lang.String repositoryId,java.lang.String repositoryType,java.lang.String documentId,int partNum,java.lang.String p8VsId,java.lang.String p8Version,java.lang.String odFolderName,int odSegmentNum,boolean odAsciiTransform)
Deprecated. As of Version 2.0.2. The returned DocumentContent class has been refactored into the extension
package. Use retrieveDocumentContent.
|
retrieveDocumentContent(java.lang.String repositoryId,java.lang.String repositoryType,java.lang.String documentId,int partNum,java.lang.String p8VsId,java.lang.String p8Version,java.lang.String odFolderName,int odSegmentNum,boolean odAsciiTransform)
Retrieves document content.
|
|
retrieveDocumentContent(java.lang.String repositoryId,java.lang.String repositoryType,java.lang.String documentId,int partNum,java.lang.String p8VsId,java.lang.String p8Version,java.lang.String odFolderName,int odSegmentNum,java.lang.String odTransform)
Retrieves document content.
|
|
retrieveJSONAnnotations(java.lang.String repositoryId,java.lang.String repositoryType,java.lang.String documentId,java.lang.String p8VsId,java.lang.String p8Version,java.lang.String odFolderName,boolean cmBookmarks,java.lang.Integer cmAnnotationPosition)
Retrieves annotations for a document.
|
|
|
saveConfiguration(java.util.Hashtable<java.lang.String,java.lang.String> configs)
Saves configurations of a plug-in.
|
|
saveConfiguration(java.lang.String config)
Saves the configuration of the plug-in.
|
|
saveFeatureConfiguration(java.lang.String featureId,java.lang.String config)
Saves the feature's configuration for the plug-in.
|
|
saveUserConfiguration(java.util.Hashtable<java.lang.String,java.lang.String> configs)
Saves the per-user configuration of the plug-in for the given keys.
|
|
saveUserConfiguration(java.lang.String key,java.lang.String config)
Saves the per-user configuration of the plug-in for the given key.
|
|
writeJSONResponse(JSONResponse jsonResponse,javax.servlet.http.HttpServletResponse response)
Writes a JSON response to the HttpServletResponse provided.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
PluginServiceCallbacks
- public PluginServiceCallbacks(javax.servlet.http.HttpServletRequest request,
- Plugin plugin)
Method Detail
getLogger
- public PluginLogger getLogger()
getMonitoringCounter
- public com.ibm.ecm.serviceability.MonitoringCounter getMonitoringCounter( java.lang.String eventName)
eventName
- The name of the event to monitor. getMonitoringCounter
- public com.ibm.ecm.serviceability.MonitoringCounter getMonitoringCounter( java.lang.String eventName,
- java.lang.String subEventName)
eventName
- The name of the parent event of the event to monitor. subEventName
- The name of the sub-event to monitor. getOriginalRequest
- public javax.servlet.http.HttpServletRequest getOriginalRequest( javax.servlet.http.HttpServletRequest request)
loadConfiguration
- public java.lang.String loadConfiguration( )
- throws java.lang.Exception
String
that contains the configuration for the plug-in. java.lang.Exception
saveConfiguration
- public void saveConfiguration(java.lang.String config)
- throws java.lang.Exception
java.lang.Exception
loadConfigurations
- public java.lang.String[] loadConfigurations( java.lang.String[] keys)
- throws java.lang.Exception
keys
- An array of key store the configuration information. Different keys can be used to store as much
information as necessary. String[]
of configuration for a plug-in. java.lang.Exception
saveConfiguration
- public void saveConfiguration(java.util.Hashtable<java.lang.String,java.lang.String> configs)
- throws java.lang.Exception
configs
- An hashed table of String and String of configuration for a plug-in. java.lang.Exception
getConfigurationKeys
- public java.lang.String[] getConfigurationKeys( )
- throws java.lang.Exception
String[]
of key for the plug-in configurations. java.lang.Exception
loadFeatureConfiguration
- public java.lang.String loadFeatureConfiguration( java.lang.String featureId)
- throws java.lang.Exception
featureId
- The id of the feature's configuration to return. String
of the feature's configuration. java.lang.Exception
saveFeatureConfiguration
- public void saveFeatureConfiguration( java.lang.String featureId,
- java.lang.String config)
- throws java.lang.Exception
config
- The configuration string to save for the provided feature. java.lang.Exception
loadUserConfiguration
- public java.lang.String loadUserConfiguration( java.lang.String key)
- throws java.lang.Exception
key
- The key that is used to store the user configuration. String
that contains the user configuration for the plug-in. java.lang.Exception
saveUserConfiguration
- public void saveUserConfiguration( java.lang.String key,
- java.lang.String config)
- throws java.lang.Exception
key
- A key store the configuration information. Different keys can be used to store as much information as
is necessary. config
- A string containing the user configuration for the plug-in. java.lang.Exception
loadUserConfiguration
- public java.lang.String[] loadUserConfiguration( java.lang.String[] keys)
- throws java.lang.Exception
keys
- A array of key store the configuration information. String
that contains the user configuration for the plug-in. java.lang.Exception
getUserConfigurationKeys
- public java.lang.String[] getUserConfigurationKeys( )
- throws java.lang.Exception
String
array that contains the configuration key for the user. java.lang.Exception
saveUserConfiguration
- public void saveUserConfiguration( java.util.Hashtable<java.lang.String,java.lang.String> configs)
- throws java.lang.Exception
configs
- An hashed table of String and String of user configuration for a plug-in. java.lang.Exception
getRepositoryId
- public java.lang.String getRepositoryId( )
String
that contains the repository ID. getUserId
- public java.lang.String getUserId( )
String
that contains the user ID. getLocale
- public java.util.Locale getLocale( )
getServerBaseUrl
- public java.net.URL getServerBaseUrl( )
getNavigatorBaseUrl
- public java.net.URL getNavigatorBaseUrl( )
getCMDatastore
- public com.ibm.mm.sdk.server.DKDatastoreICM getCMDatastore( java.lang.String repositoryId)
The returned connection should only be used within a synchronized block using the object returned by:
getSynchObject(String repositoryId, String repositoryType)
repositoryId
- The repository identifier, as defined in IBM Content Navigator. com.ibm.mm.sdk.server.DKDatastoreICM
object that provides a connection to the IBM Content
Manager server. If the server is not found, this method returns null
. getODServer
- public com.ibm.edms.od.ODServer getODServer( java.lang.String repositoryId)
The returned connection should only be used within a synchronized block using the object returned by:
getSynchObject(String repositoryId, String repositoryType)
repositoryId
- The repository identifier, as defined in IBM Content Navigator. com.ibm.edms.od.ODServer
object that provides a connection to the IBM Content Manager
OnDemand server. If the server is not found, this method returns null
. getP8Connection
- public com.filenet.api.core.Connection getP8Connection( java.lang.String repositoryId)
The returned connection should only be used within a synchronized block using the object returned by:
getSynchObject(String repositoryId, String repositoryType)
repositoryId
- The repository identifier, as defined in IBM Content Navigator. com.filenet.api.core.Connection
object that provides a connection to the IBM Filenet P8
domain. If the server is not found, this method returns null
. getP8ConnectionObject
- public P8Connection getP8ConnectionObject( java.lang.String repositoryId)
repositoryId
- The repository identifier, as defined in IBM Content Navigator. com.ibm.ecm.util.p8.P8Connection
object that provides a connection to the IBM FileNet P8
domain. If the server is not found, this method returns null
. getVWSession
- public filenet.vw.api.VWSession getVWSession( java.lang.String repositoryId,
- java.lang.String connectionPoint)
- throws java.lang.Exception
repositoryId
- The repository identifier, as defined in IBM Content Navigator. connectionPoint
- (Optional) A string holding the connection point to use when establishing a connection to the Process
Server. If not passed in, will use the connection point registered to the repository in the
administration tool. filenet.vw.api.VWSession
object that provides a session to the IBM FileNet P8 process
server. If a connection to a FileNet P8 repository is not found, this method returns null
. java.lang.Exception
getP8ObjectStore
- public com.filenet.api.core.ObjectStore getP8ObjectStore( java.lang.String repositoryId)
repositoryId
- The repository identifier, as defined in IBM Content Navigator. com.filenet.api.core.ObjectStore
object for the object store represented by the repository
identifier, or null
. getP8Domain
- public com.filenet.api.core.Domain getP8Domain( java.lang.String repositoryId)
repositoryId
- The repository identifier, as defined in IBM Content Navigator. com.filenet.api.core.Domain
domain that contains the object store represented by the
repository identifier, or null
. getP8Domain
- public com.filenet.api.core.Domain getP8Domain( java.lang.String repositoryId,
- com.filenet.api.property.PropertyFilter propertyFilter)
repositoryId
- The repository identifier, as defined in IBM Content Navigator. propertyFilter
- The PropertyFilter to use to fetch the domain object. The filter must contain the Id property. com.filenet.api.core.Domain
domain that contains the object store represented by the
repository identifier, or null
. getP8Subject
- public javax.security.auth.Subject getP8Subject( java.lang.String repositoryId)
Subject
object for the given repository. A Subject
represents a grouping of related information for a single entity, such as a person. Such information includes the
Subject's identities as well as its security-related attributes (for example, passwords and cryptographic keys).
repositoryId
- The repository identifier, as defined in IBM Content Navigator. javax.security.auth.Subject
object for the subject used to authenticate against the
object store represented by the repository identifier, or null
. getResources
- public org.apache.struts.util.MessageResources getResources( )
MessageResources
object. getPluginResources
- public org.apache.struts.util.MessageResources getPluginResources( )
MessageResources
object. getResources
- public org.apache.struts.util.MessageResources getResources( java.lang.String resources)
MessageResources
object. getSynchObject
- public java.lang.Object getSynchObject( java.lang.String repositoryId,
- java.lang.String repositoryType)
For IBM Content Manager, IBM Content Manager OnDemand, and FileNet P8 repositories, this call will return a non-null object which must be used to set up a synchronized block when calling any of the content/annotation retrieval/update calls below or when using the repository API objects returned by getCMDatastore(), getP8Connection(), and getODServer().
repositoryId
- The repository identifier, as defined in IBM Content Navigator. repositoryType
- The repository type, as defined in IBM Content Navigator. retrieveDocumentContent
- public PluginDocumentContent retrieveDocumentContent( java.lang.String repositoryId,
- java.lang.String repositoryType,
- java.lang.String documentId,
- int partNum,
- java.lang.String p8VsId,
- java.lang.String p8Version,
- java.lang.String odFolderName,
- int odSegmentNum,
- boolean odAsciiTransform)
- throws java.lang.Exception
Access and use of this function and returned object must be placed with in a synchronized block, if
getSynchObject
returns non-null. Content can be retrieved from Content Manager, FileNet P8, Content
Manager OnDemand, and CMIS repositories.
repositoryId
- The repository identifier, as defined in IBM Content Navigator. repositoryType
- The repository type, as defined in IBM Content Navigator. documentId
- The document ID. partNum
- Either the part number for a Content Manager multi-part document, or the element id for a FileNet P8
multi-element document. p8VsId
- For FileNet P8, the version series ID. p8Version
- For FileNet P8, specify either "current" to get the latest major/minor version, or "released" to get
the latest major version. odFolderName
- For Content Manager OnDemand, the folder name. odSegmentNum
- For Content Manager OnDemand, the segment number, or specify 0 to retrieve all segments. odAsciiTransform
- For Content Manager OnDemand, set to true to receive ASCII, or false to receive the content in its
native format. java.lang.Exception
retrieveDocumentContent
- public PluginDocumentContent retrieveDocumentContent( java.lang.String repositoryId,
- java.lang.String repositoryType,
- java.lang.String documentId,
- int partNum,
- java.lang.String p8VsId,
- java.lang.String p8Version,
- java.lang.String odFolderName,
- int odSegmentNum,
- java.lang.String odTransform)
- throws java.lang.Exception
Access and use of this function and returned object must be placed with in a synchronized block, if
getSynchObject
returns non-null. Content can be retrieved from Content Manager, FileNet P8, Content
Manager OnDemand, and CMIS repositories.
repositoryId
- The repository identifier, as defined in IBM Content Navigator. repositoryType
- The repository type, as defined in IBM Content Navigator. documentId
- The document ID. partNum
- Either the part number for a Content Manager multi-part document, or the element id for a FileNet P8
multi-element document. p8VsId
- For FileNet P8, the version series ID. p8Version
- For FileNet P8, specify either "current" to get the latest major/minor version, or "released" to get
the latest major version. odFolderName
- For Content Manager OnDemand, the folder name. odSegmentNum
- For Content Manager OnDemand, the segment number, or specify 0 to retrieve all segments. odTransform
- For Content Manager OnDemand, specify to request a transformation type. java.lang.Exception
retrieveContent
- public com.ibm.ecm.util.DocumentContent retrieveContent( java.lang.String repositoryId,
- java.lang.String repositoryType,
- java.lang.String documentId,
- int partNum,
- java.lang.String p8VsId,
- java.lang.String p8Version,
- java.lang.String odFolderName,
- int odSegmentNum,
- boolean odAsciiTransform)
- throws java.lang.Exception
java.lang.Exception
retrieveAnnotations
- public com.ibm.ecm.mediator.BaseMediator retrieveAnnotations( java.lang.String repositoryId,
- java.lang.String repositoryType,
- java.lang.String documentId,
- java.lang.String p8VsId,
- java.lang.String p8Version,
- java.lang.String odFolderName,
- boolean cmBookmarks,
- java.lang.Integer cmAnnotationPosition)
retrieveJSONAnnotations
instead.
retrieveJSONAnnotations
- public JSONObject retrieveJSONAnnotations( java.lang.String repositoryId,
- java.lang.String repositoryType,
- java.lang.String documentId,
- java.lang.String p8VsId,
- java.lang.String p8Version,
- java.lang.String odFolderName,
- boolean cmBookmarks,
- java.lang.Integer cmAnnotationPosition)
Access and use of this function and returned object must be placed with in a synchronized block, if getSynchObject returns non-null. Annotations can be retrieved from Content Manager, FileNet P8, and Content Manager OnDemand repositories.
repositoryId
- The repository identifier, as defined in IBM Content Navigator. repositoryType
- The repository type, as defined in IBM Content Navigator. documentId
- The document ID. p8VsId
- For FileNet P8, the version series ID. p8Version
- For FileNet P8, specify either "current" to get the latest major/minor version, or "released" to get
the latest major version. odFolderName
- For Content Manager OnDemand, the folder name. cmBookmarks
- For Content Manager, specify true to receive bookmarks, and false to receive regular annotations. cmAnnotationPosition
- For Content Manager annotations (not bookmarks), specify the annotationPosition value. This effects
adjustment of placement of annotations in the returned JSON. If this is not specified, a default value
of 1400 will be used. (optional) getP8Document
- public com.filenet.api.core.Document getP8Document( java.lang.String repositoryId,
- java.lang.String documentId,
- java.lang.String vsId,
- java.lang.String version)
repositoryId
- The repository identifier, as defined in IBM Content Navigator. documentId
- The document ID. vsId
- The version series ID. version
- getP8DocumentResultsPropertyFilter
- public com.filenet.api.property.PropertyFilter getP8DocumentResultsPropertyFilter( )
com.filenet.api.property.PropertyFilter
for document results. getP8FolderResultsPropertyFilter
- public com.filenet.api.property.PropertyFilter getP8FolderResultsPropertyFilter( )
com.filenet.api.property.PropertyFilter
for folder results. getP8PrivilegeMasks
- public java.util.HashMap<java.lang.Object,java.lang.Long> getP8PrivilegeMasks( java.lang.String repositoryId,
- java.util.List<java.lang.Object> items)
- throws java.lang.Exception
repositoryId
- The repository identifier, as defined in IBM Content Navigator. items
- The java.util.List
of Object items. java.util.HashMap
that maps each Object to the associated privilege
mask. java.lang.Exception
getCMDocument
- public CMItem getCMDocument(java.lang.String repositoryId,
- java.lang.String documentId,
- com.ibm.mm.sdk.common.DKRetrieveOptionsICM dkRetrieveOptions)
- throws java.lang.Exception
getCMDocumentDDO
, which returns an instance of DKDDO instead.
java.lang.Exception
getCMDocument
- public com.ibm.mm.sdk.common.DKDDO getCMDocument( java.lang.String repositoryId,
- java.lang.String documentId,
- boolean baseAttributes,
- boolean partsList,
- boolean partsAttributes)
- throws java.lang.Exception
getCMDocumentDDO
instead.
java.lang.Exception
getCMDocumentDDO
- public com.ibm.mm.sdk.common.DKDDO getCMDocumentDDO( java.lang.String repositoryId,
- java.lang.String documentId,
- boolean baseAttributes,
- boolean partsList,
- boolean partsAttributes)
- throws java.lang.Exception
Access and use of this function and returned object must be placed with in a synchronized block, if
getSynchObject
returns non-null. Content can be retrieved from Content Manager, FileNet P8, Content
Manager OnDemand, and CMIS repositories.
repositoryId
- The repository identifier, as defined in IBM Content Navigator. documentId
- The document ID. baseAttributes
- Retrieve all base attributes of the document. partsList
- Retrieve the parts list for the document. partsAttributes
- Retrieve the parts attributes for the parts contained in the document. java.lang.Exception
CMApiAndServerVersionAtOrNewer
- public boolean CMApiAndServerVersionAtOrNewer( com.ibm.mm.sdk.server.DKDatastoreICM datastore,
- int version,
- int release,
- int csd,
- int fixpack)
datastore
- The datastore connection version
- Version number release
- Release number csd
- CSD number fixpack
- Fixpack number getCMPrivilegeMasks
- public java.util.HashMap<com.ibm.mm.sdk.common.DKDDO,java.lang.Long> getCMPrivilegeMasks( java.lang.String repositoryId,
- java.util.List<com.ibm.mm.sdk.common.DKDDO> items)
- throws java.lang.Exception
items
- The java.util.List
of DKDDO items. java.util.HashMap
that maps each DKDDO item to the associated
privilege mask. java.lang.Exception
getODDocument
- public com.ibm.edms.od.ODHit getODDocument( java.lang.String repositoryId,
- java.lang.String documentId,
- java.lang.String templateName)
- throws java.lang.Exception
Access and use of this function and returned object must be placed with in a synchronized block, if getSynchObject returns non-null. Content can be retrieved from Content Manager, FileNet P8, Content Manager OnDemand, and CMIS repositories.
repositoryId
- The repository identifier, as defined in IBM Content Navigator. documentId
- The document ID. templateName
- java.lang.Exception
getODPrivilegeMasks
- public java.util.HashMap<com.ibm.edms.od.ODHit,java.lang.Long> getODPrivilegeMasks( java.lang.String repositoryId,
- com.ibm.edms.od.ODFolder folder,
- java.util.List<com.ibm.edms.od.ODHit> items)
- throws java.lang.Exception
repositoryId
- The repository identifier, as defined in IBM Content Navigator. folder
- The ODFolder containing the ODHit items. items
- The java.util.List
of ODHit items. java.util.HashMap
that maps each ODHit to the associated privilege
mask. java.lang.Exception
getCMISDocument
- public org.apache.chemistry.opencmis.client.api.Document getCMISDocument( java.lang.String repositoryId,
- java.lang.String documentId)
repositoryId
- The repository identifier, as defined in IBM Content Navigator. documentId
- The document ID. addODNote
- public ODAnnotationMediator addODNote( java.lang.String repositoryId,
- java.lang.String documentId,
- java.lang.String templateName,
- java.lang.String noteGroupName,
- java.lang.String noteText,
- boolean noteIsOKToCopy,
- boolean noteIsPublic)
Access and use of this function and returned object must be placed with in a synchronized block, if
getSynchObject
returns non-null.
repositoryId
- The repository identifier, as defined in IBM Content Navigator. documentId
- The document ID. templateName
- The folder name. noteGroupName
- noteText
- noteIsOKToCopy
- noteIsPublic
- getP8Annotations
- public com.filenet.api.collection.AnnotationSet getP8Annotations( com.filenet.api.core.Document document,
- java.lang.String repositoryId,
- java.lang.String[] properties)
repositoryId
- The repository identifier, as defined in IBM Content Navigator. getP8AnnotationsXML
- public java.lang.String getP8AnnotationsXML( com.filenet.api.core.Document document,
- java.lang.String repositoryId)
- throws java.lang.Exception
repositoryId
- The repository identifier, as defined in IBM Content Navigator. java.lang.Exception
getCMAnnotations
- public CMObject getCMAnnotations( CMItem item,
- java.lang.String repositoryId,
- int partNum)
- throws java.lang.Exception
getCMAnnotationsXDO
, which
returns an instance of dkXDO instead.
java.lang.Exception
getCMAnnotations
- public CMObject getCMAnnotations( CMItem item,
- java.lang.String repositoryId)
- throws java.lang.Exception
getCMAnnotationsXDO
, which returns
an instance of dkXDO instead.
java.lang.Exception
getCMBookmarks
- public CMObject getCMBookmarks( CMItem item,
- java.lang.String repositoryId)
- throws java.lang.Exception
getCMBookmarksXDO
, which returns an
instance of dkXDO instead.
java.lang.Exception
getCMAnnotationsXDO
- public com.ibm.mm.sdk.common.dkXDO getCMAnnotationsXDO( java.lang.String repositoryId,
- java.lang.String documentId,
- int partNum)
- throws java.lang.Exception
Access and use of this function and returned object must be placed with in a synchronized block, if getSynchObject returns non-null.
repositoryId
- The repository identifier, as defined in IBM Content Navigator. documentId
- The document ID. partNum
- The part number to retrieve. java.lang.Exception
getCMAnnotationsXDO
- public com.ibm.mm.sdk.common.dkXDO getCMAnnotationsXDO( java.lang.String repositoryId,
- java.lang.String documentId)
- throws java.lang.Exception
Access and use of this function and returned object must be placed with in a synchronized block, if getSynchObject returns non-null.
repositoryId
- The repository identifier, as defined in IBM Content Navigator. documentId
- The document ID. java.lang.Exception
getCMBookmarksXDO
- public com.ibm.mm.sdk.common.dkXDO getCMBookmarksXDO( java.lang.String repositoryId,
- java.lang.String documentId)
- throws java.lang.Exception
Access and use of this function and returned object must be placed with in a synchronized block, if getSynchObject returns non-null.
repositoryId
- The repository identifier, as defined in IBM Content Navigator. documentId
- The document ID. java.lang.Exception
getODNotes
- public java.util.Vector[] getODNotes( java.lang.String repositoryId,
- java.lang.String documentId,
- java.lang.String templateName)
- throws java.lang.Exception
The Vector array returned will contain two entries. The first (index 0) contains a Vector containing an ODHit object representing the document itself. The second (index 1) contains a Vector containing all of the ODNote objects for the document.
Access and use of this function and returned object must be placed with in a synchronized block, if getSynchObject returns non-null.
repositoryId
- The repository identifier, as defined in IBM Content Navigator. documentId
- The document ID. templateName
- java.lang.Exception
getRequestUploadFile
- public org.apache.struts.upload.FormFile getRequestUploadFile( )
org.apache.struts.upload.FormFile
object for the file uploaded in the request. If no file
was uploaded this method returns null
. getRequestActionForm
- public org.apache.struts.action.ActionForm getRequestActionForm( )
org.apache.struts.action.ActionForm
object from the request. If no action form is present
this method returns null
. getSystemPropertyLabel
- public java.lang.String getSystemPropertyLabel( java.lang.String repositoryType,
- java.lang.String id,
- java.util.Locale locale)
repositoryType
- the type of repository ("p8", "cm", "od", "cmis") id
- the internal identifier for the system property. getPluginRepositoryConnection
- public PluginRepositoryConnection getPluginRepositoryConnection( java.lang.String repositoryId)
repositoryId
- The repository identifier, as defined in IBM Content Navigator. readJSONRequest
- public JSONRequest readJSONRequest( javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response,
- java.lang.Class jsonRequestClass)
- throws java.lang.Exception
Note: This should never be used within a PluginRequestFilter as it would cause an infinite loop.
request
- The instance of HttpServletRequest to read the parameters. response
- The instance of HttpServletResponse for the request. Although this isn't needed in order to convert
the request parameters to JSON, it is passed to any plug-in request filters so that they can override
behavior and write an alternate response. jsonRequestClass
- The class for a JSONRequest or subclass. An instance of this class is created and the parameters of
the HttpServletRequest are populated as fields into this object. java.lang.Exception
writeJSONResponse
- public void writeJSONResponse(JSONResponse jsonResponse,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Note: This should never be used within a PluginResponseFilter as it would cause an infinite loop.
jsonResponse
- The JSON response to write. response
- The instance of HttpServletResponse in which to write the response. java.lang.Exception
- an exception raised during the writing of the response pluginAPIExists
- public boolean pluginAPIExists( java.lang.String pluginId,
- java.lang.String apiId)
pluginId
- the identifier of the plug-in containing the API. apiId
- the identifier of the plug-in API executePluginAPI
- public java.lang.Object executePluginAPI( java.lang.String pluginId,
- java.lang.String apiId,
- java.lang.Object[] arguments)
- throws java.lang.Exception
pluginId
- the identifier of the plug-in containing the API. apiId
- the identifier of the plug-in API arguments
- an object array containing arguments to the plug-in API. The structure of this objects are defined by
the plug-in containing the API. java.lang.Exception
- an exception either from IBM Content Navigator or the plug-in API. Unless otherwise defined by the
plug-in API, the exception should not be caught and allowed to terminate the invoking plug-in
service. refreshSecurityToken
- public java.lang.String refreshSecurityToken( java.lang.String url)
url
-