protected class DCTM.SpecInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
aclSet
A set of forced acls
|
protected MatchMap |
matchMap
The path name map
|
protected java.util.Set<java.lang.String> |
mimeTypeSet
Set of allowed mime types; null if all are allowed
|
protected java.lang.String |
pathAttributeName
The path attribute name
|
protected java.util.Map<java.lang.String,java.lang.String[]> |
pathMap
The folder ID to path name mapping (which acts like a cache).
|
protected java.util.Set<java.lang.String> |
pathSet
Set of allowed paths
|
protected boolean |
securityOn
Security on/off
|
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
typeMap
Map of type to selected attributes
|
| Constructor and Description |
|---|
SpecInfo(org.apache.manifoldcf.core.interfaces.Specification spec)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contentTypeMatches(java.lang.String contentType)
Check if a document content type matches the spec.
|
java.lang.String[] |
getAcls()
Grab forced acl out of document specification.
|
java.lang.String |
getForcedAclString() |
java.util.List<java.lang.String> |
getMetadataFields(java.lang.String typeName) |
java.lang.String |
getMetadataVersionAddendum(java.lang.String typeName) |
java.lang.String |
getPathAttributeName()
Get the path attribute name.
|
java.lang.String[] |
getPathAttributeValue(IDocumentumObject object)
Given an identifier, get the array of translated strings that goes into the metadata.
|
java.lang.String |
getPathNameAttributeAddendum() |
boolean |
pathMatches(java.lang.String[] documentPaths)
Check if a set of paths contains one that matches the spec.
|
protected final java.lang.String pathAttributeName
protected final java.util.Map<java.lang.String,java.lang.String[]> pathMap
protected final MatchMap matchMap
protected final java.util.Set<java.lang.String> aclSet
protected final boolean securityOn
protected final java.util.Map<java.lang.String,java.util.List<java.lang.String>> typeMap
protected final java.util.Set<java.lang.String> pathSet
protected final java.util.Set<java.lang.String> mimeTypeSet
public SpecInfo(org.apache.manifoldcf.core.interfaces.Specification spec)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionpublic java.lang.String getPathAttributeName()
public java.lang.String[] getPathAttributeValue(IDocumentumObject object) throws DocumentumException, java.rmi.RemoteException, org.apache.manifoldcf.core.interfaces.ManifoldCFException
DocumentumExceptionjava.rmi.RemoteExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic boolean pathMatches(java.lang.String[] documentPaths)
documentPaths - is the set of paths the document has.public boolean contentTypeMatches(java.lang.String contentType)
contentType - is the mime type that the document has.public java.lang.String[] getAcls()
public java.lang.String getForcedAclString()
public java.util.List<java.lang.String> getMetadataFields(java.lang.String typeName)
public java.lang.String getMetadataVersionAddendum(java.lang.String typeName)
public java.lang.String getPathNameAttributeAddendum()