java.lang.Object
com.genologics.ri.file.ClarityFiles
- All Implemented Interfaces:
Batch<FileLink>,PaginatedBatch<FileLink>,Serializable,Iterable<FileLink>
The representation for a list of file links.
The system enforces a maximum number of elements when generating the list of links. When the size of the request result set is larger than the system maximum, the list represents a paged view of the overall results, and the previous-page and next-page elements provide URIs linking to the previous or next page of links in the overall results.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFiles()Gets the list of file links.getList()Gets the list of file links.Gets the link to the next page of results.Gets the link to the previous page of results.intgetSize()Gets the number of file links in this collection.voidsetNextPage(Page nextPage) Sets the link to the next page of results.voidsetPreviousPage(Page previousPage) Sets the link to the previous page of results.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
files
The list of file links. -
previousPage
A link to the previous page of results, if available. -
nextPage
A link to the next page of results, if available.
-
-
Constructor Details
-
ClarityFiles
public ClarityFiles()Creates a new, empty ClarityFiles instance.
-
-
Method Details
-
getFiles
Gets the list of file links. If the list is null, it will be initialized to an empty list.- Returns:
- The list of file links.
-
getList
Gets the list of file links. This method is required by thePaginatedBatchinterface. -
getSize
public int getSize()Gets the number of file links in this collection. -
getPreviousPage
Gets the link to the previous page of results.- Specified by:
getPreviousPagein interfacePaginatedBatch<FileLink>- Returns:
- The previous page link, or null if there is no previous page.
-
setPreviousPage
Sets the link to the previous page of results.- Specified by:
setPreviousPagein interfacePaginatedBatch<FileLink>- Parameters:
previousPage- The previous page link.
-
getNextPage
Gets the link to the next page of results.- Specified by:
getNextPagein interfacePaginatedBatch<FileLink>- Returns:
- The next page link, or null if there is no next page.
-
setNextPage
Sets the link to the next page of results.- Specified by:
setNextPagein interfacePaginatedBatch<FileLink>- Parameters:
nextPage- The next page link.
-