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, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getGroups
IOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionOnmsGroupList getOnmsGroupList() throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getOnmsGroupList
org.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionOnmsGroup getOnmsGroup(String groupName) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getOnmsGroup
a - Stringorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionboolean hasGroup(String groupName) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
hasGroup
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionList<String> getGroupNames() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getGroupNames
IOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionGroup getGroup(String name) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getGroup
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionboolean isGroupOnDuty(String group, Calendar time) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
isGroupOnDuty
a - Stringa - CalendarIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionlong groupNextOnDuty(String group, Calendar time) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
groupNextOnDuty
a - Stringa - CalendarIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionvoid 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 org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
userHasRole
a - Stringa - Stringorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionList<Schedule> getSchedulesForRoleAt(String roleId, Date time) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getSchedulesForRoleAt
a - Stringa - Stringorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionList<Schedule> getUserSchedulesForRole(String userId, String roleId) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getUserSchedulesForRole
a - Stringa - Stringorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionboolean isUserScheduledForRole(String userId, String roleId, Date time) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
isUserScheduledForRole
a - Stringa - Stringa - Dateorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionOwnedIntervalSequence getRoleScheduleEntries(String roleid, Date start, Date end) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getRoleScheduleEntries
a - Stringa - Datea - Dateorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionCopyright © 2017. All rights reserved.