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
-
Method Summary
Modifier and TypeMethodDescriptiongetNext()
getPrev()
void
void
setPageStatistics
(PageStatisticsRepresentation pageStatistics) void
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
-
Constructor Details
-
BaseCollectionRepresentation
public BaseCollectionRepresentation()
-
-
Method Details
-
getPageStatistics
@JSONProperty(value="statistics", ignoreIfNull=true) public PageStatisticsRepresentation getPageStatistics() -
setPageStatistics
-
getPrev
-
setPrev
-
getNext
-
setNext
-