Package org.infoglue.cms.applications.workflowtool.util

Examples of org.infoglue.cms.applications.workflowtool.util.ContentFactory


  protected void execute() throws WorkflowException
  {
    setFunctionStatus(STATUS_NOK);
    try
    {
      final ContentFactory factory = new ContentFactory(contentTypeDefinitionVO, contentValues, contentVersionValues, getPrincipal(), languageVO);
      ContentVO newContentVO = null;
      if(getContentVO() == null)
      {
        parentContentVO = (ContentVO) getParameter(FOLDER_PARAMETER);
        newContentVO = factory.create(parentContentVO, categories, getDatabase());
      }
      else
      {
        newContentVO = factory.update(getContentVO(), categories, getDatabase());
      }
      if(newContentVO != null)
      {
        setPropertySetString(ContentProvider.CONTENT_ID_PROPERTYSET_KEY, newContentVO.getContentId().toString());
      }
View Full Code Here


  /**
   *
   */
  protected void populate() throws WorkflowException
  {
    populate(new ContentFactory(contentTypeDefinitionVO, contentValues, contentVersionValues, getPrincipal(), language).validate(), language.getLanguageCode());
  }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.applications.workflowtool.util.ContentFactory

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.