Class GenericResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractItemResponse
,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
,StagingResponse
,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
ConstructorDescriptionConstructor used by JAXBGenericResponse
(Message message, ResponseInfo responseInfo) Creates a GenericResponse with the provided single message and ResponseInfo. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(Message message) Messages contained in the response (which should be shown to the user)void
setMessages
(List<Message> messages) void
setResponseInfo
(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
-