Class BusinessObjectUtil


  • public class BusinessObjectUtil
    extends Object
    Set of methods commonly used by the business objects in views.
    Author:
    Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
    • Constructor Detail

      • BusinessObjectUtil

        public BusinessObjectUtil()
    • Method Detail

      • getBusinessObjectColor

        public static String getBusinessObjectColor​(BusinessObjectLight objectLight,
                                                    ApplicationEntityManager aem,
                                                    BusinessEntityManager bem,
                                                    MetadataEntityManager mem)
                                             throws InventoryException
        Gets the object color. The object color can be:
         The value of the attribute value of type String of the list type item ColorType as the color attribute of the object.
         The value of the attribute color of type String of the object.
         The class color.
         
        Parameters:
        objectLight - The object to get the color.
        aem - The Application Entity Manager.
        bem - The Business Entity Manager.
        mem - The Metadata Entity Manager.
        Returns:
        The object color.
        Throws:
        InventoryException