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 SummaryConstructorsConstructorDescriptionResource()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 SummaryModifier and TypeMethodDescriptionintbooleanGets the description for this instance.intgetName()Gets the name for this instance.getUuid()Get UUID.intgetVoId()inthashCode()voidsetDescription(String description) Sets the description for this instance.voidsetFacilityId(int facilityId) voidSets the name for this instance.voidvoidsetVoId(int voId) toString()Methods inherited from class cz.metacentrum.perun.core.api.AuditablegetCreatedAt, getCreatedBy, getCreatedByUid, getModifiedAt, getModifiedBy, getModifiedByUid, setCreatedAt, setCreatedBy, setCreatedByUid, setModifiedAt, setModifiedBy, setModifiedByUidMethods inherited from class cz.metacentrum.perun.core.api.PerunBeangetBeanName, getId, setId
- 
Constructor Details- 
Resourcepublic Resource()Constructs a new instance.
- 
Resource
- 
Resource
- 
Resource
- 
Resource
 
- 
- 
Method Details- 
compareTo- Specified by:
- compareToin interface- Comparable<PerunBean>
- Overrides:
- compareToin class- PerunBean
 
- 
equals
- 
getDescriptionGets the description for this instance.- Returns:
- The description.
 
- 
setDescriptionSets the description for this instance.- Parameters:
- description- The description.
 
- 
getFacilityIdpublic int getFacilityId()
- 
setFacilityIdpublic void setFacilityId(int facilityId) 
- 
getNameGets the name for this instance.- Returns:
- The name.
 
- 
setNameSets the name for this instance.- Parameters:
- name- The name.
 
- 
getUuidDescription copied from interface:HasUuidGet UUID.
- 
setUuid
- 
getVoIdpublic int getVoId()
- 
setVoIdpublic void setVoId(int voId) 
- 
hashCodepublic int hashCode()
- 
serializeToString- Overrides:
- serializeToStringin class- Auditable
 
- 
toString
 
-