com.atlassian.confluence.plugins.rest.resources
Class AbstractResource

java.lang.Object
  extended by com.atlassian.confluence.plugins.rest.resources.AbstractResource
Direct Known Subclasses:
AttachmentResource, BreadcrumbResource, ContentResource, I18nResource, IndexResource, SearchService, SpaceDirectoryResource, SpaceResource, UserResource, UserSession

public abstract class AbstractResource
extends Object


Field Summary
protected  com.atlassian.plugins.rest.common.security.AuthenticationContext authContext
           
protected  javax.ws.rs.core.UriInfo uriInfo
           
protected  UserAccessor userAccessor
           
 
Constructor Summary
AbstractResource(UserAccessor userAccessor, SpacePermissionManager spm)
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()


Copyright © 2003–2015 Atlassian. All rights reserved.