Class AbstractResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.resources.AbstractResource
-
- Direct Known Subclasses:
BreadcrumbResource
,I18nResource
,IndexResource
,PrototypeAttachmentResource
,PrototypeContentResource
,PrototypeSearchService
,PrototypeSpaceResource
,PrototypeUserResource
,PrototypeUserSession
,SpaceDirectoryResource
public abstract class AbstractResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected com.atlassian.plugins.rest.common.security.AuthenticationContext
authContext
protected javax.ws.rs.core.UriInfo
uriInfo
protected UserAccessor
userAccessor
-
Constructor Summary
Constructors Constructor Description AbstractResource(UserAccessor userAccessor, SpacePermissionManager spm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RequestContext
createRequestContext()
protected javax.ws.rs.core.UriBuilder
getAnonymousUserUriBuilder()
protected javax.ws.rs.core.UriBuilder
getAttachmentUriBuilder()
protected javax.ws.rs.core.UriBuilder
getContentUriBuilder()
protected com.atlassian.user.User
getCurrentUser()
protected javax.ws.rs.core.UriBuilder
getMissingUserUriBuilder()
protected javax.ws.rs.core.UriBuilder
getSpaceUriBuilder()
protected javax.ws.rs.core.UriBuilder
getUserUriBuilder()
-
-
-
Field Detail
-
userAccessor
protected final UserAccessor userAccessor
-
authContext
@Context protected com.atlassian.plugins.rest.common.security.AuthenticationContext authContext
-
uriInfo
@Context protected javax.ws.rs.core.UriInfo uriInfo
-
-
Constructor Detail
-
AbstractResource
public AbstractResource(UserAccessor userAccessor, SpacePermissionManager spm)
-
-
Method Detail
-
getContentUriBuilder
protected javax.ws.rs.core.UriBuilder getContentUriBuilder()
-
getSpaceUriBuilder
protected javax.ws.rs.core.UriBuilder getSpaceUriBuilder()
-
getAttachmentUriBuilder
protected javax.ws.rs.core.UriBuilder getAttachmentUriBuilder()
-
getUserUriBuilder
protected javax.ws.rs.core.UriBuilder getUserUriBuilder()
-
getAnonymousUserUriBuilder
protected javax.ws.rs.core.UriBuilder getAnonymousUserUriBuilder()
-
getMissingUserUriBuilder
protected javax.ws.rs.core.UriBuilder getMissingUserUriBuilder()
-
getCurrentUser
protected com.atlassian.user.User getCurrentUser()
-
createRequestContext
protected RequestContext createRequestContext()
-
-