Search in sources :

Example 6 with MdAttribute

use of com.runwaysdk.system.metadata.MdAttribute in project geoprism-registry by terraframe.

the class MasterListVersion method createMdAttributeFromAttributeType.

public static TableMetadata createMdAttributeFromAttributeType(MasterListVersion version, ServerGeoObjectType type, AttributeType attributeType, Collection<Locale> locales) {
    TableMetadata metadata = new TableMetadata();
    metadata.setMdBusiness(version.getMdBusiness());
    createMdAttributeFromAttributeType(metadata, attributeType, type, locales);
    Map<MdAttribute, MdAttribute> pairs = metadata.getPairs();
    Set<Entry<MdAttribute, MdAttribute>> entries = pairs.entrySet();
    for (Entry<MdAttribute, MdAttribute> entry : entries) {
        MasterListAttributeGroup.create(version, entry.getValue(), entry.getKey());
    }
    return metadata;
}
Also used : TableMetadata(net.geoprism.registry.masterlist.TableMetadata) Entry(java.util.Map.Entry) MdAttribute(com.runwaysdk.system.metadata.MdAttribute)

Aggregations

MdAttribute (com.runwaysdk.system.metadata.MdAttribute)6 Entry (java.util.Map.Entry)6 TableMetadata (net.geoprism.registry.masterlist.TableMetadata)6 Transaction (com.runwaysdk.dataaccess.transaction.Transaction)4 JsonArray (com.google.gson.JsonArray)2 JsonObject (com.google.gson.JsonObject)2 JsonParser (com.google.gson.JsonParser)2 ComponentIF (com.runwaysdk.ComponentIF)2 Business (com.runwaysdk.business.Business)2 BusinessFacade (com.runwaysdk.business.BusinessFacade)2 BusinessQuery (com.runwaysdk.business.BusinessQuery)2 Authenticate (com.runwaysdk.business.rbac.Authenticate)2 Operation (com.runwaysdk.business.rbac.Operation)2 RoleDAO (com.runwaysdk.business.rbac.RoleDAO)2 BusinessInfo (com.runwaysdk.constants.BusinessInfo)2 IndexTypes (com.runwaysdk.constants.IndexTypes)2 MdAttributeBooleanInfo (com.runwaysdk.constants.MdAttributeBooleanInfo)2 MdAttributeCharacterInfo (com.runwaysdk.constants.MdAttributeCharacterInfo)2 MdAttributeConcreteInfo (com.runwaysdk.constants.MdAttributeConcreteInfo)2 MdAttributeDoubleInfo (com.runwaysdk.constants.MdAttributeDoubleInfo)2