Interface IRBACRoleDAO
-
- All Known Implementing Classes:
RBACRoleDAO
public interface IRBACRoleDAOAdminRoleDAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckExistRole(java.lang.String strRoleKey)Check that the given key points to an existing rolevoiddelete(java.lang.String strRoleKey)Delete a record from the tablevoidinsert(RBACRole role)Insert a new record in the table.RBACRoleload(java.lang.String strRoleKey)Load the data of RBACRole from the tablejava.util.Collection<RBACRole>selectRoleList()Load the list of rolesvoidstore(java.lang.String strRoleKey, RBACRole role)Update the record identified by the given role key with the given role in the table
-
-
-
Method Detail
-
checkExistRole
boolean checkExistRole(java.lang.String strRoleKey)
Check that the given key points to an existing role- Parameters:
strRoleKey- The role key- Returns:
- true if the role exists, false otherwise
-
delete
void delete(java.lang.String strRoleKey)
Delete a record from the table- Parameters:
strRoleKey- The RBACRole object
-
insert
void insert(RBACRole role)
Insert a new record in the table.- Parameters:
role- The role object
-
load
RBACRole load(java.lang.String strRoleKey)
Load the data of RBACRole from the table- Parameters:
strRoleKey- The identifier of RBACRole- Returns:
- the instance of the RBACRole
-
selectRoleList
java.util.Collection<RBACRole> selectRoleList()
Load the list of roles- Returns:
- The Collection of the Roles
-
store
void store(java.lang.String strRoleKey, RBACRole role)Update the record identified by the given role key with the given role in the table- Parameters:
strRoleKey- the key of the role to modifyrole- The reference of role to be the new one
-
-