Class RichResource

All Implemented Interfaces:
HasUuid, Serializable, Comparable<PerunBean>

public class RichResource extends Resource
Object which represents RichResource
Author:
Pavel Zlamal <256627@mail.muni.cz>
See Also:
  • Constructor Details

    • RichResource

      public RichResource()
      Constructs a new instance.
    • RichResource

      public RichResource(Resource resource)
      Constructs a new instance.
  • Method Details

    • addResourceTag

      public void addResourceTag(ResourceTag tag)
      Add ResourceTag to Resource (used to fill in from SQL)
      Parameters:
      tag - ResourceTag to add
    • getFacility

      public Facility getFacility()
      Returns Facility associated with this resource
      Returns:
      Facility associated with resource
    • setFacility

      public void setFacility(Facility facility)
      Sets Facility associated with this resource
      Parameters:
      facility - Facility associated with resource
    • getResourceTags

      public List<ResourceTag> getResourceTags()
      Returns list of associated ResourceTags with this resource
      Returns:
      List associated with resource
    • setResourceTags

      public void setResourceTags(List<ResourceTag> resourceTags)
      Set list of associated ResourceTags with this resource
      Parameters:
      resourceTags - ResourceTags associated with resource
    • getVo

      public Vo getVo()
      Returns VO associated with this resource
      Returns:
      VO associated with resource
    • setVo

      public void setVo(Vo vo)
      Sets VO associated with this resource
      Parameters:
      vo - VO associated with resource
    • serializeToString

      public String serializeToString()
      Overrides:
      serializeToString in class Resource
    • toString

      public String toString()
      Overrides:
      toString in class Resource