|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.entities.AdminModuleBase org.bibalex.daf.entities.Role
public class Role
Field Summary | |
---|---|
private DBConnection |
conn
|
private int |
id
|
private java.lang.String |
roleDescription
|
Constructor Summary | |
---|---|
Role()
Class Constructor |
|
Role(DataTable table)
|
|
Role(int roleID)
|
Method Summary | |
---|---|
OperationInfo |
add()
Add new Role |
OperationInfo |
delete()
delete Role |
OperationInfo |
deleteCascade()
delete Role in cascade |
static OperationInfo |
getByID(int recID)
select Role |
int |
getID()
Gets the ID. |
OperationInfo |
getPermissions()
select Role's Permissions |
java.lang.String |
getRoleDescription()
get Role Description |
static OperationInfo |
loadAll()
Load all Roles |
void |
setFieldsFromDataTable(DataTable table)
|
void |
setID(int roleID)
Sets the Role ID. |
void |
setRoleDescription(java.lang.String Value)
set Role Description |
OperationInfo |
update()
update Role |
OperationInfo |
updatePermissions(java.lang.Object[] permissionIDs)
Updates the permissions related to this role. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DBConnection conn
private int id
private java.lang.String roleDescription
Constructor Detail |
---|
public Role()
public Role(int roleID) throws java.lang.Exception
java.lang.Exception
public Role(DataTable table) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void setFieldsFromDataTable(DataTable table)
public static OperationInfo loadAll()
public static OperationInfo getByID(int recID)
recID
- is the record to be selected
public OperationInfo add()
add
in class AdminModuleBase
public OperationInfo delete()
delete
in class AdminModuleBase
public OperationInfo deleteCascade()
public OperationInfo update()
update
in class AdminModuleBase
public OperationInfo getPermissions()
public OperationInfo updatePermissions(java.lang.Object[] permissionIDs)
permissionIDs
-
public void setID(int roleID)
public void setRoleDescription(java.lang.String Value)
Value
- is the Role Descriptionpublic int getID()
public java.lang.String getRoleDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |