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()
int
hashCode()
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, setId
-
Constructor Details
-
Resource
public Resource()Constructs a new instance. -
Resource
-
Resource
-
Resource
-
Resource
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PerunBean>
- Overrides:
compareTo
in classPerunBean
-
equals
-
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) -
getName
Gets the name for this instance.- Returns:
- The name.
-
setName
Sets the name for this instance.- Parameters:
name
- The name.
-
getUuid
Description copied from interface:HasUuid
Get UUID. -
setUuid
-
getVoId
public int getVoId() -
setVoId
public void setVoId(int voId) -
hashCode
public int hashCode() -
serializeToString
- Overrides:
serializeToString
in classAuditable
-
toString
-