Class RemoveAcePrincipals
- java.lang.Object
-
- org.apache.sling.repoinit.parser.operations.Operation
-
- org.apache.sling.repoinit.parser.operations.RemoveAcePrincipals
-
@ProviderType public class RemoveAcePrincipals extends Operation
Remove 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 RemoveAcePrincipals(java.util.List<java.lang.String> principals, java.util.List<AclLine> lines)
-
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
-
RemoveAcePrincipals
public RemoveAcePrincipals(java.util.List<java.lang.String> principals, java.util.List<AclLine> lines)
-
-
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()
-
-