org.opennms.netmgt.config
Class GroupFactory

java.lang.Object
  extended by org.opennms.netmgt.config.GroupManager
      extended by org.opennms.netmgt.config.GroupFactory

public class GroupFactory
extends GroupManager


Field Summary
 
Fields inherited from class org.opennms.netmgt.config.GroupManager
m_dutySchedules
 
Constructor Summary
GroupFactory()
          Constructor which parses the file
 
Method Summary
static GroupManager getInstance()
          Singleton static call to get the only instance that should exist for the GroupFactory
static void init()
           
 void reload()
          Parses the groups.xml via the Castor classes
protected  void saveXml(String data)
           
static void setInstance(GroupManager mgr)
           
protected  void update()
           
 
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
 

Constructor Detail

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
Method Detail

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.