Examples of save()


Examples of org.apache.lenya.cms.metadata.LenyaMetaData.save()

        String string = number + " " + encodeVersion(workflow, version, (LenyaSituation) situation);
        try {
            LenyaMetaData meta = this.document.getMetaDataManager().getLenyaMetaData();
            meta.addValue(LenyaMetaData.ELEMENT_WORKFLOW_VERSION, string);
            meta.save();
        } catch (DocumentException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.apache.lenya.cms.metadata.MetaData.save()

        String subject = dcCore.getFirstValue(DublinCore.ELEMENT_SUBJECT);
        String creator = dcCore.getFirstValue(DublinCore.ELEMENT_CREATOR);
        String dateIssued = dcCore.getFirstValue(DublinCore.TERM_ISSUED);

        dcCore.setValue(DublinCore.ELEMENT_CREATOR, CREATOR);
        dcCore.save();

        Document doc2 = map.get(publication, AREA, DOCUMENT_ID, LANGUAGE);

        MetaData dcCore2 = doc2.getMetaDataManager().getDublinCoreMetaData();
        assertEquals(title, dcCore2.getFirstValue(DublinCore.ELEMENT_TITLE));
View Full Code Here

Examples of org.apache.lenya.cms.publication.DefaultSiteTree.save()

            throw new CreatorException(e);
        }

        // commit (sort of)
        try {
            siteTree.save();
        } catch (Exception e) {
            throw new CreatorException(e);
        }
    }
View Full Code Here

Examples of org.apache.lenya.cms.publication.DublinCore.save()

        dc.setValue(DublinCore.ELEMENT_TITLE, title);
        dc.setValue(DublinCore.ELEMENT_DESCRIPTION, description);
        dc.setValue(DublinCore.ELEMENT_SUBJECT, subject);
        dc.setValue(DublinCore.ELEMENT_PUBLISHER, publisher);
        dc.setValue(DublinCore.ELEMENT_RIGHTS, rights);
        dc.save();
    }

    /** (non-Javadoc)
     * @see org.apache.tools.ant.Task#execute()
     */
 
View Full Code Here

Examples of org.apache.lenya.cms.publication.SiteTree.save()

        //if node is visible change to fale and vice versa
        String visibility = "false";
        if (!node.visibleInNav()) visibility = "true";
        node.setNodeAttribute(SiteTreeNodeImpl.VISIBLEINNAV_ATTRIBUTE_NAME, visibility);       

        tree.save();
    }

    /** (non-Javadoc)
     * @see org.apache.tools.ant.Task#execute()
     */
 
View Full Code Here

Examples of org.apache.lenya.cms.task.DefaultTaskWrapper.save()

     */
    public Element save(NamespaceHelper helper, JobDetail jobDetail) throws SchedulerException {
       
        Element jobElement = super.save(helper, jobDetail);
        TaskWrapper wrapper = new DefaultTaskWrapper(jobDetail.getJobDataMap());
        jobElement.appendChild(wrapper.save(helper));
       
        return jobElement;
    }
}
View Full Code Here

Examples of org.apache.lenya.cms.task.TaskWrapper.save()

     */
    public Element save(NamespaceHelper helper, JobDetail jobDetail) throws SchedulerException {
       
        Element jobElement = super.save(helper, jobDetail);
        TaskWrapper wrapper = new DefaultTaskWrapper(jobDetail.getJobDataMap());
        jobElement.appendChild(wrapper.save(helper));
       
        return jobElement;
    }
}
View Full Code Here

Examples of org.apache.lenya.modules.news.NewsWrapper.save()

        String type = getParameterAsString(TYPE);
        news.setType(type);
        if (type.equals(CollectionWrapper.TYPE_LINK)) {
            news.setHref(getParameterAsString(HREF));
        }
        news.save();
    }

}
View Full Code Here

Examples of org.apache.lenya.xml.NamespaceHelper.save()

            int revision = getRevision(repoNode) + 1;
            helper.getDocument().getDocumentElement().setAttribute("revision",
                    Integer.toString(revision));

            saveNodes(getRoot(), helper, helper.getDocument().getDocumentElement());
            helper.save(repoNode.getOutputStream());
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new RepositoryException(e);
        }
View Full Code Here

Examples of org.apache.maven.archiva.discoverer.DiscovererStatistics.save()

                DiscovererStatistics stats = discoverer
                    .walkRepository( repository, filteredConsumers, repositoryConfiguration.isIncludeSnapshots(),
                                     lastRunStats.getTimestampFinished(), null, null );

                stats.dump( getLogger() );
                stats.save( DATAREFRESH_FILE );
            }
            catch ( DiscovererException e )
            {
                getLogger().error(
                                   "Unable to run data refresh against repository [" + repository.getId() + "]: "
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.