|
|||||||||
| 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
| Nested Class Summary | |
|---|---|
static class |
GroupManagerGroupDao.GroupManagerCastorExceptionTranslator
|
| Constructor Summary | |
|---|---|
GroupManagerGroupDao()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
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 |
GroupManager |
getGroupManager()
|
List<String> |
getGroupNames()
|
Map<String,Group> |
getGroups()
Get the groups |
Role |
getRole(String name)
|
String[] |
getRoleNames()
|
Collection |
getRoles()
|
OwnedIntervalSequence |
getRoleScheduleEntries(String role,
Date start,
Date end)
|
List<Schedule> |
getSchedulesForRoleAt(String role,
Date time)
|
List |
getUserSchedulesForRole(String user,
String role)
|
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)
|
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 name)
|
void |
setGroupManager(GroupManager groupManager)
|
void |
setGroups(Map<String,Group> groups)
Set the groups data |
boolean |
userHasRole(String user,
String role)
|
| 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)
GroupDao
deleteGroup in interface GroupDaopublic void deleteRole(String name)
deleteRole in interface GroupDaopublic void deleteUser(String name)
GroupDao
deleteUser in interface GroupDaopublic List<Group> findGroupsForUser(String user)
findGroupsForUser in interface GroupDaopublic Group getGroup(String name)
GroupDao
getGroup in interface GroupDaoname - the name of the group to return
public List<String> getGroupNames()
getGroupNames in interface GroupDaopublic Map<String,Group> getGroups()
GroupDao
getGroups in interface GroupDaopublic Role getRole(String name)
getRole in interface GroupDaopublic String[] getRoleNames()
getRoleNames in interface GroupDao
public OwnedIntervalSequence getRoleScheduleEntries(String role,
Date start,
Date end)
getRoleScheduleEntries in interface GroupDaopublic Collection getRoles()
getRoles in interface GroupDao
public List<Schedule> getSchedulesForRoleAt(String role,
Date time)
getSchedulesForRoleAt in interface GroupDao
public List getUserSchedulesForRole(String user,
String role)
getUserSchedulesForRole in interface GroupDao
public long groupNextOnDuty(String group,
Calendar time)
GroupDao
groupNextOnDuty in interface GroupDaogroup - the group whose duty schedule we wanttime - the time to check for a duty schedule
public boolean hasGroup(String name)
GroupDao
hasGroup in interface GroupDao
public boolean isGroupOnDuty(String group,
Calendar time)
GroupDao
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 in interface GroupDao
public void renameGroup(String oldName,
String newName)
GroupDao
renameGroup in interface GroupDao
public void renameUser(String oldName,
String newName)
GroupDao
renameUser in interface GroupDao
public void saveGroup(String name,
Group details)
GroupDao
saveGroup in interface GroupDaopublic void saveGroups()
saveGroups in interface GroupDaopublic void saveRole(Role name)
saveRole in interface GroupDaopublic void setGroups(Map<String,Group> groups)
GroupDao
setGroups in interface GroupDao
public boolean userHasRole(String user,
String role)
userHasRole in interface GroupDaopublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic GroupManager getGroupManager()
public void setGroupManager(GroupManager groupManager)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||