|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.accounting.datamodel.AbstractDelegateUsageRecord
public abstract class AbstractDelegateUsageRecord
Field Summary | |
---|---|
protected UsageRecord |
ur
|
Constructor Summary | |
---|---|
AbstractDelegateUsageRecord()
|
|
AbstractDelegateUsageRecord(UsageRecord ur)
|
Method Summary | |
---|---|
String |
getAggregatedId()
Return the id of the usage record aggregating this |
String |
getConsumerId()
Return the identity of the entity that consumed the resource |
Calendar |
getCreateTime()
Return the creation time for this usage record |
String |
getCreatorId()
Return the identity of the entity creating this usage record |
UsageRecord |
getDelegateUR()
|
Calendar |
getEndTime()
Return the right end of the time interval covered by this usage record |
String |
getFullyQualifiedConsumerId()
|
String |
getId()
Return the unique id for this usage record |
String |
getResourceOwner()
Return the identity of the owner of the resource |
Map<String,String> |
getResourceSpecificProperties()
Return all resource-specific properties |
String |
getResourceSpecificProperty(String name)
Return the value of the given resource-specific property |
String |
getResourceType()
Return the type of the resource this usage records refers to |
Calendar |
getStartTime()
Return the left end of the time interval covered by this usage record |
void |
setAggregatedId(String aggregatedId)
Set the id of the usage record aggregating this |
void |
setConsumerId(String consumerId)
Set the identity of the entity that consumed the resource |
void |
setCreateTime(Calendar createTime)
Set the creation time for this usage record |
void |
setCreatorId(String creatorId)
Set the identity of the entity creating this usage record |
void |
setEndTime(Calendar endTime)
Set the right end of the time interval covered by this usage record |
void |
setFullyQualifiedConsumerId(String fqcid)
|
void |
setId(String id)
Set the unique id for this usage record |
void |
setResourceOwner(String owner)
Set the scope of the resource |
void |
setResourceSpecificProperties(Map<String,String> props)
Set all resource-specific properties, replacing existing ones |
void |
setResourceSpecificProperty(String name,
String value)
Set the value of the given resource-specific property |
void |
setResourceType(String resourceType)
Set the type of the resource this usage records refers to |
void |
setStartTime(Calendar startTime)
Set the left end of the time interval covered by this usage record |
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.gcube.accounting.datamodel.UsageRecord |
---|
getResourceScope, setResourceScope |
Field Detail |
---|
protected UsageRecord ur
Constructor Detail |
---|
public AbstractDelegateUsageRecord()
public AbstractDelegateUsageRecord(UsageRecord ur)
Method Detail |
---|
public UsageRecord getDelegateUR()
public Calendar getCreateTime()
UsageRecord
getCreateTime
in interface UsageRecord
public void setCreateTime(Calendar createTime)
UsageRecord
setCreateTime
in interface UsageRecord
public String getCreatorId()
UsageRecord
getCreatorId
in interface UsageRecord
public void setCreatorId(String creatorId)
UsageRecord
setCreatorId
in interface UsageRecord
public String getConsumerId()
UsageRecord
getConsumerId
in interface UsageRecord
public void setConsumerId(String consumerId)
UsageRecord
setConsumerId
in interface UsageRecord
public String getFullyQualifiedConsumerId()
getFullyQualifiedConsumerId
in interface UsageRecord
public void setFullyQualifiedConsumerId(String fqcid)
setFullyQualifiedConsumerId
in interface UsageRecord
public Calendar getStartTime()
UsageRecord
getStartTime
in interface UsageRecord
public void setStartTime(Calendar startTime) throws InvalidValueException
UsageRecord
setStartTime
in interface UsageRecord
InvalidValueException
public Calendar getEndTime()
UsageRecord
getEndTime
in interface UsageRecord
public void setEndTime(Calendar endTime) throws InvalidValueException
UsageRecord
setEndTime
in interface UsageRecord
InvalidValueException
public String getId()
UsageRecord
getId
in interface UsageRecord
public void setId(String id)
UsageRecord
setId
in interface UsageRecord
public String getResourceSpecificProperty(String name)
UsageRecord
getResourceSpecificProperty
in interface UsageRecord
public void setResourceSpecificProperty(String name, String value)
UsageRecord
setResourceSpecificProperty
in interface UsageRecord
public Map<String,String> getResourceSpecificProperties()
UsageRecord
getResourceSpecificProperties
in interface UsageRecord
public void setResourceSpecificProperties(Map<String,String> props)
UsageRecord
setResourceSpecificProperties
in interface UsageRecord
public String getAggregatedId()
UsageRecord
getAggregatedId
in interface UsageRecord
public void setAggregatedId(String aggregatedId)
UsageRecord
setAggregatedId
in interface UsageRecord
public String getResourceType()
UsageRecord
getResourceType
in interface UsageRecord
public void setResourceType(String resourceType)
UsageRecord
setResourceType
in interface UsageRecord
public String getResourceOwner()
UsageRecord
getResourceOwner
in interface UsageRecord
public void setResourceOwner(String owner)
UsageRecord
setResourceOwner
in interface UsageRecord
public void validate() throws InvalidValueException
validate
in interface UsageRecord
InvalidValueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |