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 via the Castor classes
|
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 org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
FileNotFoundException,
IOException
IOException - if any.FileNotFoundException - if any.org.exolab.castor.xml.ValidationException - if any.org.exolab.castor.xml.MarshalException - if any.public static void init()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
init
IOException - if any.FileNotFoundException - if any.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.public static GroupManager getInstance()
public static void setInstance(GroupManager mgr)
setInstance
mgr - a GroupManager object.public void reload()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException - if any.FileNotFoundException - if any.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - 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,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
update
update in class GroupManagerIOException - if any.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.Copyright © 2017. All rights reserved.