public interface GroupConfig
| Modifier and Type | Method and Description | 
|---|---|
void | 
deleteGroup(String name)
deleteGroup 
 | 
void | 
deleteRole(String name)
deleteRole 
 | 
void | 
deleteUser(String name)
deleteUser 
 | 
List<Group> | 
findGroupsForUser(String user)
findGroupsForUser 
 | 
Group | 
getGroup(String name)
getGroup 
 | 
List<String> | 
getGroupNames()
getGroupNames 
 | 
Map<String,Group> | 
getGroups()
getGroups 
 | 
OnmsGroup | 
getOnmsGroup(String groupName)
getOnmsGroup 
 | 
OnmsGroupList | 
getOnmsGroupList()
getOnmsGroupList 
 | 
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)
groupNextOnDuty 
 | 
boolean | 
hasGroup(String groupName)
hasGroup 
 | 
boolean | 
isGroupOnDuty(String group,
             Calendar time)
isGroupOnDuty 
 | 
boolean | 
isUserScheduledForRole(String userId,
                      String roleId,
                      Date time)
isUserScheduledForRole 
 | 
void | 
renameGroup(String oldName,
           String newName)
renameGroup 
 | 
void | 
renameUser(String oldName,
          String newName)
renameUser 
 | 
void | 
save(OnmsGroup group)
save 
 | 
void | 
saveGroup(String name,
         Group details)
saveGroup 
 | 
void | 
saveGroups()
saveGroups 
 | 
void | 
saveRole(Role role)
saveRole 
 | 
void | 
setGroups(Map<String,Group> grp)
setGroups 
 | 
boolean | 
userHasRole(String userId,
           String roleid)
userHasRole 
 | 
Map<String,Group> getGroups() throws IOException
getGroups
IOExceptionOnmsGroupList getOnmsGroupList() throws IOException
getOnmsGroupList
IOExceptionOnmsGroup getOnmsGroup(String groupName) throws IOException
getOnmsGroup
a - StringIOExceptionboolean hasGroup(String groupName) throws IOException
hasGroup
a - StringIOExceptionList<String> getGroupNames() throws IOException
getGroupNames
IOExceptionGroup getGroup(String name) throws IOException
getGroup
a - StringIOExceptionboolean isGroupOnDuty(String group, Calendar time) throws IOException
isGroupOnDuty
a - Stringa - CalendarIOExceptionlong groupNextOnDuty(String group, Calendar time) throws IOException
groupNextOnDuty
a - Stringa - CalendarIOExceptionvoid saveGroup(String name, Group details) throws Exception
saveGroup
a - Stringa - GroupExceptionvoid deleteUser(String name) throws Exception
deleteUser
a - StringExceptionvoid deleteGroup(String name) throws Exception
deleteGroup
a - StringExceptionvoid deleteRole(String name) throws Exception
deleteRole
a - StringExceptionvoid renameGroup(String oldName, String newName) throws Exception
renameGroup
a - Stringa - StringExceptionvoid renameUser(String oldName, String newName) throws Exception
renameUser
a - Stringa - StringExceptionString[] getRoleNames()
getRoleNames
Collection<Role> getRoles()
getRoles
boolean userHasRole(String userId, String roleid) throws IOException
userHasRole
a - Stringa - StringIOExceptionList<Schedule> getSchedulesForRoleAt(String roleId, Date time) throws IOException
getSchedulesForRoleAt
a - Stringa - StringIOExceptionList<Schedule> getUserSchedulesForRole(String userId, String roleId) throws IOException
getUserSchedulesForRole
a - Stringa - StringIOExceptionboolean isUserScheduledForRole(String userId, String roleId, Date time) throws IOException
isUserScheduledForRole
a - Stringa - Stringa - DateIOExceptionOwnedIntervalSequence getRoleScheduleEntries(String roleid, Date start, Date end) throws IOException
getRoleScheduleEntries
a - Stringa - Datea - DateIOExceptionCopyright © 2020. All rights reserved.