org.opennms.netmgt.config
Class GroupFactory
java.lang.Object
org.opennms.netmgt.config.GroupManager
org.opennms.netmgt.config.GroupFactory
public class GroupFactory
- extends GroupManager
|
Constructor Summary |
GroupFactory()
Constructor which parses the file |
| Methods inherited from class org.opennms.netmgt.config.GroupManager |
deleteGroup, deleteRole, deleteUser, findGroupsForUser, getGroup, getGroupNames, getGroups, getRole, getRoleNames, getRoles, getRoleScheduleEntries, getSchedulesForRoleAt, getUserSchedulesForRole, groupNextOnDuty, hasGroup, isGroupOnDuty, isUserScheduledForRole, parseXml, renameGroup, renameUser, saveGroup, saveGroups, saveRole, setGroups, userHasRole |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupFactory
public GroupFactory()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
FileNotFoundException,
IOException
- Constructor which parses the file
- Throws:
IOException
FileNotFoundException
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
init
public static void init()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Throws:
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
getInstance
public static GroupManager getInstance()
- Singleton static call to get the only instance that should exist for the
GroupFactory
- Returns:
- the single group factory instance
setInstance
public static void setInstance(GroupManager mgr)
reload
public void reload()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Parses the groups.xml via the Castor classes
- Throws:
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
saveXml
protected void saveXml(String data)
throws IOException
- Specified by:
saveXml in class GroupManager
- Parameters:
data -
- Throws:
IOException
update
protected void update()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Specified by:
update in class GroupManager
- Throws:
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
Copyright © 2009. All Rights Reserved.