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 Summary
Fields Modifier and Type Field Description protected Map<String,Object>
contentMetadata
static String
METADATA_CONTENT_TYPE
static String
METADATA_FILE_SIZE
protected String
newPath
Part of the target path to be createdprotected boolean
recursive
Indicates if the action is recursiveprotected String
source
The source of the actionprotected @NotEmpty String
target
The target of the actionprotected @NotNull Type
type
The type of action
-
Constructor Summary
Constructors Constructor Description Action()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsMetadata(String key)
Map<String,Object>
getContentMetadata()
<T> T
getMetadata(String key)
String
getNewPath()
String
getSource()
String
getTarget()
Type
getType()
boolean
isRecursive()
void
setContentMetadata(Map<String,Object> contentMetadata)
void
setNewPath(String newPath)
void
setRecursive(boolean recursive)
void
setSource(String source)
void
setTarget(String target)
void
setType(Type type)
String
toString()
-
-
-
Field Detail
-
METADATA_FILE_SIZE
public static final String METADATA_FILE_SIZE
- See Also:
- Constant Field Values
-
METADATA_CONTENT_TYPE
public static final String METADATA_CONTENT_TYPE
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
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)
-
getMetadata
public <T> T getMetadata(String key)
-
containsMetadata
public boolean containsMetadata(String key)
-
-