public abstract class TorqueAbstractDynamicPermission extends TorqueAbstractSecurityEntity implements DynamicPermission
Constructor and Description |
---|
TorqueAbstractDynamicPermission() |
Modifier and Type | Method and Description |
---|---|
void |
addRole(Role role) |
void |
delete()
Delete this entity
|
String |
getDatabaseName()
Get the name of the connection pool associated to this object
|
RoleSet |
getRoles() |
<T extends Role> |
getRolesAsSet() |
protected List<TorqueDynamicRolePermission> |
getTorqueDynamicRolePermissionsJoinTorqueDynamicRole(org.apache.torque.criteria.Criteria criteria,
Connection con)
Forward reference to generated code
Get a list of association objects, pre-populated with their TorqueDynamicRole
objects.
|
void |
removeRole(Role role) |
void |
retrieveAttachedObjects(Connection con)
Retrieve attached objects such as users, permissions, ...
|
void |
setRoles(RoleSet roleSet) |
<T extends Role> |
setRolesAsSet(Set<T> roles) |
void |
update(Connection con)
Update this instance to the database with all dependent objects
|
getEntityId, getEntityName, getId, getName, setEntityId, setEntityName, setId, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, getName, setId, setName
protected List<TorqueDynamicRolePermission> getTorqueDynamicRolePermissionsJoinTorqueDynamicRole(org.apache.torque.criteria.Criteria criteria, Connection con) throws org.apache.torque.TorqueException
criteria
- Criteria to define the selection of recordscon
- a database connectionorg.apache.torque.TorqueException
public void addRole(Role role)
addRole
in interface DynamicPermission
DynamicPermission.addRole(org.apache.fulcrum.security.entity.Role)
public RoleSet getRoles()
getRoles
in interface DynamicPermission
DynamicPermission.getRoles()
public <T extends Role> Set<T> getRolesAsSet()
getRolesAsSet
in interface DynamicPermission
DynamicPermission.getRolesAsSet()
public void removeRole(Role role)
removeRole
in interface DynamicPermission
DynamicPermission.removeRole(org.apache.fulcrum.security.entity.Role)
public void setRoles(RoleSet roleSet)
setRoles
in interface DynamicPermission
DynamicPermission.setRoles(org.apache.fulcrum.security.util.RoleSet)
public <T extends Role> void setRolesAsSet(Set<T> roles)
setRolesAsSet
in interface DynamicPermission
DynamicPermission.setRolesAsSet(java.util.Set)
public String getDatabaseName()
TorqueAbstractSecurityEntity
getDatabaseName
in class TorqueAbstractSecurityEntity
TorqueAbstractSecurityEntity.getDatabaseName()
public void retrieveAttachedObjects(Connection con) throws org.apache.torque.TorqueException
TorqueAbstractSecurityEntity
retrieveAttachedObjects
in class TorqueAbstractSecurityEntity
con
- A database connectionorg.apache.torque.TorqueException
TorqueAbstractSecurityEntity.retrieveAttachedObjects(java.sql.Connection)
public void update(Connection con) throws org.apache.torque.TorqueException
TorqueAbstractSecurityEntity
update
in class TorqueAbstractSecurityEntity
con
- A database connectionorg.apache.torque.TorqueException
TorqueAbstractSecurityEntity.update(java.sql.Connection)
public void delete() throws org.apache.torque.TorqueException
TorqueAbstractSecurityEntity
delete
in class TorqueAbstractSecurityEntity
org.apache.torque.TorqueException
- if any database operation failsTorqueAbstractSecurityEntity.delete()
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.