Class CswsConnector.ObjectInformation
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.csws.CswsConnector.ObjectInformation
-
- Enclosing class:
- CswsConnector
protected class CswsConnector.ObjectInformation extends java.lang.ObjectThis object represents an object information cache. Initialize it with the volume ID and object ID, and then request the appropriate fields from it. Keep it around as long as needed; it functions as a cache of sorts...
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanfetchedprotected longobjectIDprotected com.opentext.livelink.service.docman.NodeobjectValueprotected java.lang.StringworkspaceName
-
Constructor Summary
Constructors Constructor Description ObjectInformation(long objectID)ObjectInformation(java.lang.String workspaceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)booleanexists()Check whether object seems to exist or not.java.util.List<? extends com.opentext.livelink.service.docman.AttributeGroup>getAttributeGroups()Get AttributeGroupslonggetCategoryId(java.lang.String startPath)Returns the category ID specified by the path name.java.lang.StringgetComments()Get OpenText comments/description.java.util.DategetCreationDate()Get creation date.java.lang.LonggetCreatorId()Get creator ID.java.util.DategetModifyDate()java.lang.StringgetName()Get OpenText document name.long[]getObjectCategoryIDs()Get category IDs available to the object with a specified object IDprotected com.opentext.livelink.service.docman.NodegetObjectValue()Get the objInfo object.java.lang.LonggetParentId()Get parent ID.java.lang.LonggetPathId(java.lang.String startPath)Returns the object ID specified by the path name.com.opentext.livelink.service.docman.NodePermissionsgetPermissions()Get permissions.booleangetSpecifiedCategoryAttribute(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, long catID, java.lang.String catName)Fetch attribute value for a specified categoryID for a given object.java.lang.StringgetWorkspaceName()Get workspace nameinthashCode()java.lang.StringtoString()toString override
-
-
-
Method Detail
-
getWorkspaceName
public java.lang.String getWorkspaceName()
Get workspace name
-
exists
public boolean exists() throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionCheck whether object seems to exist or not.- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
toString
public java.lang.String toString()
toString override- Overrides:
toStringin classjava.lang.Object
-
getSpecifiedCategoryAttribute
public boolean getSpecifiedCategoryAttribute(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, long catID, java.lang.String catName) throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionFetch attribute value for a specified categoryID for a given object.- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getPathId
public java.lang.Long getPathId(java.lang.String startPath) throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionReturns the object ID specified by the path name.- Parameters:
startPath- is the folder name (a string with dots as separators)- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getAttributeGroups
public java.util.List<? extends com.opentext.livelink.service.docman.AttributeGroup> getAttributeGroups() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionGet AttributeGroups- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
getObjectCategoryIDs
public long[] getObjectCategoryIDs() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionGet category IDs available to the object with a specified object ID- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
getCategoryId
public long getCategoryId(java.lang.String startPath) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionReturns the category ID specified by the path name.- Parameters:
startPath- is the folder name, ending in a category name (a string with slashes as separators)- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
getPermissions
public com.opentext.livelink.service.docman.NodePermissions getPermissions() throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionGet permissions.- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getName
public java.lang.String getName() throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionGet OpenText document name.- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getComments
public java.lang.String getComments() throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionGet OpenText comments/description.- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getParentId
public java.lang.Long getParentId() throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionGet parent ID.- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getCreationDate
public java.util.Date getCreationDate() throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionGet creation date.- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getCreatorId
public java.lang.Long getCreatorId() throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionGet creator ID.- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getModifyDate
public java.util.Date getModifyDate() throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFException- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getObjectValue
protected com.opentext.livelink.service.docman.Node getObjectValue() throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionGet the objInfo object.- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-