@RestController @RequestMapping(value="/rest/pages") public class PageResource extends AssetResource<Page>
| Modifier and Type | Field and Description |
|---|---|
static String |
BONITA_RESOURCE_REGEX |
static String |
EXTENSION_RESOURCE_REGEX |
protected static org.slf4j.Logger |
logger |
assetService, assetVisitor, repository| Constructor and Description |
|---|
PageResource(PageService pageService,
PageRepository pageRepository,
org.springframework.messaging.simp.SimpMessagingTemplate messagingTemplate,
ContractToPageMapper contractToPageMapper,
AssetService<Page> pageAssetService,
AssetVisitor assetVisitor,
ComponentVisitor componentVisitor,
AuthRulesCollector authRulesCollector) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkArtifactId(String artifactId) |
org.springframework.http.ResponseEntity<Page> |
create(Contract contract,
String scope,
String name) |
org.springframework.http.ResponseEntity<Page> |
create(Page page,
String sourcePageId) |
void |
delete(String pageId) |
void |
favorite(String pageId,
Boolean favorite) |
org.springframework.http.ResponseEntity<Object> |
get(String pageId) |
List<String> |
getResources(String pageId) |
List<Page> |
list()
Lists all the pages in the repository
|
org.springframework.http.ResponseEntity<Void> |
rename(javax.servlet.http.HttpServletRequest request,
String pageId,
String name) |
org.springframework.http.ResponseEntity<Void> |
save(javax.servlet.http.HttpServletRequest request,
String pageId,
Page page) |
protected void |
setPageUUIDIfNotSet(Page page) |
assets, deleteAsset, downloadAsset, saveAsset, saveOrUpdate, updateAssetprotected static final org.slf4j.Logger logger
public static final String BONITA_RESOURCE_REGEX
public static final String EXTENSION_RESOURCE_REGEX
@Inject public PageResource(PageService pageService, PageRepository pageRepository, org.springframework.messaging.simp.SimpMessagingTemplate messagingTemplate, ContractToPageMapper contractToPageMapper, AssetService<Page> pageAssetService, AssetVisitor assetVisitor, ComponentVisitor componentVisitor, AuthRulesCollector authRulesCollector)
protected void checkArtifactId(String artifactId)
checkArtifactId in class AssetResource<Page>@RequestMapping(method=GET) public List<Page> list() throws RepositoryException
RepositoryException@RequestMapping(method=POST) public org.springframework.http.ResponseEntity<Page> create(@RequestBody Page page, @RequestParam(value="duplicata",required=false) String sourcePageId) throws RepositoryException
RepositoryException@RequestMapping(value="/contract/{scope}/{name}",
method=POST)
public org.springframework.http.ResponseEntity<Page> create(@RequestBody
Contract contract,
@PathVariable(value="scope")
String scope,
@PathVariable(value="name")
String name)
throws RepositoryException
RepositoryException@RequestMapping(value="/{pageId}",
method=PUT)
public org.springframework.http.ResponseEntity<Void> save(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="pageId")
String pageId,
@RequestBody
Page page)
throws RepositoryException
RepositoryExceptionprotected void setPageUUIDIfNotSet(Page page)
@RequestMapping(value="/{pageId}/name",
method=PUT)
public org.springframework.http.ResponseEntity<Void> rename(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="pageId")
String pageId,
@RequestBody
String name)
throws RepositoryException
RepositoryException@RequestMapping(value="/{pageId}/favorite",
method=PUT)
public void favorite(@PathVariable(value="pageId")
String pageId,
@RequestBody
Boolean favorite)
throws RepositoryException
RepositoryException@RequestMapping(value="/{pageId}",
method=GET)
public org.springframework.http.ResponseEntity<Object> get(@PathVariable(value="pageId")
String pageId)
throws NotFoundException,
RepositoryException
NotFoundExceptionRepositoryException@RequestMapping(value="/{pageId}",
method=DELETE)
public void delete(@PathVariable(value="pageId")
String pageId)
throws RepositoryException
RepositoryExceptionCopyright © 2021. All rights reserved.