public abstract class TorqueAbstractBasicUser extends TorqueAbstractSecurityEntity implements BasicUser
Constructor and Description |
---|
TorqueAbstractBasicUser() |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(Group group) |
void |
delete()
Delete this entity
|
String |
getDatabaseName()
Get the name of the connnection pool associated to this object
|
GroupSet |
getGroups() |
<T extends Group> |
getGroupsAsSet() |
protected List<TorqueBasicUserGroup> |
getTorqueBasicUserGroupsJoinTorqueBasicGroup(org.apache.torque.criteria.Criteria criteria,
Connection con)
Forward reference to generated code
Get a list of association objects, pre-populated with their TorqueBasicGroup
objects.
|
void |
removeGroup(Group group) |
void |
retrieveAttachedObjects(Connection con)
Retrieve attached objects such as users, permissions,....
|
void |
setGroups(GroupSet groups) |
<T extends Group> |
setGroupsAsSet(Set<T> groups) |
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
getPassword, setPassword
getId, getName, setId, setName
protected List<TorqueBasicUserGroup> getTorqueBasicUserGroupsJoinTorqueBasicGroup(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 addGroup(Group group)
addGroup
in interface BasicUser
BasicUser.addGroup(org.apache.fulcrum.security.entity.Group)
public GroupSet getGroups()
getGroups
in interface BasicUser
BasicUser.getGroups()
public <T extends Group> Set<T> getGroupsAsSet()
getGroupsAsSet
in interface BasicUser
BasicUser.getGroupsAsSet()
public void removeGroup(Group group)
removeGroup
in interface BasicUser
BasicUser.removeGroup(org.apache.fulcrum.security.entity.Group)
public void setGroups(GroupSet groups)
setGroups
in interface BasicUser
BasicUser.setGroups(org.apache.fulcrum.security.util.GroupSet)
public <T extends Group> void setGroupsAsSet(Set<T> groups)
setGroupsAsSet
in interface BasicUser
BasicUser.setGroupsAsSet(java.util.Set)
public void retrieveAttachedObjects(Connection con) throws org.apache.torque.TorqueException
retrieveAttachedObjects
in class TorqueAbstractSecurityEntity
con
- A database connectionorg.apache.torque.TorqueException
public void update(Connection con) throws org.apache.torque.TorqueException
update
in class TorqueAbstractSecurityEntity
con
- A database connectionorg.apache.torque.TorqueException
public String getDatabaseName()
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–2017 The Apache Software Foundation. All rights reserved.