public class PluginServiceCallbacks
extends java.lang.Object
| Constructor and Description |
|---|
PluginServiceCallbacks(javax.servlet.http.HttpServletRequest request,
Plugin plugin)
For Internal Use Only.
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.ecm.mediator.od.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)
Adds a note for a document in a Content Manager OnDemand repository.
|
boolean |
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.
|
java.lang.String |
decrypt(java.lang.String encrypted)
Decrypts an encrypted secret.
|
void |
deleteConfigurations()
Delete all plug-in configuration data.
|
void |
deleteUserConfigurations()
Delete all user plug-in configuration data.
|
java.lang.String |
encrypt(java.lang.String secret)
Encrypts a secret.
|
java.lang.Object |
executePluginAPI(java.lang.String pluginId,
java.lang.String apiId,
java.lang.Object[] arguments)
Invokes a plug-in API.
|
int |
getBaseContentPartNumber(java.lang.String repositoryId,
com.ibm.mm.sdk.common.DKDDO dkDdo)
Get the base content part number for the retrieved CM Document.
|
com.box.sdk.BoxAPIConnection |
getBoxConnection(java.lang.String repositoryId)
Returns a BoxAPIConnection for the given repository.
|
com.box.sdk.BoxFile |
getBoxDocument(java.lang.String repositoryId,
java.lang.String documentId,
boolean verify)
Retrieves a Box document.
|
com.ibm.ecm.beans.cm.CMObject |
getCMAnnotations(com.ibm.ecm.beans.cm.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. |
com.ibm.ecm.beans.cm.CMObject |
getCMAnnotations(com.ibm.ecm.beans.cm.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. |
com.ibm.mm.sdk.common.dkXDO |
getCMAnnotations(java.lang.String repositoryId,
java.lang.String documentId)
Deprecated.
As of version 2.0.2.1. This method is being removed because it has an indirect dependency on the
internal ICN CMObject class. Use
getCMAnnotationsXDO,
which returns an instance of dkXDO instead. |
com.ibm.mm.sdk.common.dkXDO |
getCMAnnotations(java.lang.String repositoryId,
java.lang.String documentId,
int partNum)
Deprecated.
As of version 2.0.2.1. This method is being removed because it has an indirect dependency on the
internal ICN CMObject class. Use
getCMAnnotationsXDO, which returns an instance of dkXDO instead. |
com.ibm.mm.sdk.common.dkXDO |
getCMAnnotationsXDO(java.lang.String repositoryId,
java.lang.String documentId)
Retrieves Applet viewer annotations (partNum = 0).
|
com.ibm.mm.sdk.common.dkXDO |
getCMAnnotationsXDO(java.lang.String repositoryId,
java.lang.String documentId,
int partNum)
Retrieves annotations stored in the item's specified part number.
|
com.ibm.ecm.beans.cm.CMObject |
getCMBookmarks(com.ibm.ecm.beans.cm.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. |
com.ibm.mm.sdk.common.dkXDO |
getCMBookmarks(java.lang.String repositoryId,
java.lang.String documentId)
Deprecated.
As of version 2.0.2.1. This method is being removed because it has an indirect dependency on the
internal ICN CMObject class. Use
getCMBookmarksXDO, which
returns an instance of dkXDO instead. |
com.ibm.mm.sdk.common.dkXDO |
getCMBookmarksXDO(java.lang.String repositoryId,
java.lang.String documentId)
Retrieves Applet viewer bookmarks (partNum = 1).
|
com.ibm.mm.sdk.server.DKDatastoreICM |
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) |
com.ibm.mm.sdk.common.DKDDO |
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. |
com.ibm.ecm.beans.cm.CMItem |
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. |
PluginDocumentContent |
getCMDocumentContent(java.lang.String repositoryId,
com.ibm.mm.sdk.common.DKDDO dkDdo,
int partNum,
boolean usePartFileName)
Get the document content for the specified part in the retrieved CM Document.
|
com.ibm.mm.sdk.common.DKDDO |
getCMDocumentDDO(java.lang.String repositoryId,
java.lang.String documentId,
boolean baseAttributes,
boolean partsList,
boolean partsAttributes)
Retrieves a Content Manager document.
|
org.apache.chemistry.opencmis.client.api.Document |
getCMISDocument(java.lang.String repositoryId,
java.lang.String documentId)
Retrieves a CMIS document.
|
org.apache.chemistry.opencmis.client.api.Session |
getCMISSession(java.lang.String repositoryId)
Returns a session to a Content Management Interoperability Services source for the given repository.
The returned session should only be used within a synchronized block using the object returned by: getSynchObject(String repositoryId, String repositoryType) |
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)
Returns the privilege masks for the given CM items.
|
ConfigInterface |
getConfigInterface() |
java.lang.String[] |
getConfigurationKeys()
Returns an array of key for the plug-in configurations.
|
javax.security.auth.Subject |
getContainerSubject()
Retrieves the container
Subject object. |
java.lang.String |
getContentDispositionHeader(javax.servlet.http.HttpServletRequest request,
java.lang.String fileName)
Get a string suitable to set as the Content-Disposition header on the response to an HttpServletRequest.
|
java.util.LinkedList<java.lang.Throwable> |
getCurrentServiceExceptions(javax.servlet.http.HttpServletRequest request)
Returns an ordered list of exceptions that occurred during the current service request.
|
java.util.List<PluginFeature> |
getDesktopPluginFeatures()
Returns a list of plug-in features for the current desktop.
|
java.util.List<PluginFeature> |
getDesktopPluginRuntimeFeatures()
Returns a list of plug-in runtime features for the current desktop.
|
java.util.Locale |
getLocale()
Returns the locale that is currently in use for this user session.
|
PluginLogger |
getLogger() |
com.ibm.ecm.jaxrs.util.MessageResources |
getMessageResources()
Returns the Navigator message resource bundle.
|
com.ibm.ecm.jaxrs.util.MessageResources |
getMessageResources(java.lang.String resources)
Returns the specified message resource bundle.
|
com.ibm.ecm.serviceability.MonitoringCounter |
getMonitoringCounter(java.lang.String eventName) |
com.ibm.ecm.serviceability.MonitoringCounter |
getMonitoringCounter(java.lang.String eventName,
java.lang.String subEventName) |
java.net.URL |
getNavigatorBaseUrl()
Returns the base URL for IBM Content Navigator.
|
com.ibm.edms.od.ODHit |
getODDocument(java.lang.String repositoryId,
java.lang.String documentId,
java.lang.String templateName)
Retrieves a Content Manager OnDemand document.
|
java.util.Vector[] |
getODNotes(java.lang.String repositoryId,
java.lang.String documentId,
java.lang.String templateName)
Retrieves Notes for an OD document.
|
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)
Returns the privilege masks for the given OD Objects.
|
com.ibm.edms.od.ODServer |
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) |
javax.servlet.http.HttpServletRequest |
getOriginalRequest(javax.servlet.http.HttpServletRequest request) |
com.filenet.api.collection.AnnotationSet |
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.
|
java.lang.String |
getP8AnnotationsXML(com.filenet.api.core.Document document,
java.lang.String repositoryId)
Gets the annotations XML representing the annotations of a FileNet P8 document.
|
java.lang.String |
getP8BurnInRedactionsXML(com.filenet.api.core.Document document,
java.lang.String repositoryId)
Gets the annotations XML representing the annotations of a FileNet P8 document.
|
com.filenet.api.core.Connection |
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) |
com.ibm.ecm.util.p8.P8Connection |
getP8ConnectionObject(java.lang.String repositoryId)
Deprecated.
This method is deprecated because it uses internal class P8Connection. Use getP8Connection instead.
|
com.filenet.api.core.Document |
getP8Document(java.lang.String repositoryId,
java.lang.String documentId,
java.lang.String vsId,
java.lang.String version)
Retrieves a FileNet P8 document.
|
com.filenet.api.property.PropertyFilter |
getP8DocumentResultsPropertyFilter()
Retrieves the P8 property filter for document results.
|
com.filenet.api.core.Domain |
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.
|
com.filenet.api.core.Domain |
getP8Domain(java.lang.String repositoryId,
com.filenet.api.property.PropertyFilter propertyFilter)
Retrieves the FileNet P8 domain for the given repository.
|
com.filenet.api.property.PropertyFilter |
getP8FolderResultsPropertyFilter()
Retrieves the P8 property filter for folder results.
|
com.filenet.api.core.ObjectStore |
getP8ObjectStore(java.lang.String repositoryId)
Retrieves the IBM FileNet P8 object store for the given repository.
|
java.util.HashMap<java.lang.Object,java.lang.Long> |
getP8PrivilegeMasks(java.lang.String repositoryId,
java.util.List<java.lang.Object> items)
Returns the privilege masks for the given P8 Objects.
|
javax.security.auth.Subject |
getP8Subject(java.lang.String repositoryId)
Retrieves the IBM FileNet P8
Subject object for the given repository. |
com.ibm.ecm.jaxrs.util.MessageResources |
getPluginMessageResources()
Returns the plug-in message resource bundle.
|
PluginRepositoryConnection |
getPluginRepositoryConnection(java.lang.String repositoryId)
Retrieves the PluginRepositoryConnection representing a plug-in provided repository.
|
org.apache.struts.util.MessageResources |
getPluginResources()
Deprecated.
As of 3.0.3, replaced by
getPluginMessageResources()
Returns the plug-in message resource bundle. |
java.lang.String |
getRepositoryId()
Returns the identifier for the repository, such as the server name or object store identifier.
|
org.apache.struts.action.ActionForm |
getRequestActionForm()
Deprecated.
As of 3.0.3, replaced by
getRequestUploadActionForm() |
com.ibm.ecm.jaxrs.action.ActionForm |
getRequestUploadActionForm()
Retrieves the action form from the request.
|
org.apache.struts.upload.FormFile |
getRequestUploadFile()
Deprecated.
As of 3.0.3, replaced by
getRequestUploadFormFile() |
com.ibm.ecm.jaxrs.upload.FormFile |
getRequestUploadFormFile()
Retrieves the upload file from the request.
|
org.apache.struts.util.MessageResources |
getResources()
Deprecated.
As of 3.0.3, replaced by
getMessageResources()
Returns the Navigator message resource bundle. |
org.apache.struts.util.MessageResources |
getResources(java.lang.String resources)
Deprecated.
As of 3.0.3, replaced by
getMessageResources(String)
Returns the specified message resource bundle. |
java.net.URL |
getServerBaseUrl()
Returns the URL to address the application server that is running IBM Content Navigator services.
|
java.lang.Object |
getSynchObject(java.lang.String repositoryId,
java.lang.String repositoryType)
Returns a synchronization object for the specified repository.
|
java.lang.String |
getSystemPropertyLabel(java.lang.String repositoryType,
java.lang.String id,
java.util.Locale locale)
Retrieves the label to use for a system property.
|
java.lang.String[] |
getUserConfigurationKeys()
Returns the configuration keys per-user configuration of the plug-in
|
java.lang.String |
getUserId()
Returns the user identifier for the current repository.
|
filenet.vw.api.VWSession |
getVWSession(java.lang.String repositoryId,
java.lang.String connectionPoint)
Retrieves a VWSession object for a given repository FileNet P8 domain.
|
boolean |
isApplicationAdminUser(javax.servlet.http.HttpServletRequest request,
java.lang.String appName,
java.lang.String desktopName)
Returns true if the user's desktop container login is an application administrator.
|
boolean |
isCancelled()
Returns true if cancel notification was received for the request.
|
boolean |
isPluginEnabled(java.lang.String pluginId)
Returns true if the plug-in is enabled on the current desktop.
|
java.lang.String |
loadConfiguration()
Returns the configuration for the plug-in.
|
java.lang.String[] |
loadConfigurations(java.lang.String[] keys)
Return an array of configuration in the same order denoted by keys
|
java.lang.String |
loadFeatureConfiguration(java.lang.String featureId)
Returns the feature's configuration for the plug-in.
|
java.lang.String |
loadUserConfiguration(java.lang.String key)
Returns the per-user configuration for the plug-in for the given key.
|
java.lang.String[] |
loadUserConfiguration(java.lang.String[] keys)
Returns the per-user multiple configuration for the plug-in for the given key.
|
boolean |
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.
|
JSONRequest |
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.
|
java.lang.String |
refreshSecurityToken(java.lang.String url)
If the url contains a security token, and it is stale, replace it with the current security token.
|
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)
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. |
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)
Deprecated.
As of Version 2.0.2. The returned DocumentContent class has been refactored into the extension
package. Use retrieveDocumentContent.
|
PluginDocumentContent |
retrieveDocumentContent(java.lang.String repositoryId,
java.lang.String repositoryType,
java.lang.String documentId,
int partNum,
java.lang.String p8VsId,
java.lang.String p8Version,
boolean fullBurnIn)
Retrieves document content for FileNet P8 and Content Manager.
|
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)
Retrieves document content.
|
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)
Retrieves document content.
|
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)
Retrieves annotations for a document.
|
void |
saveConfiguration(java.util.Hashtable<java.lang.String,java.lang.String> configs)
Saves configurations of a plug-in.
|
void |
saveConfiguration(java.lang.String config)
Saves the configuration of the plug-in.
|
void |
saveFeatureConfiguration(java.lang.String featureId,
java.lang.String config)
Saves the feature's configuration for the plug-in.
|
void |
saveUserConfiguration(java.util.Hashtable<java.lang.String,java.lang.String> configs)
Saves the per-user configuration of the plug-in for the given keys.
|
void |
saveUserConfiguration(java.lang.String key,
java.lang.String config)
Saves the per-user configuration of the plug-in for the given key.
|
<T> void |
sendMessage(MessageGenerator<T> messageGenerator,
java.lang.annotation.Annotation... qualifiers)
Sends a message using a custom message generator to subscribed event handlers.
|
<T> void |
sendMessage(T message,
java.lang.annotation.Annotation... qualifiers)
Sends a message to subscribed event handlers.
|
void |
writeJSONResponse(JSONResponse jsonResponse,
javax.servlet.http.HttpServletResponse response)
Writes a JSON response to the HttpServletResponse provided.
|
public PluginServiceCallbacks(javax.servlet.http.HttpServletRequest request,
Plugin plugin)
public PluginLogger getLogger()
public com.ibm.ecm.serviceability.MonitoringCounter getMonitoringCounter(java.lang.String eventName)
eventName - The name of the event to monitor.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.public javax.servlet.http.HttpServletRequest getOriginalRequest(javax.servlet.http.HttpServletRequest request)
public java.lang.String loadConfiguration()
throws java.lang.Exception
String that contains the configuration for the plug-in.java.lang.Exceptionpublic void saveConfiguration(java.lang.String config)
throws java.lang.Exception
java.lang.Exceptionpublic 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.Exceptionpublic 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.Exceptionpublic void deleteConfigurations()
throws java.lang.Exception
java.lang.Exceptionpublic void deleteUserConfigurations()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String[] getConfigurationKeys()
throws java.lang.Exception
String[] of key for the plug-in configurations.java.lang.Exceptionpublic 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.Exceptionpublic void saveFeatureConfiguration(java.lang.String featureId,
java.lang.String config)
throws java.lang.Exception
featureId - The id of the feature that will have its configuration saved.config - The configuration string to save for the provided feature.java.lang.Exceptionpublic 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.Exceptionpublic 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.Exceptionpublic 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.Exceptionpublic java.lang.String[] getUserConfigurationKeys()
throws java.lang.Exception
String array that contains the configuration key for the user.java.lang.Exceptionpublic 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.Exceptionpublic java.lang.String getRepositoryId()
String that contains the repository ID.public ConfigInterface getConfigInterface()
ConfigInterface that contains the tenant-specific configuration.public javax.security.auth.Subject getContainerSubject()
Subject object.Subject object for the subject used to authenticate to the container, or null.public java.lang.String getUserId()
String that contains the user ID.public java.util.Locale getLocale()
public java.net.URL getServerBaseUrl()
public java.net.URL getNavigatorBaseUrl()
public com.ibm.mm.sdk.server.DKDatastoreICM getCMDatastore(java.lang.String repositoryId)
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.public com.ibm.edms.od.ODServer getODServer(java.lang.String repositoryId)
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.public com.filenet.api.core.Connection getP8Connection(java.lang.String repositoryId)
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.public com.ibm.ecm.util.p8.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.public org.apache.chemistry.opencmis.client.api.Session getCMISSession(java.lang.String repositoryId)
repositoryId - The repository identifier, as defined in IBM Content Navigator.org.apache.chemistry.opencmis.client.api.Session object that provides a connection to the
Content Management Interoperability Services source. If the server is not found, this method returns
null.public com.box.sdk.BoxAPIConnection getBoxConnection(java.lang.String repositoryId)
repositoryId - The repository identifier, as defined in IBM Content Navigator.com.box.sdk.BoxAPIConnection object that provides a connection to the Box repository. If
the server is not found, this method returns null.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.Exceptionpublic 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.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.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.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.@Deprecated public org.apache.struts.util.MessageResources getResources()
getMessageResources()
Returns the Navigator message resource bundle.MessageResources object.public com.ibm.ecm.jaxrs.util.MessageResources getMessageResources()
MessageResources object.@Deprecated public org.apache.struts.util.MessageResources getPluginResources()
getPluginMessageResources()
Returns the plug-in message resource bundle.MessageResources object.public com.ibm.ecm.jaxrs.util.MessageResources getPluginMessageResources()
MessageResources object.@Deprecated public org.apache.struts.util.MessageResources getResources(java.lang.String resources)
getMessageResources(String)
Returns the specified message resource bundle.MessageResources object.public com.ibm.ecm.jaxrs.util.MessageResources getMessageResources(java.lang.String resources)
MessageResources object.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.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.Exceptionpublic 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.Exceptionpublic PluginDocumentContent retrieveDocumentContent(java.lang.String repositoryId, java.lang.String repositoryType, java.lang.String documentId, int partNum, java.lang.String p8VsId, java.lang.String p8Version, boolean fullBurnIn) 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.fullBurnIn - For P8 , specify all sensitive data to be redacted or only content that the current user is cannot view.java.lang.Exceptionpublic 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.Exceptionpublic 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.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)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 - public com.filenet.api.property.PropertyFilter getP8DocumentResultsPropertyFilter()
com.filenet.api.property.PropertyFilter for document results.public com.filenet.api.property.PropertyFilter getP8FolderResultsPropertyFilter()
com.filenet.api.property.PropertyFilter for folder results.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 list of Object items.java.lang.Exceptionpublic com.ibm.ecm.beans.cm.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.Exceptionpublic 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.Exceptionpublic 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.Exceptionpublic int getBaseContentPartNumber(java.lang.String repositoryId,
com.ibm.mm.sdk.common.DKDDO dkDdo)
repositoryId - dkDdo - public PluginDocumentContent getCMDocumentContent(java.lang.String repositoryId, com.ibm.mm.sdk.common.DKDDO dkDdo, int partNum, boolean usePartFileName) throws java.lang.Exception
repositoryId - dkDdo - partNum - usePartFileName - java.lang.Exceptionpublic boolean CMApiAndServerVersionAtOrNewer(com.ibm.mm.sdk.server.DKDatastoreICM datastore,
int version,
int release,
int csd,
int fixpack)
datastore - The datastore connectionversion - Version numberrelease - Release numbercsd - CSD numberfixpack - Fixpack numberpublic 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
repositoryId - The datastore connectionitems - The list of DKDDO items.java.lang.Exceptionpublic 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.Exceptionpublic 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 list of ODHit items.java.lang.Exceptionpublic 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.public com.box.sdk.BoxFile getBoxDocument(java.lang.String repositoryId,
java.lang.String documentId,
boolean verify)
repositoryId - The repository identifier, as defined in IBM Content Navigator.documentId - The document ID.verify - A flag indicating whether or not the document existence should be confirmed when making this call. If
false, the returned object is a placeholder representing the specified documentId, and may not
necessarily represent an existing accessible document.public com.ibm.ecm.mediator.od.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 - public com.filenet.api.collection.AnnotationSet getP8Annotations(com.filenet.api.core.Document document,
java.lang.String repositoryId,
java.lang.String[] properties)
document - The document.repositoryId - The repository identifier, as defined in IBM Content Navigator.public java.lang.String getP8AnnotationsXML(com.filenet.api.core.Document document,
java.lang.String repositoryId)
throws java.lang.Exception
document - The document.repositoryId - The repository identifier, as defined in IBM Content Navigator.java.lang.Exceptionpublic java.lang.String getP8BurnInRedactionsXML(com.filenet.api.core.Document document,
java.lang.String repositoryId)
throws java.lang.Exception
document - The document.repositoryId - The repository identifier, as defined in IBM Content Navigator.java.lang.Exceptionpublic com.ibm.ecm.beans.cm.CMObject getCMAnnotations(com.ibm.ecm.beans.cm.CMItem item,
java.lang.String repositoryId,
int partNum)
throws java.lang.Exception
getCMAnnotationsXDO, which
returns an instance of dkXDO instead.java.lang.Exceptionpublic com.ibm.ecm.beans.cm.CMObject getCMAnnotations(com.ibm.ecm.beans.cm.CMItem item,
java.lang.String repositoryId)
throws java.lang.Exception
getCMAnnotationsXDO, which returns
an instance of dkXDO instead.java.lang.Exceptionpublic com.ibm.ecm.beans.cm.CMObject getCMBookmarks(com.ibm.ecm.beans.cm.CMItem item,
java.lang.String repositoryId)
throws java.lang.Exception
getCMBookmarksXDO, which returns an
instance of dkXDO instead.java.lang.Exceptionpublic com.ibm.mm.sdk.common.dkXDO getCMAnnotations(java.lang.String repositoryId,
java.lang.String documentId,
int partNum)
throws java.lang.Exception
getCMAnnotationsXDO, which returns an instance of dkXDO instead.java.lang.Exceptionpublic com.ibm.mm.sdk.common.dkXDO getCMAnnotations(java.lang.String repositoryId,
java.lang.String documentId)
throws java.lang.Exception
getCMAnnotationsXDO,
which returns an instance of dkXDO instead.java.lang.Exceptionpublic com.ibm.mm.sdk.common.dkXDO getCMBookmarks(java.lang.String repositoryId,
java.lang.String documentId)
throws java.lang.Exception
getCMBookmarksXDO, which
returns an instance of dkXDO instead.java.lang.Exceptionpublic 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.Exceptionpublic 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.Exceptionpublic 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.Exceptionpublic 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@Deprecated public org.apache.struts.upload.FormFile getRequestUploadFile()
getRequestUploadFormFile()FormFile object for the file uploaded in the request. If no file
was uploaded this method returns null.public com.ibm.ecm.jaxrs.upload.FormFile getRequestUploadFormFile()
FormFile object for the file uploaded in the request. If no file
was uploaded this method returns null.@Deprecated public org.apache.struts.action.ActionForm getRequestActionForm()
getRequestUploadActionForm()ActionForm object from the request. If no action form is present
this method returns null.public com.ibm.ecm.jaxrs.action.ActionForm getRequestUploadActionForm()
ActionForm object from the request. If no action form is present
this method returns null.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.public PluginRepositoryConnection getPluginRepositoryConnection(java.lang.String repositoryId)
repositoryId - The repository identifier, as defined in IBM Content Navigator.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.Exceptionpublic 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 responsepublic boolean isPluginEnabled(java.lang.String pluginId)
pluginId - The identifier of the plug-in.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 APIpublic 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 APIarguments - 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.public java.lang.String refreshSecurityToken(java.lang.String url)
url - public java.lang.String getContentDispositionHeader(javax.servlet.http.HttpServletRequest request,
java.lang.String fileName)
request - fileName - public boolean isCancelled()
public java.util.LinkedList<java.lang.Throwable> getCurrentServiceExceptions(javax.servlet.http.HttpServletRequest request)
request - The instance of HttpServletRequest to read the parameters.public boolean isApplicationAdminUser(javax.servlet.http.HttpServletRequest request,
java.lang.String appName,
java.lang.String desktopName)
boolean true if the user's desktop container login is an application administrator.public java.util.List<PluginFeature> getDesktopPluginFeatures()
public java.util.List<PluginFeature> getDesktopPluginRuntimeFeatures()
public java.lang.String encrypt(java.lang.String secret)
Plugin.configurationSaving(HttpServletRequest,
PluginServiceCallbacks, String) to encrypt any secrets the plug-in configuration may contain before saving the
configuration. Secrets should be re-encrypted when the system administrator rotates the data key by using an
event handler subscribed to DataKey along with the value of "plugin" and
Rotated, @DataKey("plugin") @Rotatedsecret - The secret to be encryptedPlugin.getEventHandlers()public java.lang.String decrypt(java.lang.String encrypted)
encrypt(String).encrypted - The encrypted secretpublic <T> void sendMessage(T message,
java.lang.annotation.Annotation... qualifiers)
EventAnnotation and TopicAnnotation.T - The type of the message datamessage - The message to be sentqualifiers - The event qualifierspublic <T> void sendMessage(MessageGenerator<T> messageGenerator, java.lang.annotation.Annotation... qualifiers)
MessageGenerator to provide extra parameters to subscribed event handlers. The
optional event qualifiers can be defined by using annotations such as EventAnnotation and TopicAnnotation.T - The type of the message datamessageGenerator - The message generatorqualifiers - The event qualifiers