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
IOException
OnmsGroupList getOnmsGroupList() throws IOException
getOnmsGroupList
IOException
OnmsGroup getOnmsGroup(String groupName) throws IOException
getOnmsGroup
a
- StringIOException
boolean hasGroup(String groupName) throws IOException
hasGroup
a
- StringIOException
List<String> getGroupNames() throws IOException
getGroupNames
IOException
Group getGroup(String name) throws IOException
getGroup
a
- StringIOException
boolean isGroupOnDuty(String group, Calendar time) throws IOException
isGroupOnDuty
a
- Stringa
- CalendarIOException
long groupNextOnDuty(String group, Calendar time) throws IOException
groupNextOnDuty
a
- Stringa
- CalendarIOException
void saveGroup(String name, Group details) throws Exception
saveGroup
a
- Stringa
- GroupException
void deleteUser(String name) throws Exception
deleteUser
a
- StringException
void deleteGroup(String name) throws Exception
deleteGroup
a
- StringException
void deleteRole(String name) throws Exception
deleteRole
a
- StringException
void renameGroup(String oldName, String newName) throws Exception
renameGroup
a
- Stringa
- StringException
void renameUser(String oldName, String newName) throws Exception
renameUser
a
- Stringa
- StringException
String[] getRoleNames()
getRoleNames
Collection<Role> getRoles()
getRoles
boolean userHasRole(String userId, String roleid) throws IOException
userHasRole
a
- Stringa
- StringIOException
List<Schedule> getSchedulesForRoleAt(String roleId, Date time) throws IOException
getSchedulesForRoleAt
a
- Stringa
- StringIOException
List<Schedule> getUserSchedulesForRole(String userId, String roleId) throws IOException
getUserSchedulesForRole
a
- Stringa
- StringIOException
boolean isUserScheduledForRole(String userId, String roleId, Date time) throws IOException
isUserScheduledForRole
a
- Stringa
- Stringa
- DateIOException
OwnedIntervalSequence getRoleScheduleEntries(String roleid, Date start, Date end) throws IOException
getRoleScheduleEntries
a
- Stringa
- Datea
- DateIOException
Copyright © 2021. All rights reserved.