Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.ContentTypeDefinitionVO


   * is handling.
   */

  public BaseEntityVO getNewVO()
  {
    return new ContentTypeDefinitionVO();
  }
View Full Code Here


    }
  }

  public String getContentTypeDefinitionAttributeDisplayName(Integer contentTypeDefinitionId, String fieldName, String languageCode, Database db) throws SystemException, Bug
  {
    ContentTypeDefinitionVO contentTypeDefinitionVO = getContentTypeDefinitionVOWithId(contentTypeDefinitionId, db);
    List<ContentTypeAttribute> attributes = getContentTypeAttributes(contentTypeDefinitionVO, true, languageCode);
    for (ContentTypeAttribute attribute : attributes)
    {
      if (attribute.getName().equals(fieldName))
      {
View Full Code Here

   * is handling.
   */

  public BaseEntityVO getNewVO()
  {
    return new ContentTypeDefinitionVO();
  }
View Full Code Here

     
        ContentVersionVO newContentVersion = (ContentVersionVO)createContentWizardInfoBean.getContentVersions().get(languageId);
        this.contentVersionId = newContentVersion.getId();
      }
     
      ContentTypeDefinitionVO contentTypeDefinitionVO = ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithId(createContentWizardInfoBean.getContentTypeDefinitionId());
      List assetKeys = ContentTypeDefinitionController.getController().getDefinedAssetKeys(contentTypeDefinitionVO, true);
     
      Iterator assetKeysIterator = assetKeys.iterator();
      while(assetKeysIterator.hasNext())
      {
View Full Code Here

   * is handling.
   */

  public BaseEntityVO getNewVO()
  {
    return new ContentTypeDefinitionVO();
  }
View Full Code Here

      Iterator<HashMap<String, Object>> i = arguments.iterator();
      while(i.hasNext())
      {
        HashMap<String, Object> argument = i.next();
        String contentTypeDefinitionName = (String)argument.get("contentTypeDefinitionName");
        ContentTypeDefinitionVO ctdVO = ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithName(contentTypeDefinitionName, db);

        OQLQuery oql = db.getOQLQuery("SELECT c FROM org.infoglue.cms.entities.content.impl.simple.MediumContentImpl c WHERE c.contentTypeDefinitionId = $1 AND c.isDeleted = $2 ORDER BY c.contentId");
        oql.bind(ctdVO.getId());
        oql.bind(0);

        QueryResults results = oql.execute(Database.READONLY);
        while(results.hasMore())
        {
View Full Code Here

        HashMap argument = (HashMap)i.next();
        String contentTypeDefinitionName = (String)argument.get("contentTypeDefinitionName");
        Integer ctdId = -1;
        if(contentTypeDefinitionName != null && !contentTypeDefinitionName.equals(""))
        {
          ContentTypeDefinitionVO ctdVO = ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithName(contentTypeDefinitionName, db);
          if(ctdVO != null)
            ctdId = ctdVO.getId();
          else
          {
            logger.error("No content type called: " + contentTypeDefinitionName);
            continue;
          }
View Full Code Here

  public ContentTypeDefinitionVO getContentTypeDefinition(Integer contentId) throws ConstraintException, SystemException
    {
        Database db = CastorDatabaseService.getDatabase();
        ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();
       
        ContentTypeDefinitionVO contentTypeDefinitionVO = null;
       
        beginTransaction(db);

        try
        {
View Full Code Here

        ContentVO contentVO = getContentVOWithId(contentVersion.getValueObject().getContentId(), db);
        boolean isValid = true;
        for(int i=0; i<excludedContentTypes.length; i++)
        {
          String contentTypeDefinitionNameToExclude = excludedContentTypes[i];
          ContentTypeDefinitionVO ctdVO = ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithName(contentTypeDefinitionNameToExclude, db);
          if(contentVO.getContentTypeDefinitionId().equals(ctdVO.getId()))
          {
            isValid = false;
            break;
          }
        }
View Full Code Here

         
        boolean isValid = true;
        for(int i=0; i<excludedContentTypes.length; i++)
        {
          String contentTypeDefinitionNameToExclude = excludedContentTypes[i];
          ContentTypeDefinitionVO ctdVO = ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithName(contentTypeDefinitionNameToExclude, db);
          if(content.getContentTypeDefinitionId().equals(ctdVO.getId()))
          {
            isValid = false;
            break;
          }
        }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.ContentTypeDefinitionVO

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.