Class Action
java.lang.Object
org.craftercms.studio.model.policy.Action
Represents a content action that needs to be validated
- Since:
- 4.0.0
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected StringPart of the target path to be createdprotected booleanIndicates if the action is recursiveprotected StringThe source of the actionprotected @NotEmpty StringThe target of the actionprotected @NotNull TypeThe type of action -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) booleanCheck if the action type has a change in name<T> TgetMetadata(String key) getType()booleanvoidsetContentMetadata(Map<String, Object> contentMetadata) voidsetNewPath(String newPath) voidsetRecursive(boolean recursive) voidvoidvoidtoString()
-
Field Details
-
METADATA_FILE_SIZE
- See Also:
-
METADATA_CONTENT_TYPE
- See Also:
-
type
The type of action -
source
The source of the action -
target
The target of the action -
newPath
Part of the target path to be created -
recursive
protected boolean recursiveIndicates if the action is recursive -
contentMetadata
-
-
Constructor Details
-
Action
public Action()
-
-
Method Details
-
getType
-
setType
-
getSource
-
setSource
-
getTarget
-
setTarget
-
getNewPath
-
setNewPath
-
isRecursive
public boolean isRecursive() -
setRecursive
public void setRecursive(boolean recursive) -
getContentMetadata
-
setContentMetadata
-
getMetadata
-
containsMetadata
-
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
-