public class ObjectPersonalPrivilege extends Privilege
Constructor and Description |
---|
ObjectPersonalPrivilege(ActionGroup actiongroup,
Personal personal)
creates an object personal privilege for the given action group, using the
Personal property of the object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSecurityManagerName() |
void |
validate()
validates that the privilege is valid
|
void |
writeDefinition(SourceGenerator sg,
ActionDefinition contextaction)
writes the definition of the privilege on the action
|
void |
writeImport(SourceGenerator sg,
ActionDefinition contextaction)
method used to write all imports necessary for the privilege
|
getActiongroup
public ObjectPersonalPrivilege(ActionGroup actiongroup, Personal personal)
actiongroup
- action group the privilege gives access topersonal
- personal property used to check if current user is
authorized or notpublic void validate()
public void writeImport(SourceGenerator sg, ActionDefinition contextaction) throws java.io.IOException
Privilege
writeImport
in class Privilege
sg
- source generatorcontextaction
- context action of the privilegejava.io.IOException
- if anything bad happens in the writing of the importspublic java.lang.String getSecurityManagerName()
getSecurityManagerName
in class Privilege
public void writeDefinition(SourceGenerator sg, ActionDefinition contextaction) throws java.io.IOException
Privilege
writeDefinition
in class Privilege
sg
- source generatorcontextaction
- context actionjava.io.IOException
- thrown if anything bad happens while writing the file