public class GroupFactory extends GroupManager
GroupFactory class.
GroupManager.OnmsGroupListMapper, GroupManager.OnmsGroupMapperm_dutySchedules| Constructor and Description |
|---|
GroupFactory()
Constructor which parses the file
|
| Modifier and Type | Method and Description |
|---|---|
static GroupManager |
getInstance()
Singleton static call to get the only instance that should exist for the
GroupFactory
|
static void |
init()
init
|
void |
reload()
Parses the groups.xml
|
protected void |
saveXml(String data)
saveXml
|
static void |
setInstance(GroupManager mgr)
setInstance
|
void |
update()
update
|
deleteGroup, deleteRole, deleteUser, findGroupsForUser, getGroup, getGroupNames, getGroups, getOnmsGroup, getOnmsGroupList, getRole, getRoleNames, getRoles, getRoleScheduleEntries, getSchedulesForRoleAt, getUserSchedulesForRole, groupNextOnDuty, hasGroup, isGroupOnDuty, isUserScheduledForRole, parseXml, renameGroup, renameUser, save, saveGroup, saveGroups, saveRole, setGroups, userHasRolepublic GroupFactory()
throws FileNotFoundException,
IOException
IOException - if any.FileNotFoundException - if any.public static void init()
throws IOException,
FileNotFoundException
init
IOException - if any.FileNotFoundException - if any.public static GroupManager getInstance()
public static void setInstance(GroupManager mgr)
setInstance
mgr - a GroupManager object.public void reload()
throws IOException,
FileNotFoundException
IOException - if any.FileNotFoundException - if any.protected void saveXml(String data) throws IOException
saveXml
saveXml in class GroupManagerdata - a String object.IOException - if any.public void update()
throws IOException
update
update in class GroupManagerIOException - if any.Copyright © 2020. All rights reserved.