Package org.infoglue.deliver.applications.databeans

Examples of org.infoglue.deliver.applications.databeans.ComponentRestriction


   
    boolean restrictAll = false;
    Iterator restrictionsIterator = component.getRestrictions().iterator();
    while(restrictionsIterator.hasNext())
    {
        ComponentRestriction restriction = (ComponentRestriction)restrictionsIterator.next();
        if(restriction.getType().equalsIgnoreCase("blockComponents"))
        {
            if(restriction.getSlotId().equalsIgnoreCase(id) && restriction.getArguments().equalsIgnoreCase("*"))
            {
                restrictAll = true;
            }
        }
    }
View Full Code Here


      Iterator restrictionNodeListIterator = restrictionNodeList.iterator();
      while(restrictionNodeListIterator.hasNext())
      {
        XmlElement restrictionElement = (XmlElement)restrictionNodeListIterator.next();
       
        ComponentRestriction restriction = new ComponentRestriction();
         
        String type = restrictionElement.getAttributeValue(restrictionElement.getNamespaceName(), "type");
        if(type.equals("blockComponents"))
        {
            String slotId = restrictionElement.getAttributeValue(restrictionElement.getNamespaceName(), "slotId");
            String arguments = restrictionElement.getAttributeValue(restrictionElement.getNamespaceName(), "arguments");

            restriction.setType(type);
          restriction.setSlotId(slotId);
          restriction.setArguments(arguments);
        }
       
        component.getRestrictions().add(restriction);
      }
    }
View Full Code Here

      Iterator restrictionNodeListIterator = restrictionNodeList.iterator();
      while(restrictionNodeListIterator.hasNext())
      {
        Element restrictionElement = (Element)restrictionNodeListIterator.next();
       
        ComponentRestriction restriction = new ComponentRestriction();
         
        String type = restrictionElement.attributeValue("type");
        if(type.equals("blockComponents"))
        {
            String slotId = restrictionElement.attributeValue("slotId");
            String arguments = restrictionElement.attributeValue("arguments");

            restriction.setType(type);
          restriction.setSlotId(slotId);
          restriction.setArguments(arguments);
        }
       
        component.getRestrictions().add(restriction);
      }
    }
View Full Code Here

TOP

Related Classes of org.infoglue.deliver.applications.databeans.ComponentRestriction

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.