|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GroupDao
GroupDao interface.
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
void setGroups(Map<String,Group> groups)
groups - a Map object.Map<String,Group> getGroups()
Map object.boolean hasGroup(String groupName)
groupName - a String object.
List<String> getGroupNames()
getGroupNames
List object.Group getGroup(String name)
name - the name of the group to return
void saveGroups()
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)
name - a String object.details - a Group object.void saveRole(Role role)
saveRole
role - a Role object.void deleteUser(String name)
name - a String object.void deleteGroup(String name)
name - a String object.void deleteRole(String name)
deleteRole
name - a String object.
void renameGroup(String oldName,
String newName)
oldName - a String object.newName - a String object.
void renameUser(String oldName,
String newName)
oldName - a String object.newName - a String object.String[] getRoleNames()
getRoleNames
String objects.Collection<Role> getRoles()
getRoles
Collection object.Role getRole(String roleName)
getRole
roleName - a String object.
Role object.
boolean userHasRole(String userId,
String roleid)
userHasRole
userId - a String object.roleid - a String object.
List<Schedule> getSchedulesForRoleAt(String roleId,
Date time)
getSchedulesForRoleAt
roleId - a String object.time - a Date object.
List object.
List<Schedule> getUserSchedulesForRole(String userId,
String roleid)
getUserSchedulesForRole
userId - a String object.roleid - a String object.
List object.
boolean isUserScheduledForRole(String userId,
String roleid,
Date time)
isUserScheduledForRole
userId - a String object.roleid - a String object.time - a Date object.
OwnedIntervalSequence getRoleScheduleEntries(String roleid,
Date start,
Date end)
getRoleScheduleEntries
roleid - a String object.start - a Date object.end - a Date object.
OwnedIntervalSequence object.List<Group> findGroupsForUser(String user)
findGroupsForUser
user - a String object.
List object.String getDefaultMapForUser(String user)
getDefaultMapForUser
user - a String object.
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||