|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GroupDao
| Method Summary | |
|---|---|
void |
deleteGroup(String name)
Removes the group from the list of groups. |
void |
deleteRole(String name)
|
void |
deleteUser(String name)
Removes the user from the list of groups. |
List<Group> |
findGroupsForUser(String user)
|
Group |
getGroup(String name)
Get a group using its name |
List<String> |
getGroupNames()
|
Map<String,Group> |
getGroups()
Get the groups |
Role |
getRole(String roleName)
|
String[] |
getRoleNames()
|
Collection |
getRoles()
|
OwnedIntervalSequence |
getRoleScheduleEntries(String roleid,
Date start,
Date end)
|
List<Schedule> |
getSchedulesForRoleAt(String roleId,
Date time)
|
List |
getUserSchedulesForRole(String userId,
String roleid)
|
long |
groupNextOnDuty(String group,
Calendar time)
Determines when a group is next on duty. |
boolean |
hasGroup(String groupName)
Returns a boolean indicating if the group name appears in the xml file |
boolean |
isGroupOnDuty(String group,
Calendar time)
Determines if a group is on duty at a given time. |
boolean |
isUserScheduledForRole(String userId,
String roleid,
Date time)
|
void |
renameGroup(String oldName,
String newName)
Renames the group from the list of groups. |
void |
renameUser(String oldName,
String newName)
When this method is called group name is changed, so also is the groupname belonging to the view. |
void |
saveGroup(String name,
Group details)
Adds a new user and overwrites the "groups.xml" |
void |
saveGroups()
|
void |
saveRole(Role role)
|
void |
setGroups(Map<String,Group> groups)
Set the groups data |
boolean |
userHasRole(String userId,
String roleid)
|
| Method Detail |
|---|
void setGroups(Map<String,Group> groups)
Map<String,Group> getGroups()
boolean hasGroup(String groupName)
List<String> getGroupNames()
Group getGroup(String name)
name - the name of the group to return
void saveGroups()
boolean isGroupOnDuty(String group,
Calendar time)
group - the group whose duty schedule we wanttime - the time to check for a duty schedule
long groupNextOnDuty(String group,
Calendar time)
group - the group whose duty schedule we wanttime - the time to check for a duty schedule
void saveGroup(String name,
Group details)
void saveRole(Role role)
void deleteUser(String name)
void deleteGroup(String name)
void deleteRole(String name)
void renameGroup(String oldName,
String newName)
void renameUser(String oldName,
String newName)
String[] getRoleNames()
Collection getRoles()
Role getRole(String roleName)
boolean userHasRole(String userId,
String roleid)
List<Schedule> getSchedulesForRoleAt(String roleId,
Date time)
List getUserSchedulesForRole(String userId,
String roleid)
boolean isUserScheduledForRole(String userId,
String roleid,
Date time)
OwnedIntervalSequence getRoleScheduleEntries(String roleid,
Date start,
Date end)
List<Group> findGroupsForUser(String user)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||