public class ReferencedSyncableObjectsListResponse extends GenericResponse
Modifier and Type | Class and Description |
---|---|
static class |
ReferencedSyncableObjectsListResponse.SyncDependencies
Type alias for
Map<Integer, Map<ItemType, Map<Integer, Integer>>> |
Constructor and Description |
---|
ReferencedSyncableObjectsListResponse(Map<ContentNodeItem.ItemType,ReferencedSyncableObjectsListResponse.SyncDependencies> dependencies,
List<Page> pages,
int pagesWithoutPermission,
List<File> files,
int filesWithoutPermission,
List<Image> images,
int imagesWithoutPermission)
Default constructor with no message and a response info containing just the
response code
OK . |
ReferencedSyncableObjectsListResponse(Message message,
ResponseInfo responseInfo)
Constructor from
GenericResponse . |
Modifier and Type | Method and Description |
---|---|
Map<ContentNodeItem.ItemType,ReferencedSyncableObjectsListResponse.SyncDependencies> |
getDependencies()
Get the indirect dependencies.
|
List<File> |
getFiles()
Get the directly linked files.
|
int |
getFilesTotal()
Get the number of directly linked files.
|
int |
getFilesWithoutPermission()
Get the number of files not visible to the current user.
|
List<Image> |
getImages()
Get the directly linked images.
|
int |
getImagesTotal()
Get the number of directly linked images.
|
int |
getImagesWithoutPermission()
Get the number of images not visible to the current user.
|
List<Page> |
getPages()
Get the directly linked pages.
|
int |
getPagesTotal()
Get the number of directly linked pages.
|
int |
getPagesWithoutPermission()
Get the number of pages not visible to the current user.
|
boolean |
isHaveDependencies()
Flag indicating if there are any dependencies at all.
|
void |
setDependencies(Map<ContentNodeItem.ItemType,ReferencedSyncableObjectsListResponse.SyncDependencies> dependencies)
Set the indirect dependencies.
|
void |
setFiles(List<File> files)
Set the directly linked files.
|
void |
setFilesTotal(int filesTotal)
Set the number of directly linked files.
|
void |
setFilesWithoutPermission(int filesWithoutPermission)
Set the number of files not visible to the current user.
|
void |
setImages(List<Image> images)
Set the directly linked images
|
void |
setImagesTotal(int imagesTotal)
Set the number of directly linked images
|
void |
setImagesWithoutPermission(int imagesWithoutPermission)
Set the number of images not visible to the current user
|
void |
setPages(List<Page> pages)
Set the directly linked pages.
|
void |
setPagesTotal(int pagesTotal)
Set the number of directly linked pages.
|
void |
setPagesWithoutPermission(int pagesWithoutPermission)
Set the number of pages not visible to the current user.
|
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
public ReferencedSyncableObjectsListResponse(Message message, ResponseInfo responseInfo)
GenericResponse
.message
- The message that should be displayed to the userresponseInfo
- ResponseInfo with the status of the responsepublic ReferencedSyncableObjectsListResponse(Map<ContentNodeItem.ItemType,ReferencedSyncableObjectsListResponse.SyncDependencies> dependencies, List<Page> pages, int pagesWithoutPermission, List<File> files, int filesWithoutPermission, List<Image> images, int imagesWithoutPermission)
OK
.dependencies
- The map of indirect dependenciespages
- The directly linked pagespagesWithoutPermission
- The number of pages not visible to the current userfiles
- The directly linked filesfilesWithoutPermission
- The number of files not visible to the current userimages
- The directly linked imagesimagesWithoutPermission
- The number of images not visible to the current userpublic boolean isHaveDependencies()
true
if there are any direct or indirect dependencies, and
false
otherwise.public Map<ContentNodeItem.ItemType,ReferencedSyncableObjectsListResponse.SyncDependencies> getDependencies()
public void setDependencies(Map<ContentNodeItem.ItemType,ReferencedSyncableObjectsListResponse.SyncDependencies> dependencies)
dependencies
- The indirect dependenciespublic List<Page> getPages()
public void setPages(List<Page> pages)
pages
- The directly linked pagespublic int getPagesTotal()
public void setPagesTotal(int pagesTotal)
pagesTotal
- The number of directly linked pagespublic int getPagesWithoutPermission()
public void setPagesWithoutPermission(int pagesWithoutPermission)
pagesWithoutPermission
- The number of pages not visible to the current userpublic List<File> getFiles()
public void setFiles(List<File> files)
files
- The directly linked filespublic int getFilesTotal()
public void setFilesTotal(int filesTotal)
filesTotal
- The number of directly linked filespublic int getFilesWithoutPermission()
public void setFilesWithoutPermission(int filesWithoutPermission)
filesWithoutPermission
- The number of files not visible to the current userpublic List<Image> getImages()
public void setImages(List<Image> images)
images
- The directly linked imagespublic int getImagesTotal()
public void setImagesTotal(int imagesTotal)
imagesTotal
- The number of directly linked imagespublic int getImagesWithoutPermission()
public void setImagesWithoutPermission(int imagesWithoutPermission)
imagesWithoutPermission
- The number of images not visible to the current userCopyright © 2024 Gentics Software. All rights reserved.