java.lang.Object
org.apache.sling.repoinit.parser.operations.Operation
Direct Known Subclasses:
AddGroupMembers, BaseMixinsOperation, CreateGroup, CreatePath, CreateUser, DeleteAclPaths, DeleteAclPrincipalBased, DeleteAclPrincipals, DeleteGroup, DeleteUser, EnsureAclPrincipalBased, EnsureNodes, RegisterNamespace, RegisterNodetypes, RegisterPrivilege, RemoveAcePaths, RemoveAcePrincipalBased, RemoveAcePrincipals, RemoveGroupMembers, ServiceUserOperation, SetAclPaths, SetAclPrincipalBased, SetAclPrincipals, SetProperties

@ProviderType public abstract class Operation extends Object
  • Field Details

  • Constructor Details

    • Operation

      public Operation()
  • Method Details

    • accept

      public abstract void accept(OperationVisitor v)
    • getParametersDescription

      protected abstract String getParametersDescription()
    • asRepoInitString

      @NotNull public abstract @NotNull 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 String toString()
      Overrides:
      toString in class Object
    • cleanupQuotedString

      public static String cleanupQuotedString(String s)