Class GenericResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractItemResponse,AbstractListResponse,AbstractStagingResponse,AuthenticationResponse,ConstructCategoryLoadResponse,ConstructListResponse,ConstructLoadResponse,ContentLanguageResponse,ContentRepositoryFragmentEntryResponse,ContentRepositoryFragmentResponse,ContentRepositoryResponse,DatasourceEntryResponse,DatasourceLoadResponse,ExportSelectionResponse,FeatureResponse,FileLoadResponse,FileUploadResponse,FolderExternalLinksResponse,FolderLoadResponse,FolderObjectCountResponse,FolderPublishDirSanitizeResponse,FolderStructureLoadResponse,FoundFilesListResponse,GroupLoadResponse,GroupsPermBitsResponse,GroupsResponse,ImageLoadResponse,ItemListResponse,JobStatus,LanguageListResponse,LanguageResponse,MaintenanceResponse,MeshRolesResponse,MessageListResponse,MigrationGetLogResponse,MigrationGetLogsResponse,MigrationJobItemsResponse,MigrationPartsResponse,MigrationResponse,MigrationStatusResponse,MigrationTagsResponse,MultiPageLoadResponse,MultiTagCreateResponse,NodeFeatureResponse,NodeLoadResponse,NodeRestrictionResponse,NodeSettingsResponse,ObjectPropertyCategoryLoadResponse,ObjectPropertyLoadResponse,ObjTagSyncStatus,PageCopyResponse,PageFilenameSuggestResponse,PageLoadResponse,PagePreviewResponse,PageRenderResponse,PartResponse,PermBitsResponse,PermResponse,PossiblePartMappingsResponse,PrivilegesResponse,PublishInfoResponse,PublishQueueResponse,RolePermResponse,RoleResponse,SchedulerStatusResponse,TagCreateResponse,TagListResponse,TagmapEntryResponse,TemplateListResponse,TemplateLoadResponse,ToolsResponse,TotalUsageResponse,TypePermissionResponse,UpdatesInfoResponse,UserDataResponse,UserListResponse,UserLoadResponse,UsersnapResponse,VersionResponse
Generic response containing the response code and response messages (no additional objects)
- Author:
- norbert
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor used by JAXBGenericResponse(Message message, ResponseInfo responseInfo) Creates a GenericResponse with the provided single message and ResponseInfo. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(Message message) Messages contained in the response (which should be shown to the user)booleanWhether the job was pushed into the background.setInBackground(boolean inBackground) Set whether the job was pushed into the background.voidsetMessages(List<Message> messages) voidsetResponseInfo(ResponseInfo responseInfo)
-
Constructor Details
-
GenericResponse
public GenericResponse()Constructor used by JAXB -
GenericResponse
Creates a GenericResponse with the provided single message and ResponseInfo.- Parameters:
message- The message that should be displayed to the userresponse- ResponseInfo with the status of the response
-
-
Method Details
-
getMessages
Messages contained in the response (which should be shown to the user)- Returns:
- list of messages
-
addMessage
-
setMessages
-
getResponseInfo
-
setResponseInfo
-
isInBackground
public boolean isInBackground()Whether the job was pushed into the background.- Returns:
- Whether the job was pushed into the background.
-
setInBackground
Set whether the job was pushed into the background.- Parameters:
inBackground- Whether the job was pushed into the background.- Returns:
- Fluent API
-