Class EnsureAclPrincipalBased
- java.lang.Object
 - 
- org.apache.sling.repoinit.parser.operations.Operation
 - 
- org.apache.sling.repoinit.parser.operations.EnsureAclPrincipalBased
 
 
 
- 
@ProviderType public class EnsureAclPrincipalBased extends Operation
Set ACL statement that groups a set of AclLines that all refer to the same set of principals. Fails in case the principal ACLs cannot be applied for some reason.- See Also:
 SetAclPrincipalBased
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACL_OPTION_MERGESupported ACL optionsstatic java.lang.StringACL_OPTION_MERGE_PRESERVE 
- 
Constructor Summary
Constructors Constructor Description EnsureAclPrincipalBased(java.util.List<java.lang.String> principals, java.util.List<AclLine> lines)EnsureAclPrincipalBased(java.util.List<java.lang.String> principals, java.util.List<AclLine> lines, java.util.List<java.lang.String> aclOptions) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(OperationVisitor v)@NotNull java.lang.StringasRepoInitString()Converts this operation instance to a RepoInit string representation including the current operation parameters.java.util.Collection<AclLine>getLines()java.util.List<java.lang.String>getOptions()java.util.List<java.lang.String>getPrincipals()- 
Methods inherited from class org.apache.sling.repoinit.parser.operations.Operation
cleanupQuotedString, toString 
 - 
 
 - 
 
- 
- 
Field Detail
- 
ACL_OPTION_MERGE
public static final java.lang.String ACL_OPTION_MERGE
Supported ACL options- See Also:
 - Constant Field Values
 
 
- 
ACL_OPTION_MERGE_PRESERVE
public static final java.lang.String ACL_OPTION_MERGE_PRESERVE
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
EnsureAclPrincipalBased
public EnsureAclPrincipalBased(java.util.List<java.lang.String> principals, java.util.List<AclLine> lines) 
- 
EnsureAclPrincipalBased
public EnsureAclPrincipalBased(java.util.List<java.lang.String> principals, java.util.List<AclLine> lines, java.util.List<java.lang.String> aclOptions) 
 - 
 
- 
Method Detail
- 
asRepoInitString
@NotNull public @NotNull java.lang.String asRepoInitString()
Description copied from class:OperationConverts this operation instance to a RepoInit string representation including the current operation parameters. The representation must be parsable back into an equivalent operation and must end with a OS-compatible line separator.- Specified by:
 asRepoInitStringin classOperation- Returns:
 - the repoinit string for the operation
 
 
- 
getPrincipals
public java.util.List<java.lang.String> getPrincipals()
 
- 
accept
public void accept(OperationVisitor v)
 
- 
getLines
public java.util.Collection<AclLine> getLines()
 
- 
getOptions
public java.util.List<java.lang.String> getOptions()
 
 - 
 
 -