public class ObjectDomainPrivilege extends ObjectPrivilege
Constructor and Description |
---|
ObjectDomainPrivilege(ActionGroup actiongroup,
ModuleDomainAuthority authority)
creates a privilege for the given action group for the given module domain
authority
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherobject) |
java.lang.String |
generateAttributeName() |
java.lang.String |
generateClassName() |
void |
generateSecurityManagerSuperStatement(SourceGenerator sg)
generates the super statement for the security manager
|
java.lang.String |
getSecurityManagerClassName() |
java.lang.String |
getSecurityManagerName() |
void |
validate()
validates that the privilege is correct
|
void |
writeImport(SourceGenerator sg,
ActionDefinition contextaction)
method used to write all imports necessary for the privilege
|
getObjectForPrivilege, writeDefinition
getAuthority, toString
getActiongroup
public ObjectDomainPrivilege(ActionGroup actiongroup, ModuleDomainAuthority authority)
actiongroup
- the action group privilege is given toauthority
- the module domain authority that benefits from the
privilegepublic void validate()
ObjectPrivilege
validate
in class ObjectPrivilege
public java.lang.String getSecurityManagerName()
getSecurityManagerName
in class ObjectPrivilege
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 generateAttributeName()
generateAttributeName
in class ObjectPrivilege
public java.lang.String generateClassName()
generateClassName
in class ObjectPrivilege
public java.lang.String getSecurityManagerClassName()
getSecurityManagerClassName
in class ObjectPrivilege
public void generateSecurityManagerSuperStatement(SourceGenerator sg) throws java.io.IOException
ObjectPrivilege
generateSecurityManagerSuperStatement
in class ObjectPrivilege
sg
- source generatiojava.io.IOException
- if anything bad happens while writing the fieldpublic boolean equals(java.lang.Object otherobject)
equals
in class java.lang.Object