public class ExternalObjectResourceHandler extends DefaultResourceHandler<CreateExternalObjectParameter,EditExternalObjectParameter,DeleteExternalObjectParameter,GetExternalObjectParameter,GetCollectionExternalObjectParameter>
Constructor and Description |
---|
ExternalObjectResourceHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
handleCreateInternally(CreateExternalObjectParameter createExternalObjectParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Request to assign external object for topic.
|
javax.ws.rs.core.Response |
handleDeleteInternally(DeleteExternalObjectParameter deleteExternalObjectParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Delete the
ExternalObjectResource . |
javax.ws.rs.core.Response |
handleEditInternally(EditExternalObjectParameter editExternalObjectParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Edit an
ExternalObjectResource |
javax.ws.rs.core.Response |
handleGetInternally(GetExternalObjectParameter getExternalObjectParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Get the internal representation of external object as
ExternalObjectResource . |
javax.ws.rs.core.Response |
handleListInternally(GetCollectionExternalObjectParameter getCollectionExternalObjectParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String sessionId,
javax.ws.rs.core.Request request)
Get an list of external objects
|
handleCreate, handleDelete, handleEdit, handleGet, handleList, setValidator
public javax.ws.rs.core.Response handleCreateInternally(CreateExternalObjectParameter createExternalObjectParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws BlogNotFoundException, NotFoundException, ResponseBuildException, ExtensionNotSupportedException, AuthorizationException, ExternalObjectAlreadyAssignedException, TooManyExternalObjectsPerTopicException, ExternalSystemNotConfiguredException
handleCreateInternally
in class DefaultResourceHandler<CreateExternalObjectParameter,EditExternalObjectParameter,DeleteExternalObjectParameter,GetExternalObjectParameter,GetCollectionExternalObjectParameter>
createExternalObjectParameter
- - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType
- - is the mime type that indicates which data exchange format to useuriInfo
- - this object is created by the request and contains some request specific datarequestSessionId
- - The sessionId for the sessionrequest
- - javax requestNotFoundException
- topic was not foundResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedAuthorizationException
- user has no manager access for topicBlogNotFoundException
- can not found topicExternalObjectAlreadyAssignedException
- in case the topic is already assignedExternalSystemNotConfiguredException
TooManyExternalObjectsPerTopicException
public javax.ws.rs.core.Response handleDeleteInternally(DeleteExternalObjectParameter deleteExternalObjectParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws BlogNotFoundException, ResponseBuildException, ExtensionNotSupportedException, NotFoundException, AuthorizationException
ExternalObjectResource
.handleDeleteInternally
in class DefaultResourceHandler<CreateExternalObjectParameter,EditExternalObjectParameter,DeleteExternalObjectParameter,GetExternalObjectParameter,GetCollectionExternalObjectParameter>
deleteExternalObjectParameter
- - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType
- - is the mime type that indicates which data exchange format to useuriInfo
- - this object is created by the request and contains some request specific datarequestSessionId
- - The sessionId for the sessionrequest
- - javax requestExternalObject
ResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedNotFoundException
- can not found external objectAuthorizationException
- user has no manager access for topicBlogNotFoundException
- can not found topicpublic javax.ws.rs.core.Response handleEditInternally(EditExternalObjectParameter editExternalObjectParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws BlogNotFoundException, NotFoundException, ExternalObjectAlreadyAssignedException, BlogAccessException, ResponseBuildException, ExtensionNotSupportedException
ExternalObjectResource
handleEditInternally
in class DefaultResourceHandler<CreateExternalObjectParameter,EditExternalObjectParameter,DeleteExternalObjectParameter,GetExternalObjectParameter,GetCollectionExternalObjectParameter>
editExternalObjectParameter
- - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType
- - is the mime type that indicates which data exchange format to useuriInfo
- - this object is created by the request and contains some request specific datarequestSessionId
- - The sessionId for the sessionrequest
- - javax requestExternalObject
BlogNotFoundException
- in case the topic does not existNotFoundException
- in case the external object does not existExternalObjectAlreadyAssignedException
- in case the external object is assigned to another topicBlogAccessException
- in case the user is not manager of the topicResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedpublic javax.ws.rs.core.Response handleGetInternally(GetExternalObjectParameter getExternalObjectParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws ResponseBuildException, ExtensionNotSupportedException, NotFoundException, BlogAccessException
ExternalObjectResource
.handleGetInternally
in class DefaultResourceHandler<CreateExternalObjectParameter,EditExternalObjectParameter,DeleteExternalObjectParameter,GetExternalObjectParameter,GetCollectionExternalObjectParameter>
getExternalObjectParameter
- - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType
- - is the mime type that indicates which data exchange format to useuriInfo
- - this object is created by the request and contains some request specific datarequestSessionId
- - The sessionId for the sessionrequest
- - javax requestExternalObject
ResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedNotFoundException
- can not found external objectBlogAccessException
- in case the current user has no read access to the blogpublic javax.ws.rs.core.Response handleListInternally(GetCollectionExternalObjectParameter getCollectionExternalObjectParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String sessionId, javax.ws.rs.core.Request request) throws IllegalRequestParameterException, ResponseBuildException, ExtensionNotSupportedException, BlogNotFoundException, BlogAccessException
handleListInternally
in class DefaultResourceHandler<CreateExternalObjectParameter,EditExternalObjectParameter,DeleteExternalObjectParameter,GetExternalObjectParameter,GetCollectionExternalObjectParameter>
getCollectionExternalObjectParameter
- - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType
- - is the mime type that indicates which data exchange format to useuriInfo
- - this object is created by the request and contains some request specific datasessionId
- - The sessionId for the sessionrequest
- - javax requestIllegalRequestParameterException
- request parameter is not validResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedBlogNotFoundException
- topic was not foundBlogAccessException
- in case the current user has no read access to the blogCopyright © 2019 Communote team. All rights reserved.