public abstract class Privilege
extends java.lang.Object
Constructor and Description |
---|
Privilege(ActionGroup actiongroup)
creates a privilege for the given action group
|
Modifier and Type | Method and Description |
---|---|
ActionGroup |
getActiongroup() |
abstract java.lang.String |
getSecurityManagerName() |
abstract void |
writeDefinition(SourceGenerator sg,
ActionDefinition contextaction)
writes the definition of the privilege on the action
|
abstract void |
writeImport(SourceGenerator sg,
ActionDefinition contextaction)
method used to write all imports necessary for the privilege
|
public Privilege(ActionGroup actiongroup)
actiongroup
- action group the privilege is giving privileges onpublic ActionGroup getActiongroup()
public abstract void writeImport(SourceGenerator sg, ActionDefinition contextaction) throws java.io.IOException
sg
- source generatorcontextaction
- context action of the privilegejava.io.IOException
- if anything bad happens in the writing of the importspublic abstract java.lang.String getSecurityManagerName()
public abstract void writeDefinition(SourceGenerator sg, ActionDefinition contextaction) throws java.io.IOException
sg
- source generatorcontextaction
- context actionjava.io.IOException
- thrown if anything bad happens while writing the file