Package com.norconex.committer.core.acl
Class AclCommitterConfig
java.lang.Object
com.norconex.committer.core.acl.AclCommitterConfig
How a committer sends the Acl documents carry. A document without
one is sent as it is, whatever this says.
A document is withheld (not sent, a version sent before removed from
the destination, and tried again on the crawler's next run) when its ACL
cannot be read, is of a version this committer does not know, could not be
read at all (AclStatus.NONE), is AclStatus.PARTIAL and
partial is AclPartialPolicy.REJECT, or, in the
AclFormat.NATIVE format, says something the destination cannot
express. A withheld document is never sent as readable by everyone.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault prefix of the fields written in theFLATformat. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe prefix of the fields written in theAclFormat.FLATformat.How documents' ACLs are sent.What to do with a document whose ACL is partial.inthashCode()setFlatPrefix(String flatPrefix) The prefix of the fields written in theAclFormat.FLATformat.How documents' ACLs are sent.setPartial(AclPartialPolicy partial) What to do with a document whose ACL is partial.toString()
-
Field Details
-
DEFAULT_FLAT_PREFIX
Default prefix of the fields written in theFLATformat.- See Also:
-
-
Constructor Details
-
AclCommitterConfig
public AclCommitterConfig()
-
-
Method Details
-
getFormat
How documents' ACLs are sent. When not set, the committer's own default applies:AclFormat.NATIVEfor committers whose destination has its own access control, otherwiseAclFormat.JSON. -
getPartial
What to do with a document whose ACL is partial. Default isAclPartialPolicy.REJECT. -
getFlatPrefix
The prefix of the fields written in theAclFormat.FLATformat. Default is "acl". -
setFormat
How documents' ACLs are sent. When not set, the committer's own default applies:AclFormat.NATIVEfor committers whose destination has its own access control, otherwiseAclFormat.JSON.- Returns:
this.
-
setPartial
What to do with a document whose ACL is partial. Default isAclPartialPolicy.REJECT.- Returns:
this.
-
setFlatPrefix
The prefix of the fields written in theAclFormat.FLATformat. Default is "acl".- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-