|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.agents.interfaces.RepositoryDocument
public class RepositoryDocument
This class contains the complete information for a document, as read from a repository. The generator of this document is one of the repository connectors; the user of the class is the incremental ingester. Data contained within is described in part by a binary stream (which is expected to be processed), and partly by already-extracted textual data. These streams MUST BE CLOSED BY THE CALLER when the repository document instance has been ingested. The streams also WILL NOT ever be reset; they are read to the end once only.
| Nested Class Summary | |
|---|---|
protected static class |
RepositoryDocument.Security
This class describes allow and deny tokens for a specific security class. |
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected java.io.InputStream |
binaryFieldData
|
protected long |
binaryLength
|
protected java.util.ArrayList |
directorySecurity
|
protected java.util.HashMap |
fields
|
protected RepositoryDocument.Security |
fileSecurity
|
protected RepositoryDocument.Security |
shareSecurity
|
| Constructor Summary | |
|---|---|
RepositoryDocument()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addDirectoryACLs(java.lang.String[] allowACL,
java.lang.String[] denyACL)
Add directory security entry |
void |
addField(java.lang.String fieldName,
java.io.Reader fieldData)
Add a character field. |
void |
addField(java.lang.String fieldName,
java.io.Reader[] fieldData)
Add a multivalue character field. |
void |
addField(java.lang.String fieldName,
java.lang.String fieldData)
Add a character field. |
void |
addField(java.lang.String fieldName,
java.lang.String[] fieldData)
Remove a multivalue character field. |
void |
clearDirectoryACLs()
Clear all directory acls. |
int |
countDirectoryACLs()
Get a count of directory security entries. |
int |
fieldCount()
Get the number of fields. |
java.lang.String[] |
getACL()
Get the document's "file" allow acl, if any. |
long |
getBinaryLength()
Get the binary length. |
java.io.InputStream |
getBinaryStream()
Get the binary fields (if any). |
java.lang.String[] |
getDenyACL()
Get the document's deny acl, if any. |
java.lang.String[] |
getDirectoryACL(int index)
Get directory security access acl |
java.lang.String[] |
getDirectoryDenyACL(int index)
Get directory security deny acl |
java.lang.Object[] |
getField(java.lang.String fieldName)
Get a field. |
java.util.Iterator |
getFields()
Iterate through the field name Strings. |
java.lang.String[] |
getShareACL()
Get document's "share" acl. |
java.lang.String[] |
getShareDenyACL()
Get document's "share" deny acl. |
void |
setACL(java.lang.String[] acl)
Set the document's "file" allow acls. |
void |
setBinary(java.io.InputStream binaryFieldData,
long binaryLength)
Set the binary field. |
void |
setDenyACL(java.lang.String[] acl)
Set the document's "file" deny acl. |
void |
setShareACL(java.lang.String[] acl)
Set document's "share" acl. |
void |
setShareDenyACL(java.lang.String[] acl)
Set document's "share" deny acl. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected java.io.InputStream binaryFieldData
protected long binaryLength
protected java.util.HashMap fields
protected RepositoryDocument.Security fileSecurity
protected RepositoryDocument.Security shareSecurity
protected java.util.ArrayList directorySecurity
| Constructor Detail |
|---|
public RepositoryDocument()
| Method Detail |
|---|
public void setACL(java.lang.String[] acl)
acl - is the allowed "file" access control token list for the document.public java.lang.String[] getACL()
public void setDenyACL(java.lang.String[] acl)
acl - is the "file" denied access control token list for the document.public java.lang.String[] getDenyACL()
public void setShareACL(java.lang.String[] acl)
public java.lang.String[] getShareACL()
public void setShareDenyACL(java.lang.String[] acl)
public java.lang.String[] getShareDenyACL()
public void clearDirectoryACLs()
public int countDirectoryACLs()
public void addDirectoryACLs(java.lang.String[] allowACL,
java.lang.String[] denyACL)
public java.lang.String[] getDirectoryACL(int index)
public java.lang.String[] getDirectoryDenyACL(int index)
public void setBinary(java.io.InputStream binaryFieldData,
long binaryLength)
binaryFieldData - is the input stream containing binary data.public java.io.InputStream getBinaryStream()
public long getBinaryLength()
public void addField(java.lang.String fieldName,
java.io.Reader[] fieldData)
throws ManifoldCFException
fieldName - is the field name.fieldData - is the multi-valued data (as an array of Readers). Null means
to remove the entry from the document.
ManifoldCFException
public void addField(java.lang.String fieldName,
java.io.Reader fieldData)
throws ManifoldCFException
fieldName - is the field name.fieldData - is the single-valued data (as a Reader). Null means "no value".
ManifoldCFException
public void addField(java.lang.String fieldName,
java.lang.String[] fieldData)
throws ManifoldCFException
fieldName - is the field name.fieldData - is the multi-valued data (as a an array of Strings). Null means
to remove the entry from the document.
ManifoldCFException
public void addField(java.lang.String fieldName,
java.lang.String fieldData)
throws ManifoldCFException
fieldName - is the field name.fieldData - is the single-valued data (as a String). Null means "no value".
ManifoldCFExceptionpublic java.lang.Object[] getField(java.lang.String fieldName)
fieldName - is the field name.
public int fieldCount()
public java.util.Iterator getFields()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||