Class Operation
- java.lang.Object
-
- org.apache.sling.repoinit.parser.operations.Operation
-
- Direct Known Subclasses:
AddGroupMembers
,CreateGroup
,CreatePath
,CreateUser
,DeleteAclPaths
,DeleteAclPrincipalBased
,DeleteAclPrincipals
,DeleteGroup
,DeleteUser
,RegisterNamespace
,RegisterNodetypes
,RegisterPrivilege
,RemoveAcePaths
,RemoveAcePrincipalBased
,RemoveAcePrincipals
,RemoveGroupMembers
,ServiceUserOperation
,SetAclPaths
,SetAclPrincipalBased
,SetAclPrincipals
,SetProperties
@ProviderType public abstract class Operation extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DQUOTE
-
Constructor Summary
Constructors Constructor Description Operation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
accept(OperationVisitor v)
abstract @NotNull java.lang.String
asRepoInitString()
Converts this operation instance to a RepoInit string representation including the current operation parameters.static java.lang.String
cleanupQuotedString(java.lang.String s)
java.lang.String
toString()
-
-
-
Field Detail
-
DQUOTE
public static final java.lang.String DQUOTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accept
public abstract void accept(OperationVisitor v)
-
asRepoInitString
@NotNull public abstract @NotNull java.lang.String asRepoInitString()
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.- Returns:
- the repoinit string for the operation
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
cleanupQuotedString
public static java.lang.String cleanupQuotedString(java.lang.String s)
-
-