public class SecuredModel extends AbstractModel
Secures a flow, state or transition. The user invoking this element must meet the required attributes otherwise access will be denied.
Warning: This model will only configure a security attribute in the definition. The flow execution must also be secured with a SecurityFlowExecutionListener.
SecurityFlowExecutionListener
Constructor and Description |
---|
SecuredModel(String attributes)
Create a security settings model
|
Modifier and Type | Method and Description |
---|---|
Model |
createCopy()
Create a deep copy of this model.
|
String |
getAttributes() |
String |
getMatch() |
boolean |
isMergeableWith(Model model)
Determine if the model is able to be merged into the current model
|
void |
merge(Model model)
Merge the model into the current model
|
void |
setAttributes(String attributes) |
void |
setMatch(String match) |
public SecuredModel(String attributes)
attributes
- the security attributespublic boolean isMergeableWith(Model model)
Model
model
- the model to comparepublic void merge(Model model)
Model
model
- the model to merge withpublic Model createCopy()
Model
public String getAttributes()
public void setAttributes(String attributes)
attributes
- the attributes to setpublic String getMatch()
public void setMatch(String match)
match
- the match to set