Class SetAclPrincipalBased
- java.lang.Object
-
- org.apache.sling.repoinit.parser.operations.Operation
-
- org.apache.sling.repoinit.parser.operations.SetAclPrincipalBased
-
@ProviderType public class SetAclPrincipalBased extends Operation
Set ACL statement that groups a set of AclLines that all refer to the same set of principals.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACL_OPTION_MERGE
Supported ACL optionsstatic java.lang.String
ACL_OPTION_MERGE_PRESERVE
-
Constructor Summary
Constructors Constructor Description SetAclPrincipalBased(java.util.List<java.lang.String> principals, java.util.List<AclLine> lines)
SetAclPrincipalBased(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 void
accept(OperationVisitor v)
@NotNull java.lang.String
asRepoInitString()
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
-
SetAclPrincipalBased
public SetAclPrincipalBased(java.util.List<java.lang.String> principals, java.util.List<AclLine> lines)
-
SetAclPrincipalBased
public SetAclPrincipalBased(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:Operation
Converts 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:
asRepoInitString
in 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()
-
-