public abstract class AbstractCollectionResource<T extends Resource> extends AbstractResource implements CollectionResource<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
ITEMS_PROPERTY_NAME |
static StringProperty |
NEXT_PAGE |
deletedPropertyNames, dirty, dirtyProperties, properties, referenceFactoryreadLock, writeLock| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCollectionResource(InternalDataStore dataStore) |
protected |
AbstractCollectionResource(InternalDataStore dataStore,
Map<String,Object> properties) |
protected |
AbstractCollectionResource(InternalDataStore dataStore,
Map<String,Object> properties,
Map<String,Object> queryParams) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Resource,R extends CollectionResource<T>> |
emptyCollectionResource(InternalDataStore internalDataStore,
Class<R> implClass) |
Page<T> |
getCurrentPage() |
protected abstract Class<T> |
getItemType() |
static boolean |
isCollectionResource(Map<String,?> props)
Returns
true if the specified data map represents a materialized collection resource data set, false otherwise. |
Iterator<T> |
iterator() |
T |
single() |
static <T extends Resource,R extends CollectionResource<T>> |
singletonCollectionResource(InternalDataStore internalDataStore,
Class<R> implClass,
T item) |
Spliterator<T> |
spliterator() |
Stream<T> |
stream() |
protected T |
toResource(Class<T> resourceClass,
Map<String,Object> properties) |
clear, containsKey, containsValue, createPropertyDescriptorMap, entrySet, equals, get, getDataStore, getDeletedPropertyNames, getInternalProperties, getParamsFromHref, getProperty, getPropertyDescriptors, getPropertyNames, getResourceHref, getResourceListProperty, getResourceProperty, getUpdatedPropertyNames, hashCode, hasProperty, isDirty, isEmpty, isMaterialized, isMaterialized, isNew, isPrintableProperty, keySet, materialize, put, putAll, remove, setInternalProperties, setProperty, setProperty, setResourceHref, setResourceProperty, size, toString, valuesgetBoolean, getBoolean, getBooleanProperty, getDateProperty, getDoubleProperty, getDoubleProperty, getEnumListProperty, getEnumProperty, getEnumProperty, getInt, getInteger, getIntegerList, getIntProperty, getIntProperty, getListProperty, getListProperty, getMap, getMapProperty, getNullableBoolean, getNullableBooleanProperty, getNumber, getNumberList, getString, getString, getStringList, getStringProperty, setProperty, setPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetResourceHref, setResourceHrefpublic static final StringProperty NEXT_PAGE
public static final String ITEMS_PROPERTY_NAME
protected AbstractCollectionResource(InternalDataStore dataStore)
protected AbstractCollectionResource(InternalDataStore dataStore, Map<String,Object> properties)
public static boolean isCollectionResource(Map<String,?> props)
true if the specified data map represents a materialized collection resource data set, false otherwise.props - the data properties to testtrue if the specified data map represents a materialized collection resource data set, false otherwise.public T single()
single in interface CollectionResource<T extends Resource>public Stream<T> stream()
stream in interface CollectionResource<T extends Resource>public Spliterator<T> spliterator()
spliterator in interface Iterable<T extends Resource>public static final <T extends Resource,R extends CollectionResource<T>> R emptyCollectionResource(InternalDataStore internalDataStore, Class<R> implClass)
public static final <T extends Resource,R extends CollectionResource<T>> R singletonCollectionResource(InternalDataStore internalDataStore, Class<R> implClass, T item)
Copyright © 2017 Okta. All rights reserved.