Package org.infoglue.cms.controllers.kernel.impl.simple

Examples of org.infoglue.cms.controllers.kernel.impl.simple.ContentTypeDefinitionController


            return assetUrl;
        }
        try
        {
            ContentDeliveryController cdc = ContentDeliveryController.getContentDeliveryController();
            ContentTypeDefinitionController ctdc = ContentTypeDefinitionController.getController();

            ContentVersionVO contentVersionVO = cdc.getContentVersionVO(getDatabase(), this.siteNodeId, contentId,this.languageId, USE_LANGUAGE_FALLBACK, this.deliveryContext, this.infoGluePrincipal );
           
            Integer contentTypeDefinitionId = cdc.getContentVO(getDatabase(), contentId, deliveryContext ).getContentTypeDefinitionId();
         
            ContentTypeDefinitionVO contentTypeDefinitionVO = ctdc.getContentTypeDefinitionVOWithId( contentTypeDefinitionId, getDatabase());
            Iterator attrIterator = ctdc.getContentTypeAttributes(contentTypeDefinitionVO, true).iterator();
           
            String aText = text.replaceAll( "[^\\w]", "" );
            aText = aText.substring( 0, ( aText.length() < 8 ? aText.length() : 8 ) ).toLowerCase();
            StringBuffer uniqueId = new StringBuffer( aText );
            uniqueId.append( "_" + contentVersionVO.getId() );
View Full Code Here


    final Map values = new HashMap();
    if(getContentVO() != null && getContentVersionVO() != null)
    {
      try
      {
        final ContentTypeDefinitionController ctdController = ContentTypeDefinitionController.getController();
        final ContentTypeDefinition ctd = ctdController.getContentTypeDefinitionWithId(getContentVO().getContentTypeDefinitionId(), getDatabase());
        final Collection contentTypeAttributes = ctdController.getContentTypeAttributes(ctd.getValueObject(), true);
        for(final Iterator i=contentTypeAttributes.iterator(); i.hasNext(); )
        {
          final ContentTypeAttribute attribute = (ContentTypeAttribute) i.next();
          values.put(attribute.getName(), ContentVersionController.getContentVersionController().getAttributeValue(getContentVersionVO(), attribute.getName(), false));
        }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.controllers.kernel.impl.simple.ContentTypeDefinitionController

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.