Package cz.metacentrum.perun.core.api
Class RichResource
java.lang.Object
cz.metacentrum.perun.core.api.PerunBean
cz.metacentrum.perun.core.api.Auditable
cz.metacentrum.perun.core.api.Resource
cz.metacentrum.perun.core.api.RichResource
- All Implemented Interfaces:
HasUuid
,Serializable
,Comparable<PerunBean>
Object which represents RichResource
- Author:
- Pavel Zlamal invalid input: '<'256627@mail.muni.cz>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance.RichResource
(Resource resource) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add ResourceTag to Resource (used to fill in from SQL)Returns Facility associated with this resourceReturns list of associated ResourceTags with this resourcegetVo()
Returns VO associated with this resourcevoid
setFacility
(Facility facility) Sets Facility associated with this resourcevoid
setResourceTags
(List<ResourceTag> resourceTags) Set list of associated ResourceTags with this resourcevoid
Sets VO associated with this resourcetoString()
Methods inherited from class cz.metacentrum.perun.core.api.Resource
compareTo, equals, getDescription, getFacilityId, getName, getUuid, getVoId, hashCode, setDescription, setFacilityId, setName, setUuid, setVoId
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
-
RichResource
public RichResource()Constructs a new instance. -
RichResource
Constructs a new instance.
-
-
Method Details
-
addResourceTag
Add ResourceTag to Resource (used to fill in from SQL)- Parameters:
tag
- ResourceTag to add
-
getFacility
Returns Facility associated with this resource- Returns:
- Facility associated with resource
-
setFacility
Sets Facility associated with this resource- Parameters:
facility
- Facility associated with resource
-
getResourceTags
Returns list of associated ResourceTags with this resource- Returns:
- List
associated with resource
-
setResourceTags
Set list of associated ResourceTags with this resource- Parameters:
resourceTags
- ResourceTags associated with resource
-
getVo
Returns VO associated with this resource- Returns:
- VO associated with resource
-
setVo
Sets VO associated with this resource- Parameters:
vo
- VO associated with resource
-
serializeToString
- Overrides:
serializeToString
in classResource
-
toString
-