public class GroupFactory extends GroupManager
GroupFactory class.
GroupManager.OnmsGroupListMapper, GroupManager.OnmsGroupMapper
m_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, userHasRole
public 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 GroupManager
data
- a String
object.IOException
- if any.public void update() throws IOException
update
update
in class GroupManager
IOException
- if any.Copyright © 2021. All rights reserved.