Package cz.metacentrum.perun.core.api
Class Resource
java.lang.Object
cz.metacentrum.perun.core.api.PerunBean
cz.metacentrum.perun.core.api.Auditable
cz.metacentrum.perun.core.api.Resource
- All Implemented Interfaces:
HasUUID
,Serializable
,Comparable<PerunBean>
- Direct Known Subclasses:
RichResource
Represents resource.
- Author:
- Slavek Licehammer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResource()
Constructs a new instance.Resource
(int id, String name, String description, int facilityId, int voId, String createdAt, String createdBy, String modifiedAt, String modifiedBy, Integer createdByUid, Integer modifiedByUid) Resource
(int id, String name, String description, int facilityId, String createdAt, String createdBy, String modifiedAt, String modifiedBy, Integer createdByUid, Integer modifiedByUid) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Gets the description for this instance.int
getName()
Gets the name for this instance.getUuid()
Get UUID.int
getVoId()
void
setDescription
(String description) Sets the description for this instance.void
setFacilityId
(int facilityId) void
Sets the name for this instance.void
void
setVoId
(int voId) toString()
Methods inherited from class cz.metacentrum.perun.core.api.Auditable
getCreatedAt, getCreatedBy, getCreatedByUid, getModifiedAt, getModifiedBy, getModifiedByUid, setCreatedAt, setCreatedBy, setCreatedByUid, setModifiedAt, setModifiedBy, setModifiedByUid
Methods inherited from class cz.metacentrum.perun.core.api.PerunBean
getBeanName, getId, hashCode, setId
-
Constructor Details
-
Resource
public Resource()Constructs a new instance. -
Resource
-
Resource
-
Resource
-
Resource
-
-
Method Details
-
getUuid
Description copied from interface:HasUUID
Get UUID. -
setUuid
-
getName
Gets the name for this instance.- Returns:
- The name.
-
setName
Sets the name for this instance.- Parameters:
name
- The name.
-
getDescription
Gets the description for this instance.- Returns:
- The description.
-
setDescription
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
- Overrides:
serializeToString
in classAuditable
-
toString
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PerunBean>
- Overrides:
compareTo
in classPerunBean
-