Package org.apache.fulcrum.intake.xmlmodel

Examples of org.apache.fulcrum.intake.xmlmodel.AppData


     */
    public Group getGroup(String groupName) throws IntakeException
    {
        Group group = null;

        AppData appData = (AppData) groupNames.get(groupName);

        if (groupName == null)
        {
            throw new IntakeException(
                    "Intake IntakeServiceImpl.getGroup(groupName) is null");
View Full Code Here


    public void releaseGroup(Group instance) throws IntakeException
    {
        if (instance != null)
        {
            String groupName = instance.getIntakeGroupName();
            AppData appData = (AppData) groupNames.get(groupName);

            if (appData == null)
            {
                throw new IntakeException(
                        "Intake IntakeServiceImpl.releaseGroup(groupName): "
View Full Code Here

     * @throws IntakeException
     *             The passed group name does not exist.
     */
    public int getSize(String groupName) throws IntakeException
    {
        AppData appData = (AppData) groupNames.get(groupName);
        if (appData == null)
        {
            throw new IntakeException(
                    "Intake IntakeServiceImpl.Size(groupName): No XML definition for Group "
                            + groupName + " found");
View Full Code Here

            appDataElements = new HashMap();

            for (Iterator it = xmlFiles.iterator(); it.hasNext();)
            {
                String xmlPath = (String) it.next();
                AppData appData = null;

                getLogger().debug("Now parsing: " + xmlPath);

                XmlToAppData xmlApp = new XmlToAppData();
                xmlApp.enableLogging(getLogger());
                appData = xmlApp.parseFile(xmlPath);

                appDataElements.put(appData, xmlPath);
                getLogger().debug("Saving appData for " + xmlPath);
            }

            saveSerialized(serialDataPath, appDataElements);
        }

        for (Iterator it = appDataElements.keySet().iterator(); it.hasNext();)
        {
            AppData appData = (AppData) it.next();

            int maxPooledGroups = 0;
            List glist = appData.getGroups();

            String groupPrefix = appData.getGroupPrefix();

            for (int i = glist.size() - 1; i >= 0; i--)
            {
                XmlGroup g = (XmlGroup) glist.get(i);
                String groupName = g.getName();
View Full Code Here

    /**
     * Creates a new instance of the Intake XML Parser
     */
    public XmlToAppData()
    {
        app = new AppData();
    }
View Full Code Here

TOP

Related Classes of org.apache.fulcrum.intake.xmlmodel.AppData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.