API - Resource
The Resource abstract class represents a resource (e.g., person, department, equipment).
Fields
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier |
locationName | String | Resource location |
typeName | String | Resource type name |
roleName | String | Assigned role name |
attributes | List<Attribute> | Associated attributes |
attributeGroups | List<AttributeGroup> | Attribute groups |
Header attributes
/**
* @return the technical UUID of the resource
*/
String getId();
/**
* @return the name of the location the resource is assigned to.
* If the resource is not assigned to a location than null is returned.
*/
String getLocationName();
/**
* @return the name (former Manual ID) of the resource type
*/
String getTypeName();
/**
* @return the name of the role assigned to the resource.
* If the resource is not assigned to a role than null is returned.
*/
String getRoleName();
/**
*
* @param locationName the name of the location (former manual id) to assign the resource to.
* @throws DataAccessException
*/
void setLocation(String locationName) throws DataAccessException;
Dynamic attributes
See also Attributes and AttributeGroups.
/**
* @return the list of attributes associated with the resource
*/
List<Attribute> getAttributes();
/**
*
* @return the list of attribute groups associated with the resource
*/
List<AttributeGroup> getAttributeGroups();