|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.GroupManagerGroupDao
public class GroupManagerGroupDao
GroupManagerGroupDao class.
| Nested Class Summary | |
|---|---|
static class |
GroupManagerGroupDao.GroupManagerCastorExceptionTranslator
|
| Constructor Summary | |
|---|---|
GroupManagerGroupDao()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
afterPropertiesSet |
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 |
GroupManager |
getGroupManager()
getGroupManager |
List<String> |
getGroupNames()
getGroupNames |
Map<String,Group> |
getGroups()
getGroups |
Role |
getRole(String name)
getRole |
String[] |
getRoleNames()
getRoleNames |
Collection<Role> |
getRoles()
getRoles |
OwnedIntervalSequence |
getRoleScheduleEntries(String role,
Date start,
Date end)
getRoleScheduleEntries |
List<Schedule> |
getSchedulesForRoleAt(String role,
Date time)
getSchedulesForRoleAt |
List<Schedule> |
getUserSchedulesForRole(String user,
String role)
getUserSchedulesForRole |
long |
groupNextOnDuty(String group,
Calendar time)
Determines when a group is next on duty. |
boolean |
hasGroup(String name)
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 user,
String role,
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 name)
saveRole |
void |
setGroupManager(GroupManager groupManager)
setGroupManager |
void |
setGroups(Map<String,Group> groups)
Set the groups data |
boolean |
userHasRole(String user,
String role)
userHasRole |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupManagerGroupDao()
| Method Detail |
|---|
public void deleteGroup(String name)
deleteGroup in interface GroupDaoname - a String object.public void deleteRole(String name)
deleteRole
deleteRole in interface GroupDaoname - a String object.public void deleteUser(String name)
deleteUser in interface GroupDaoname - a String object.public List<Group> findGroupsForUser(String user)
findGroupsForUser
findGroupsForUser in interface GroupDaouser - a String object.
List object.public Group getGroup(String name)
getGroup in interface GroupDaoname - the name of the group to return
public List<String> getGroupNames()
getGroupNames
getGroupNames in interface GroupDaoList object.public Map<String,Group> getGroups()
getGroups
getGroups in interface GroupDaoMap object.public Role getRole(String name)
getRole
getRole in interface GroupDaoname - a String object.
Role object.public String[] getRoleNames()
getRoleNames
getRoleNames in interface GroupDaoString objects.
public OwnedIntervalSequence getRoleScheduleEntries(String role,
Date start,
Date end)
getRoleScheduleEntries
getRoleScheduleEntries in interface GroupDaorole - a String object.start - a Date object.end - a Date object.
OwnedIntervalSequence object.public Collection<Role> getRoles()
getRoles
getRoles in interface GroupDaoCollection object.
public List<Schedule> getSchedulesForRoleAt(String role,
Date time)
getSchedulesForRoleAt
getSchedulesForRoleAt in interface GroupDaorole - a String object.time - a Date object.
List object.
public List<Schedule> getUserSchedulesForRole(String user,
String role)
getUserSchedulesForRole
getUserSchedulesForRole in interface GroupDaouser - a String object.role - a String object.
List object.
public long groupNextOnDuty(String group,
Calendar time)
groupNextOnDuty in interface GroupDaogroup - the group whose duty schedule we wanttime - the time to check for a duty schedule
public boolean hasGroup(String name)
hasGroup in interface GroupDaoname - a String object.
public boolean isGroupOnDuty(String group,
Calendar time)
isGroupOnDuty in interface GroupDaogroup - the group whose duty schedule we wanttime - the time to check for a duty schedule
public boolean isUserScheduledForRole(String user,
String role,
Date time)
isUserScheduledForRole
isUserScheduledForRole in interface GroupDaouser - a String object.role - a String object.time - a Date object.
public void renameGroup(String oldName,
String newName)
renameGroup in interface GroupDaooldName - a String object.newName - a String object.
public void renameUser(String oldName,
String newName)
renameUser in interface GroupDaooldName - a String object.newName - a String object.
public void saveGroup(String name,
Group details)
saveGroup in interface GroupDaoname - a String object.details - a Group object.public void saveGroups()
saveGroups
saveGroups in interface GroupDaopublic void saveRole(Role name)
saveRole
saveRole in interface GroupDaoname - a Role object.public void setGroups(Map<String,Group> groups)
setGroups in interface GroupDaogroups - a Map object.
public boolean userHasRole(String user,
String role)
userHasRole
userHasRole in interface GroupDaouser - a String object.role - a String object.
public void afterPropertiesSet()
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic GroupManager getGroupManager()
getGroupManager
GroupManager object.public void setGroupManager(GroupManager groupManager)
setGroupManager
groupManager - a GroupManager object.public String getDefaultMapForUser(String user)
getDefaultMapForUser
getDefaultMapForUser in interface GroupDaouser - a String object.
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||