public class PromotedEntityResource extends AbstractRestResource
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_BLUEPRINT_ID |
static String |
PARAM_ID |
static String |
PARAM_SPACE_KEY |
permissionManager| Constructor and Description |
|---|
PromotedEntityResource(PromotedBlueprintService promotedBlueprintService,
PromotedTemplateService promotedTemplateService,
com.atlassian.confluence.security.PermissionManager permissionManager,
com.atlassian.confluence.spaces.SpaceManager spaceManager,
com.atlassian.confluence.security.SpacePermissionManager spacePermissionManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
demoteBlueprint(String blueprintId,
String spaceKey) |
void |
demoteTemplate(long templateId,
String spaceKey) |
Collection<Long> |
getPromotedTemplates(String spaceKey) |
boolean |
promoteBlueprint(String blueprintId,
String spaceKey) |
void |
promoteTemplate(long templateId,
String spaceKey) |
checkAdminPermission, checkEmptyParameter, checkNullEntity, checkNullParameter, checkSpaceAdminPermission, getAndCheckSpace, getUserpublic static final String PARAM_BLUEPRINT_ID
public static final String PARAM_SPACE_KEY
public static final String PARAM_ID
public PromotedEntityResource(PromotedBlueprintService promotedBlueprintService, PromotedTemplateService promotedTemplateService, com.atlassian.confluence.security.PermissionManager permissionManager, com.atlassian.confluence.spaces.SpaceManager spaceManager, com.atlassian.confluence.security.SpacePermissionManager spacePermissionManager)
public boolean promoteBlueprint(String blueprintId, String spaceKey) throws BlueprintIllegalArgumentException
public boolean demoteBlueprint(String blueprintId, String spaceKey) throws BlueprintIllegalArgumentException
public void promoteTemplate(long templateId,
String spaceKey)
throws BlueprintIllegalArgumentException
public void demoteTemplate(long templateId,
String spaceKey)
throws BlueprintIllegalArgumentException
public Collection<Long> getPromotedTemplates(String spaceKey)
Copyright © 2017 Atlassian. All rights reserved.