Interface IFilenet
-
- All Superinterfaces:
java.rmi.Remote
public interface IFilenet extends java.rmi.RemoteThis class abstracts away from the filenet methods necessary to "do things" that the crawler or authority needs to be done with the Filenet repository. The purpose for breaking this out is to permit the Filenet invocation to be RMI based, because it relies on too many specific versions of jars. One of the tricks needed is to preserve session. This is handled at this level by explicitly passing a session string around. The session string is created on the remote JVM, and is subsequently used to describe the individual session we care about from the client side.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsid
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckConnection()Check if there is a working connection.voidcreateSession(java.lang.String userID, java.lang.String password, java.lang.String domain, java.lang.String objectStore, java.lang.String serverWSIURI)Create a session.voiddestroySession()Delete a session.java.lang.String[]getChildFolders(java.lang.String[] parentFolderPath)Get the set of folder names that are children of the specified folder path.DocumentClassDefinition[]getDocumentClassesDetails()Get the set of available document classesMetadataFieldDefinition[]getDocumentClassMetadataFieldsDetails(java.lang.String documentClassName)Get the set of available metadata fields per document classjava.lang.IntegergetDocumentContentCount(java.lang.String docId)Get the document content information given an object id.voidgetDocumentContents(java.lang.String docId, int elementNumber, java.lang.String tempFileName)Get document contentsFileInfogetDocumentInformation(java.lang.String docId, java.util.Map<java.lang.String,java.lang.Object> metadataFields)Get document information for a given filenet document.java.lang.String[]getMatchingObjectIds(java.lang.String sql)Execute a sql statement against FileNet and return the matching object id's
-
-
-
Field Detail
-
_rcsid
static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSession
void createSession(java.lang.String userID, java.lang.String password, java.lang.String domain, java.lang.String objectStore, java.lang.String serverWSIURI) throws FilenetException, java.rmi.RemoteExceptionCreate a session.- Parameters:
userID- is the userID to use to establish the session.password- is the password to use to establish the session.domain- is the filenet domain of the user and password.objectStore- is the object store to use to establish the session.serverWSIURI- is the URI to use to get to the server's web services.- Throws:
FilenetExceptionjava.rmi.RemoteException
-
destroySession
void destroySession() throws FilenetException, java.rmi.RemoteExceptionDelete a session.- Throws:
FilenetExceptionjava.rmi.RemoteException
-
checkConnection
void checkConnection() throws FilenetException, java.rmi.RemoteExceptionCheck if there is a working connection.- Throws:
FilenetExceptionjava.rmi.RemoteException
-
getChildFolders
java.lang.String[] getChildFolders(java.lang.String[] parentFolderPath) throws FilenetException, java.rmi.RemoteExceptionGet the set of folder names that are children of the specified folder path.- Throws:
FilenetExceptionjava.rmi.RemoteException
-
getDocumentClassesDetails
DocumentClassDefinition[] getDocumentClassesDetails() throws FilenetException, java.rmi.RemoteException
Get the set of available document classes- Throws:
FilenetExceptionjava.rmi.RemoteException
-
getDocumentClassMetadataFieldsDetails
MetadataFieldDefinition[] getDocumentClassMetadataFieldsDetails(java.lang.String documentClassName) throws FilenetException, java.rmi.RemoteException
Get the set of available metadata fields per document class- Throws:
FilenetExceptionjava.rmi.RemoteException
-
getMatchingObjectIds
java.lang.String[] getMatchingObjectIds(java.lang.String sql) throws java.rmi.RemoteException, FilenetExceptionExecute a sql statement against FileNet and return the matching object id's- Throws:
java.rmi.RemoteExceptionFilenetException
-
getDocumentContentCount
java.lang.Integer getDocumentContentCount(java.lang.String docId) throws java.rmi.RemoteException, FilenetExceptionGet the document content information given an object id. Will return null if the version id is not a current document version id.- Throws:
java.rmi.RemoteExceptionFilenetException
-
getDocumentInformation
FileInfo getDocumentInformation(java.lang.String docId, java.util.Map<java.lang.String,java.lang.Object> metadataFields) throws FilenetException, java.rmi.RemoteException
Get document information for a given filenet document. Will return null if the version id is not a current document version id. The metadataFields hashmap is keyed by document class, and contains as a value either null (meaning "all"), or a String[] that has the list of fields desired.- Throws:
FilenetExceptionjava.rmi.RemoteException
-
getDocumentContents
void getDocumentContents(java.lang.String docId, int elementNumber, java.lang.String tempFileName) throws FilenetException, java.rmi.RemoteExceptionGet document contents- Throws:
FilenetExceptionjava.rmi.RemoteException
-
-