Class Resource

All Implemented Interfaces:
HasUUID, Serializable, Comparable<PerunBean>
Direct Known Subclasses:
RichResource

public class Resource extends Auditable implements Comparable<PerunBean>, HasUUID
Represents resource.
Author:
Slavek Licehammer
See Also:
Serialized Form
  • Constructor Details

    • Resource

      public Resource()
      Constructs a new instance.
    • Resource

      public Resource(int id, String name, String description, int facilityId)
    • Resource

      public Resource(int id, String name, String description, int facilityId, int voId)
    • Resource

      public Resource(int id, String name, String description, int facilityId, String createdAt, String createdBy, String modifiedAt, String modifiedBy, Integer createdByUid, Integer modifiedByUid)
    • Resource

      public Resource(int id, String name, String description, int facilityId, int voId, String createdAt, String createdBy, String modifiedAt, String modifiedBy, Integer createdByUid, Integer modifiedByUid)
  • Method Details

    • getUuid

      public UUID getUuid()
      Description copied from interface: HasUUID
      Get UUID.
      Specified by:
      getUuid in interface HasUUID
      Returns:
      UUID of the object
    • setUuid

      public void setUuid(UUID uuid)
    • getName

      public String getName()
      Gets the name for this instance.
      Returns:
      The name.
    • setName

      public void setName(String name)
      Sets the name for this instance.
      Parameters:
      name - The name.
    • getDescription

      public String getDescription()
      Gets the description for this instance.
      Returns:
      The description.
    • setDescription

      public void setDescription(String description)
      Sets the description for this instance.
      Parameters:
      description - The description.
    • getFacilityId

      public int getFacilityId()
    • setFacilityId

      public void setFacilityId(int facilityId)
    • getVoId

      public int getVoId()
    • setVoId

      public void setVoId(int voId)
    • serializeToString

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

      public String toString()
      Overrides:
      toString in class Auditable
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Auditable
    • compareTo

      public int compareTo(PerunBean perunBean)
      Specified by:
      compareTo in interface Comparable<PerunBean>
      Overrides:
      compareTo in class PerunBean