Class Action

java.lang.Object
org.craftercms.studio.model.policy.Action

public class Action extends Object
Represents a content action that needs to be validated
Since:
4.0.0
Author:
joseross
  • Field Details

    • METADATA_FILE_SIZE

      public static final String METADATA_FILE_SIZE
      See Also:
    • METADATA_CONTENT_TYPE

      public static final String METADATA_CONTENT_TYPE
      See Also:
    • type

      @NotNull protected @NotNull Type type
      The type of action
    • source

      protected String source
      The source of the action
    • target

      @NotEmpty protected @NotEmpty String target
      The target of the action
    • newPath

      protected String newPath
      Part of the target path to be created
    • recursive

      protected boolean recursive
      Indicates if the action is recursive
    • contentMetadata

      protected Map<String,Object> contentMetadata
  • Constructor Details

    • Action

      public Action()
  • Method Details

    • getType

      public Type getType()
    • setType

      public void setType(Type type)
    • getSource

      public String getSource()
    • setSource

      public void setSource(String source)
    • getTarget

      public String getTarget()
    • setTarget

      public void setTarget(String target)
    • getNewPath

      public String getNewPath()
    • setNewPath

      public void setNewPath(String newPath)
    • isRecursive

      public boolean isRecursive()
    • setRecursive

      public void setRecursive(boolean recursive)
    • getContentMetadata

      public Map<String,Object> getContentMetadata()
    • setContentMetadata

      public void setContentMetadata(Map<String,Object> contentMetadata)
    • getMetadata

      public <T> T getMetadata(String key)
    • containsMetadata

      public boolean containsMetadata(String key)
    • createOrRenameType

      public boolean createOrRenameType()
      Check if the action type has a change in name
      Returns:
      true if of type CREATE or RENAME, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object