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, SearchService, SpaceDirectoryResource, SpaceResource, UserResource, UserSession

public abstract class AbstractResource
extends Object


Field Summary
protected  com.atlassian.plugins.rest.common.security.AuthenticationContext authContext
           
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
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-2013 Atlassian. All Rights Reserved.