public abstract class TorqueAbstractDynamicGroup extends TorqueAbstractSecurityEntity implements DynamicGroup
Constructor and Description |
---|
TorqueAbstractDynamicGroup() |
Modifier and Type | Method and Description |
---|---|
void |
addRole(Role role) |
void |
addUser(User user) |
void |
delete()
Delete this entity
|
String |
getDatabaseName() |
RoleSet |
getRoles() |
<T extends Role> |
getRolesAsSet() |
protected List<org.apache.fulcrum.security.torque.om.TorqueDynamicGroupRole> |
getTorqueDynamicGroupRolesJoinTorqueDynamicRole(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.
|
protected List<org.apache.fulcrum.security.torque.om.TorqueDynamicUserGroup> |
getTorqueDynamicUserGroupsJoinTorqueDynamicUser(org.apache.torque.criteria.Criteria criteria,
Connection con)
Forward reference to generated code
Get a list of association objects, pre-populated with their TorqueDynamicUser
objects.
|
UserSet |
getUsers() |
<T extends User> |
getUsersAsSet() |
void |
removeRole(Role role) |
void |
removeUser(User user) |
void |
retrieveAttachedObjects(Connection con)
old contract, lazy is set to
false . |
void |
retrieveAttachedObjects(Connection con,
Boolean lazy)
Retrieve attached objects such as users, permissions, ...
|
void |
setRoles(RoleSet roleSet) |
<T extends Role> |
setRolesAsSet(Set<T> roles) |
void |
setUsers(UserSet userSet) |
<T extends User> |
setUsersAsSet(Set<T> users) |
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<org.apache.fulcrum.security.torque.om.TorqueDynamicUserGroup> getTorqueDynamicUserGroupsJoinTorqueDynamicUser(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
- if any database error occursprotected List<org.apache.fulcrum.security.torque.om.TorqueDynamicGroupRole> getTorqueDynamicGroupRolesJoinTorqueDynamicRole(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
- if any database error occurspublic void addUser(User user)
addUser
in interface BasicGroup
public UserSet getUsers()
getUsers
in interface BasicGroup
public <T extends User> Set<T> getUsersAsSet()
getUsersAsSet
in interface BasicGroup
public void removeUser(User user)
removeUser
in interface BasicGroup
public void setUsers(UserSet userSet)
setUsers
in interface BasicGroup
public <T extends User> void setUsersAsSet(Set<T> users)
setUsersAsSet
in interface BasicGroup
public void addRole(Role role)
addRole
in interface DynamicGroup
public RoleSet getRoles()
getRoles
in interface DynamicGroup
public <T extends Role> Set<T> getRolesAsSet()
getRolesAsSet
in interface DynamicGroup
public void removeRole(Role role)
removeRole
in interface DynamicGroup
public void setRoles(RoleSet roleSet)
setRoles
in interface DynamicGroup
public <T extends Role> void setRolesAsSet(Set<T> roles)
setRolesAsSet
in interface DynamicGroup
public String getDatabaseName()
public void retrieveAttachedObjects(Connection con) throws DataBackendException
TorqueAbstractSecurityEntity
false
.retrieveAttachedObjects
in class TorqueAbstractSecurityEntity
con
- A database connectionDataBackendException
- wrapper exception: user information not found exceptionpublic void retrieveAttachedObjects(Connection con, Boolean lazy) throws DataBackendException
TorqueAbstractSecurityEntity
retrieveAttachedObjects
in class TorqueAbstractSecurityEntity
con
- A database connectionlazy
- if true
, may load some or all relationships laterDataBackendException
public void update(Connection con) throws org.apache.torque.TorqueException
TorqueAbstractSecurityEntity
update
in class TorqueAbstractSecurityEntity
con
- A database connectionorg.apache.torque.TorqueException
- database not found exceptionpublic void delete() throws org.apache.torque.TorqueException
TorqueAbstractSecurityEntity
delete
in class TorqueAbstractSecurityEntity
org.apache.torque.TorqueException
- if any database error occurs if any database operation failsCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.