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, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getName, setId, setNameprotected 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 BasicGrouppublic UserSet getUsers()
getUsers in interface BasicGrouppublic <T extends User> Set<T> getUsersAsSet()
getUsersAsSet in interface BasicGrouppublic void removeUser(User user)
removeUser in interface BasicGrouppublic void setUsers(UserSet userSet)
setUsers in interface BasicGrouppublic <T extends User> void setUsersAsSet(Set<T> users)
setUsersAsSet in interface BasicGrouppublic void addRole(Role role)
addRole in interface DynamicGrouppublic RoleSet getRoles()
getRoles in interface DynamicGrouppublic <T extends Role> Set<T> getRolesAsSet()
getRolesAsSet in interface DynamicGrouppublic void removeRole(Role role)
removeRole in interface DynamicGrouppublic void setRoles(RoleSet roleSet)
setRoles in interface DynamicGrouppublic <T extends Role> void setRolesAsSet(Set<T> roles)
setRolesAsSet in interface DynamicGrouppublic String getDatabaseName()
public void retrieveAttachedObjects(Connection con) throws DataBackendException
TorqueAbstractSecurityEntityfalse.retrieveAttachedObjects in class TorqueAbstractSecurityEntitycon - A database connectionDataBackendException - wrapper exception: user information not found exceptionpublic void retrieveAttachedObjects(Connection con, Boolean lazy) throws DataBackendException
TorqueAbstractSecurityEntityretrieveAttachedObjects in class TorqueAbstractSecurityEntitycon - A database connectionlazy - if true, may load some or all relationships laterDataBackendExceptionpublic void update(Connection con) throws org.apache.torque.TorqueException
TorqueAbstractSecurityEntityupdate in class TorqueAbstractSecurityEntitycon - A database connectionorg.apache.torque.TorqueException - database not found exceptionpublic void delete()
throws org.apache.torque.TorqueException
TorqueAbstractSecurityEntitydelete in class TorqueAbstractSecurityEntityorg.apache.torque.TorqueException - if any database error occurs if any database operation failsCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.