public class UnconditionalPrivilege extends AuthorityPrivilege
Constructor and Description |
---|
UnconditionalPrivilege(ActionGroup actiongroup,
TotalAuthority authority)
creates an unconditional privilege for the given action group for the given
authority
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherobject) |
java.lang.String |
getSecurityManagerName() |
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
|
getAuthority, toString
getActiongroup
public UnconditionalPrivilege(ActionGroup actiongroup, TotalAuthority authority)
actiongroup
- action group the privilege gives access toauthority
- authority the privilege is assigned topublic 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 filepublic java.lang.String getSecurityManagerName()
getSecurityManagerName
in class Privilege
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 boolean equals(java.lang.Object otherobject)
equals
in class java.lang.Object