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

public class GenericResponse extends Object implements Serializable
Generic response containing the response code and response messages (no additional objects)
Author:
norbert
See Also:
  • Constructor Details

    • GenericResponse

      public GenericResponse()
      Constructor used by JAXB
    • GenericResponse

      public GenericResponse(Message message, ResponseInfo responseInfo)
      Creates a GenericResponse with the provided single message and ResponseInfo.
      Parameters:
      message - The message that should be displayed to the user
      response - ResponseInfo with the status of the response
  • Method Details

    • getMessages

      public List<Message> getMessages()
      Messages contained in the response (which should be shown to the user)
      Returns:
      list of messages
    • addMessage

      public void addMessage(Message message)
    • setMessages

      public void setMessages(List<Message> messages)
    • getResponseInfo

      public ResponseInfo getResponseInfo()
    • setResponseInfo

      public void setResponseInfo(ResponseInfo responseInfo)