Package com.adito.properties.attributes

Examples of com.adito.properties.attributes.DefaultAttributeDefinition


      String typeMeta, int category, String categoryLabel,
      String defaultValue, int visibility, int sortOrder,
      String messageResourcesKey, boolean hidden, String label,
      String description, boolean system, boolean replaceable,
      String validationString) {
    AttributeDefinition def = new DefaultAttributeDefinition(type, name, typeMeta, category,
        categoryLabel, defaultValue, visibility, sortOrder,
        messageResourcesKey, hidden, label, description, system,
        replaceable, validationString);
    def.init(this);
    return def;
  }
View Full Code Here


        this.owner = owner;
        this.user = LogonControllerFactory.getInstance().getUser(request);
        this.assignOnly = assignOnly;
        userAttributeValueItems = new ArrayList<AttributeValueItem>();
        for (PropertyDefinition d : propertyClass.getDefinitions()) {
            AttributeDefinition def = new DefaultAttributeDefinition(d.getType(), d.getName(), d.getTypeMeta(), d.getCategory(), "", d
                            .getDefaultValue(), AttributeDefinition.UNKNOWN, 10, d.getMessageResourcesKey(), false, d.getLabel(), d.getDescription(), false, false, "");
            def.init(propertyClass);
           if (!def.isHidden() && isResourcePropertyDefinition(resource, d)) {
                    String value = def.getDefaultValue();
                    if (resource != null) {
                        value = Property.getProperty(new ResourceKey(def.getName(), resource.getResourceType(), resource.getResourceId()));
                    }
                    AttributeValueItem item = new AttributeValueItem(def, request, value, getSubCategoryString(resource));
                    userAttributeValueItems.add(item);
            }
        }
View Full Code Here

                    log.warn("Found user attribute '" + rs.getString("name")
                        + "' with a property class of '"
                        + propertyClassName
                        + "'. This property class does not exist. Perhaps a plugin has been uninstalled?");
                } else {
                    ua.registerPropertyDefinition(new DefaultAttributeDefinition(rs.getInt("type"),
                                    rs.getString("name"),
                                    rs.getString("type_meta"),
                                    rs.getInt("category"),
                                    rs.getString("category_label"),
                                    rs.getString("default_value"),
View Full Code Here

        if (attributesPropertyClass == null) {
            throw new Exception("Invalid property class.");
        }

        // Create the definition to edit
        DefaultAttributeDefinition def = new DefaultAttributeDefinition(AttributeDefinition.TYPE_UNDEFINED,
                        null,
                        "",
                        0,
                        "",
                        "",
                        AttributeDefinition.USER_OVERRIDABLE_ATTRIBUTE,
                        0,
                        null,
                        false,
                        "",
                        "",
                        false,
                        true,
                        null);
        def.init(attributesPropertyClass);
        request.getSession().setAttribute(Constants.EDITING_ITEM, def);

        // Create
        return mapping.findForward("create");
    }
View Full Code Here

    public AttributeDefinition createAttributeDefinition(int type, String name, String typeMeta, int category,
                                                         String categoryLabel, String defaultValue, int visibility, int sortOrder,
                                                         String messageResourcesKey, boolean hidden, String label,
                                                         String description, boolean system, boolean replaceable,
                                                         String validationString) {
        AttributeDefinition def = new DefaultAttributeDefinition(type, name, typeMeta, category, categoryLabel, defaultValue,
                        visibility, sortOrder, messageResourcesKey, hidden, label, description, system, replaceable,
                        validationString);
        def.init(this);
        return def;
    }
View Full Code Here

      String typeMeta, int category, String categoryLabel,
      String defaultValue, int visibility, int sortOrder,
      String messageResourcesKey, boolean hidden, String label,
      String description, boolean system, boolean replaceable,
      String validationString) {
    AttributeDefinition def = new DefaultAttributeDefinition(type, name, typeMeta, category,
        categoryLabel, defaultValue, visibility, sortOrder,
        messageResourcesKey, hidden, label, description, system,
        replaceable, validationString);
    def.init(this);
    return def;
  }
View Full Code Here

   
  }
  private static void checkDefinition(UserAttributeKey attr, int type, String defaultValue) {
    if(Property.getDefinition(attr)==null) {
     
      DefaultAttributeDefinition def = new DefaultAttributeDefinition(type,
          attr.getName(),
          "",
          90000,
          "",
          String.valueOf(defaultValue),
View Full Code Here

TOP

Related Classes of com.adito.properties.attributes.DefaultAttributeDefinition

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.