Class PropertyFactory
- java.lang.Object
-
- org.neotropic.kuwaiba.visualization.api.properties.PropertyFactory
-
public class PropertyFactory extends Object
A factory class that builds property sets given business objects.- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description PropertyFactory()
-
Method Summary
-
-
-
Method Detail
-
propertiesFromBusinessObject
public static List<AbstractProperty> propertiesFromBusinessObject(BusinessObject businessObject, TranslationService ts, ApplicationEntityManager aem, MetadataEntityManager mem) throws InventoryException
Builds a property set from a given inventory object- Parameters:
businessObject
- The business objectts
- Reference to the translation service.aem
- ApplicationEntityManager service.mem
- MetadataEntityManager service.- Returns:
- The set of properties ready to used in a property sheet component
- Throws:
InventoryException
-
propertiesFromTemplateObject
public static List<AbstractProperty> propertiesFromTemplateObject(TemplateObject templateObject, TranslationService ts, ApplicationEntityManager aem, MetadataEntityManager mem) throws InventoryException
Builds a property set from a given template object- Parameters:
templateObject
- The business objectts
- Reference to the translation service.aem
- ApplicationEntityManager service.mem
- MetadataEntityManager service.- Returns:
- The set of properties ready to used in a property sheet component
- Throws:
InventoryException
-
generalPropertiesFromClass
public static List<AbstractProperty> generalPropertiesFromClass(ClassMetadata classMetadata, TranslationService ts)
-
generalPropertiesFromAttribute
public static List<AbstractProperty> generalPropertiesFromAttribute(AttributeMetadata attributeMetadata, MetadataEntityManager mem, TranslationService ts)
-
propertiesFromConfigurationVariable
public static List<AbstractProperty> propertiesFromConfigurationVariable(ConfigurationVariable configurationVariable, TranslationService ts)
-
propertiesFromPool
public static List<AbstractProperty> propertiesFromPool(InventoryObjectPool pool, TranslationService ts)
-
propertiesFromPoolWithoutClassName
public static List<AbstractProperty> propertiesFromPoolWithoutClassName(InventoryObjectPool pool, TranslationService ts)
Display pool elements without class name; used in pool manager- Parameters:
pool
- ;InventoryObjectPool; poolts
- ;InventoryObjectPool; translation service- Returns:
- items;List
; pool items
-
-