public interface GroupDao
GroupDao interface.
| Modifier and Type | Method and Description | 
|---|---|
void | 
deleteGroup(String name)
Removes the group from the list of groups. 
 | 
void | 
deleteRole(String name)
deleteRole 
 | 
void | 
deleteUser(String name)
Removes the user from the list of groups. 
 | 
List<Group> | 
findGroupsForUser(String user)
findGroupsForUser 
 | 
String | 
getDefaultMapForUser(String user)
getDefaultMapForUser 
 | 
Group | 
getGroup(String name)
Get a group using its name 
 | 
List<String> | 
getGroupNames()
getGroupNames 
 | 
Map<String,Group> | 
getGroups()
Get the groups 
 | 
Role | 
getRole(String roleName)
getRole 
 | 
String[] | 
getRoleNames()
getRoleNames 
 | 
Collection<Role> | 
getRoles()
getRoles 
 | 
OwnedIntervalSequence | 
getRoleScheduleEntries(String roleid,
                      Date start,
                      Date end)
getRoleScheduleEntries 
 | 
List<Schedule> | 
getSchedulesForRoleAt(String roleId,
                     Date time)
getSchedulesForRoleAt 
 | 
List<Schedule> | 
getUserSchedulesForRole(String userId,
                       String roleid)
getUserSchedulesForRole 
 | 
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)
isUserScheduledForRole 
 | 
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()
saveGroups 
 | 
void | 
saveRole(Role role)
saveRole 
 | 
void | 
setGroups(Map<String,Group> groups)
Set the groups data 
 | 
boolean | 
userHasRole(String userId,
           String roleid)
userHasRole 
 | 
void setGroups(Map<String,Group> groups)
groups - a Map object.boolean hasGroup(String groupName)
groupName - a String object.Group getGroup(String name)
name - the name of the group to returnvoid saveGroups()
saveGroups
boolean isGroupOnDuty(String group, Calendar time)
group - the group whose duty schedule we wanttime - the time to check for a duty schedulelong groupNextOnDuty(String group, Calendar time)
group - the group whose duty schedule we wanttime - the time to check for a duty schedulevoid saveGroup(String name, Group details)
void deleteUser(String name)
name - a String object.void deleteGroup(String name)
name - a String object.void renameGroup(String oldName, String newName)
void renameUser(String oldName, String newName)
Collection<Role> getRoles()
getRoles
Collection object.List<Schedule> getSchedulesForRoleAt(String roleId, Date time)
getSchedulesForRoleAt
List<Schedule> getUserSchedulesForRole(String userId, String roleid)
getUserSchedulesForRole
boolean isUserScheduledForRole(String userId, String roleid, Date time)
isUserScheduledForRole
OwnedIntervalSequence getRoleScheduleEntries(String roleid, Date start, Date end)
getRoleScheduleEntries
roleid - a String object.start - a Date object.end - a Date object.OwnedIntervalSequence object.Copyright © 2021. All rights reserved.