Class AbstractListResponse<T>

Type Parameters:
T - type of the objects contained in the list
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ActionLogEntryList, ActionLogTypeList, ActionModelList, ConstructCategoryListResponse, ConstructList, ContentRepositoryFragmentEntryListResponse, ContentRepositoryFragmentListResponse, ContentRepositoryListResponse, DatasourceEntryListResponse, DirtQueueEntryList, DirtQueueSummaryResponse, ErrorLogEntryList, ExecutionListResponse, FeatureList, FeatureModelList, FileListResponse, FolderListResponse, GenericItemList, GroupList, ImageListResponse, ItemVersionListResponse, JobsResponse, LanguageList, MarkupLanguageListResponse, NodeList, ObjectPropertyCategoryListResponse, ObjectPropertyListResponse, PackageDependencyList, PackageListResponse, PagedConstructInPackageListResponse, PagedConstructListResponse, PagedContentRepositoryFragmentInPackageListResponse, PagedContentRepositoryInPackageListResponse, PagedDatasourceInPackageListResponse, PagedDatasourceListResponse, PagedFolderListResponse, PagedObjectPropertyInPackageListResponse, PagedObjectPropertyListResponse, PagedTemplateInPackageListResponse, PagedTemplateListResponse, PageListResponse, RoleListResponse, ScheduleListResponse, SyncItemList, TagList, TagmapEntryConsistencyResponse, TagmapEntryListResponse, TagStatusResponse, TaskListResponse, TemplateInNodeResponse, TypePermissionList, UILanguagesResponse, UserList

public abstract class AbstractListResponse<T> extends StagingResponse<String>
Abstract list response
See Also:
  • Constructor Details

    • AbstractListResponse

      public AbstractListResponse()
      Empty constructor needed by JAXB
    • AbstractListResponse

      public AbstractListResponse(Message message, ResponseInfo responseInfo)
      Create an instance with message and response info
      Parameters:
      message - message
      responseInfo - response info
  • Method Details

    • getItems

      public List<T> getItems()
      Items in the list
      Returns:
      list of items
    • setItems

      public void setItems(List<T> items)
      Set the list of items
      Parameters:
      items - list of items
    • getHasMoreItems

      public boolean getHasMoreItems()
      True if more items are available to get (if paging was used)
      Returns:
      true for more items
    • setHasMoreItems

      public void setHasMoreItems(boolean hasMoreItems)
      Set whether more items are available
      Parameters:
      hasMoreItems - true for more items
    • getNumItems

      public int getNumItems()
      Get total number of items available
      Returns:
      total number of items available
    • setNumItems

      public void setNumItems(int numItems)
      Set total number of items available
      Parameters:
      numItems - total number of items
    • getPerms

      public Map<Integer,Set<Permission>> getPerms()
      User permissions on the returned items, if applicable and requested
      Returns:
      map of permissions
    • setPerms

      public void setPerms(Map<Integer,Set<Permission>> perms)
      Set user permissions
      Parameters:
      perms - permissions