Class BaseCollectionRepresentation<T>
- java.lang.Object
-
- com.cumulocity.rest.representation.BaseResourceRepresentation
-
- com.cumulocity.rest.representation.AbstractExtensibleRepresentation
-
- com.cumulocity.rest.representation.BaseResourceWithExplainRepresentation
-
- com.cumulocity.rest.representation.BaseCollectionRepresentation<T>
-
- All Implemented Interfaces:
ResourceRepresentation
,Iterable<T>
,org.svenson.DynamicProperties
- Direct Known Subclasses:
AlarmCollectionRepresentation
,ApplicationCollectionRepresentation
,ApplicationReferenceCollectionRepresentation
,ApplicationUserCollectionRepresentation
,ApplicationVersionCollectionRepresentation
,AuditRecordCollectionRepresentation
,EventCollectionRepresentation
,ExternalIDCollectionRepresentation
,GroupCollectionRepresentation
,GroupReferenceCollectionRepresentation
,ManagedObjectCollectionRepresentation
,ManagedObjectReferenceCollectionRepresentation
,MeasurementCollectionRepresentation
,MicroserviceBillingCollectionRepresentation
,NewDeviceRequestCollectionRepresentation
,NotificationSubscriptionCollectionRepresentation
,OperationCollectionRepresentation
,OptionCollectionRepresentation
,RoleCollectionRepresentation
,RoleReferenceCollectionRepresentation
,TenantCollectionRepresentation
,UserCollectionRepresentation
,UserReferenceCollectionRepresentation
public abstract class BaseCollectionRepresentation<T> extends BaseResourceWithExplainRepresentation implements Iterable<T>
Common Base Class for all Collection Representations. The actual items are intentionally not part of this class because the (json) name varies from Collection to Collection and the Mapping has to be defined for each Collection Type separately because the a generic Type Parameter would not be available at runtime.
-
-
Constructor Summary
Constructors Constructor Description BaseCollectionRepresentation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNext()
PageStatisticsRepresentation
getPageStatistics()
String
getPrev()
void
setNext(String next)
void
setPageStatistics(PageStatisticsRepresentation pageStatistics)
void
setPrev(String prev)
-
Methods inherited from class com.cumulocity.rest.representation.BaseResourceWithExplainRepresentation
getQueryPlanner, setQueryPlanner
-
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
-
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
getPageStatistics
@JSONProperty(value="statistics", ignoreIfNull=true) public PageStatisticsRepresentation getPageStatistics()
-
setPageStatistics
public void setPageStatistics(PageStatisticsRepresentation pageStatistics)
-
getPrev
@JSONProperty(ignoreIfNull=true) public String getPrev()
-
setPrev
public void setPrev(String prev)
-
getNext
@JSONProperty(ignoreIfNull=true) public String getNext()
-
setNext
public void setNext(String next)
-
-