Class ReferencedSyncableObjectsListResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.ReferencedSyncableObjectsListResponse
- All Implemented Interfaces:
Serializable
public class ReferencedSyncableObjectsListResponse
extends com.gentics.contentnode.rest.model.response.GenericResponse
Response containing directly linked objects and indirect dependencies for
an object that should be synchronised to a master channel.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classType alias forMap<Integer, Map<ItemType, Map<Integer, Integer>>>to reduce clutter. -
Constructor Summary
ConstructorsConstructorDescriptionReferencedSyncableObjectsListResponse(com.gentics.contentnode.rest.model.response.Message message, com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo) Constructor fromGenericResponse.ReferencedSyncableObjectsListResponse(Map<com.gentics.contentnode.rest.model.ContentNodeItem.ItemType, ReferencedSyncableObjectsListResponse.SyncDependencies> dependencies, List<com.gentics.contentnode.rest.model.Page> pages, int pagesWithoutPermission, List<com.gentics.contentnode.rest.model.File> files, int filesWithoutPermission, List<com.gentics.contentnode.rest.model.Image> images, int imagesWithoutPermission) Default constructor with no message and a response info containing just the response codeOK. -
Method Summary
Modifier and TypeMethodDescriptionMap<com.gentics.contentnode.rest.model.ContentNodeItem.ItemType,ReferencedSyncableObjectsListResponse.SyncDependencies> Get the indirect dependencies.List<com.gentics.contentnode.rest.model.File>getFiles()Get the directly linked files.intGet the number of directly linked files.intGet the number of files not visible to the current user.List<com.gentics.contentnode.rest.model.Image>Get the directly linked images.intGet the number of directly linked images.intGet the number of images not visible to the current user.List<com.gentics.contentnode.rest.model.Page>getPages()Get the directly linked pages.intGet the number of directly linked pages.intGet the number of pages not visible to the current user.booleanFlag indicating if there are any dependencies at all.voidsetDependencies(Map<com.gentics.contentnode.rest.model.ContentNodeItem.ItemType, ReferencedSyncableObjectsListResponse.SyncDependencies> dependencies) Set the indirect dependencies.voidSet the directly linked files.voidsetFilesTotal(int filesTotal) Set the number of directly linked files.voidsetFilesWithoutPermission(int filesWithoutPermission) Set the number of files not visible to the current user.voidSet the directly linked imagesvoidsetImagesTotal(int imagesTotal) Set the number of directly linked imagesvoidsetImagesWithoutPermission(int imagesWithoutPermission) Set the number of images not visible to the current uservoidSet the directly linked pages.voidsetPagesTotal(int pagesTotal) Set the number of directly linked pages.voidsetPagesWithoutPermission(int pagesWithoutPermission) Set the number of pages not visible to the current user.Methods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Constructor Details
-
ReferencedSyncableObjectsListResponse
public ReferencedSyncableObjectsListResponse(com.gentics.contentnode.rest.model.response.Message message, com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo) Constructor fromGenericResponse.- Parameters:
message- The message that should be displayed to the userresponseInfo- ResponseInfo with the status of the response
-
ReferencedSyncableObjectsListResponse
public ReferencedSyncableObjectsListResponse(Map<com.gentics.contentnode.rest.model.ContentNodeItem.ItemType, ReferencedSyncableObjectsListResponse.SyncDependencies> dependencies, List<com.gentics.contentnode.rest.model.Page> pages, int pagesWithoutPermission, List<com.gentics.contentnode.rest.model.File> files, int filesWithoutPermission, List<com.gentics.contentnode.rest.model.Image> images, int imagesWithoutPermission) Default constructor with no message and a response info containing just the response codeOK.- Parameters:
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 user
-
-
Method Details
-
isHaveDependencies
public boolean isHaveDependencies()Flag indicating if there are any dependencies at all.- Returns:
trueif there are any direct or indirect dependencies, andfalseotherwise.
-
getDependencies
public Map<com.gentics.contentnode.rest.model.ContentNodeItem.ItemType,ReferencedSyncableObjectsListResponse.SyncDependencies> getDependencies()Get the indirect dependencies.- Returns:
- The indirect dependencies
-
setDependencies
public void setDependencies(Map<com.gentics.contentnode.rest.model.ContentNodeItem.ItemType, ReferencedSyncableObjectsListResponse.SyncDependencies> dependencies) Set the indirect dependencies.- Parameters:
dependencies- The indirect dependencies
-
getPages
Get the directly linked pages.- Returns:
- The directly linked pages
-
setPages
Set the directly linked pages.- Parameters:
pages- The directly linked pages
-
getPagesTotal
public int getPagesTotal()Get the number of directly linked pages.- Returns:
- The number of directly linked pages.
-
setPagesTotal
public void setPagesTotal(int pagesTotal) Set the number of directly linked pages.- Parameters:
pagesTotal- The number of directly linked pages
-
getPagesWithoutPermission
public int getPagesWithoutPermission()Get the number of pages not visible to the current user.- Returns:
- The number of pages not visible to the current user
-
setPagesWithoutPermission
public void setPagesWithoutPermission(int pagesWithoutPermission) Set the number of pages not visible to the current user.- Parameters:
pagesWithoutPermission- The number of pages not visible to the current user
-
getFiles
Get the directly linked files.- Returns:
- The directly linked files
-
setFiles
Set the directly linked files.- Parameters:
files- The directly linked files
-
getFilesTotal
public int getFilesTotal()Get the number of directly linked files.- Returns:
- The number of directly linked files
-
setFilesTotal
public void setFilesTotal(int filesTotal) Set the number of directly linked files.- Parameters:
filesTotal- The number of directly linked files
-
getFilesWithoutPermission
public int getFilesWithoutPermission()Get the number of files not visible to the current user.- Returns:
- The number of files not visible to the current user
-
setFilesWithoutPermission
public void setFilesWithoutPermission(int filesWithoutPermission) Set the number of files not visible to the current user.- Parameters:
filesWithoutPermission- The number of files not visible to the current user
-
getImages
Get the directly linked images.- Returns:
- The directly linked images
-
setImages
Set the directly linked images- Parameters:
images- The directly linked images
-
getImagesTotal
public int getImagesTotal()Get the number of directly linked images.- Returns:
- The number of directly linked images
-
setImagesTotal
public void setImagesTotal(int imagesTotal) Set the number of directly linked images- Parameters:
imagesTotal- The number of directly linked images
-
getImagesWithoutPermission
public int getImagesWithoutPermission()Get the number of images not visible to the current user.- Returns:
- The number of images not visible to the current user
-
setImagesWithoutPermission
public void setImagesWithoutPermission(int imagesWithoutPermission) Set the number of images not visible to the current user- Parameters:
imagesWithoutPermission- The number of images not visible to the current user
-