Class BreadcrumbResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.resources.AbstractResource
-
- com.atlassian.confluence.plugins.rest.resources.BreadcrumbResource
-
public class BreadcrumbResource extends AbstractResource
REST resource for getting displayable breadcrumbs for confluence content
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BreadcrumbResource.Crumb
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.plugins.rest.resources.AbstractResource
authContext, uriInfo, userAccessor
-
-
Constructor Summary
Constructors Constructor Description BreadcrumbResource(ResourceIdentifierResolver<IdAndTypeResourceIdentifier,Object> idAndTypeResourceIdentifierResolver, UserAccessor userAccessor, I18NBeanFactory i18NBeanFactory, ContextPathHolder contextPathHolder, PermissionManager permissionManager, SpacePermissionManager spacePermissionManager, BreadcrumbGenerator breadcrumbGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
generateBreadcrumbs(long resourceId, String resourceType)
Gets the breadcrumbs to display for the given content id and type.-
Methods inherited from class com.atlassian.confluence.plugins.rest.resources.AbstractResource
createRequestContext, getAnonymousUserUriBuilder, getAttachmentUriBuilder, getContentUriBuilder, getCurrentUser, getMissingUserUriBuilder, getSpaceUriBuilder, getUserUriBuilder
-
-
-
-
Constructor Detail
-
BreadcrumbResource
public BreadcrumbResource(@Qualifier("idAndTypeResourceIdentifierResolver") ResourceIdentifierResolver<IdAndTypeResourceIdentifier,Object> idAndTypeResourceIdentifierResolver, @Qualifier("userAccessor") UserAccessor userAccessor, @Qualifier("i18NBeanFactory") I18NBeanFactory i18NBeanFactory, ContextPathHolder contextPathHolder, PermissionManager permissionManager, SpacePermissionManager spacePermissionManager, BreadcrumbGenerator breadcrumbGenerator)
-
-
Method Detail
-
generateBreadcrumbs
public javax.ws.rs.core.Response generateBreadcrumbs(long resourceId, String resourceType)
Gets the breadcrumbs to display for the given content id and type.- Returns:
- the breadcrumbs for the content
-
-