@Produces(value={"application/json","application/xml"})
@Consumes(value={"application/json","application/xml"})
@Path(value="/contentrepositories")
public interface ContentRepositoryResource
Modifier and Type | Method and Description |
---|---|
ContentRepositoryResponse |
add(ContentRepositoryModel item)
Create a new ContentRepository
|
javax.ws.rs.core.Response |
addCrFragment(String id,
String crFragmentId)
Assign a ContentRepository Fragment to the ContentRepository
|
TagmapEntryResponse |
addEntry(String id,
TagmapEntryModel item)
Create a new tagmap entry
|
ContentRepositoryResponse |
check(String id,
long waitMs)
Check the connectivity and structure of the given contentrepository
|
ContentRepositoryResponse |
checkData(String id)
Check the data in the given contentrepository
|
TagmapEntryConsistencyResponse |
checkEntryConsistency(String id)
Check consistency of tagmap entries and return inconsistencies
|
ContentRepositoryResponse |
copy(String id)
Copy a ContentRepotiroy
|
javax.ws.rs.core.Response |
delete(String id)
Delete the ContentRepository with given id
|
javax.ws.rs.core.Response |
deleteEntry(String id,
String entryId)
Delete the tagmap entry
|
ContentRepositoryResponse |
get(String id)
Get the ContentRepository with given id
|
MeshRolesResponse |
getAvailableRoles(String id)
Get the roles available in the Mesh instance for the Mesh ContentRepository
|
ContentRepositoryFragmentResponse |
getCrFragment(String id,
String crFragmentId)
Get a ContentRepository Fragment assigned to the ContentRepository
|
TagmapEntryResponse |
getEntry(String id,
String entryId)
Get a tagmap entry
|
MeshRolesResponse |
getRoles(String id)
Get the roles currently set in the datasource used in the roles object property for the Mesh ContentRepository
|
ContentRepositoryListResponse |
list(FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging,
PermsParameterBean perms)
List available ContentRepositories.
The result can be filtered by id
globalId
name
crType
dbType
username
url
basepath
and sorted by
id
globalId
name
crType
dbType
username
url
basepath
instantPublishing
languageInformation
permissionInformation
diffDelete
checkDate
checkStatus
statusDate
dataStatus
|
ContentRepositoryFragmentListResponse |
listCrFragments(String id,
FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging,
PermsParameterBean perms)
Get the ContnetRepository Fragments assigned to the ContentRepository.
The result can be filtered by id
globalId
name
and sorted by
id
globalId
name
|
TagmapEntryListResponse |
listEntries(String id,
boolean fragments,
FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging)
Get the entries in the ContentRepository.
The result can be filtered by id
globalId
tagname
mapname
foreignlinkAttribute
foreignlinkAttributeRule
category
fragmentName
and sorted by
id
globalId
tagname
mapname
object
attributeType
targetType
multivalue
optimized
filesystem
foreignlinkAttribute
foreignlinkAttributeRule
category
segmentfield
displayfield
urlfield
fragmentName
|
javax.ws.rs.core.Response |
removeCrFragment(String id,
String crFragmentId)
Remove the ContentRepository Fragment from the ContentRepository
|
ContentRepositoryResponse |
repair(String id,
long waitMs)
Check and repair the connectivity and structure of the given contentrepository
|
ContentRepositoryResponse |
repairData(String id)
Check and repair the data in the given contentrepository
|
MeshRolesResponse |
setRoles(String id,
MeshRolesRequest request)
Set the roles to be used in the datasource of the roles object property for the Mesh ContentRepository
|
ContentRepositoryResponse |
update(String id,
ContentRepositoryModel item)
Update ContentRepository with given id
|
TagmapEntryResponse |
updateEntry(String id,
String entryId,
TagmapEntryModel item)
Update tagmap entry
|
@GET ContentRepositoryListResponse list(@BeanParam FilterParameterBean filter, @BeanParam SortParameterBean sorting, @BeanParam PagingParameterBean paging, @BeanParam PermsParameterBean perms) throws Exception
id
globalId
name
crType
dbType
username
url
basepath
id
globalId
name
crType
dbType
username
url
basepath
instantPublishing
languageInformation
permissionInformation
diffDelete
checkDate
checkStatus
statusDate
dataStatus
filter
- filter parameterssorting
- sorting parameterspaging
- paging parametersperms
- permissions parametersException
@POST ContentRepositoryResponse add(ContentRepositoryModel item) throws Exception
item
- ContentRepository to createException
@GET @Path(value="/{id}") ContentRepositoryResponse get(@PathParam(value="id") String id) throws Exception
id
- internal or external ContentRepository IDException
@PUT @Path(value="/{id}") ContentRepositoryResponse update(@PathParam(value="id") String id, ContentRepositoryModel item) throws Exception
id
- internal or external ContentRepository IDitem
- updated ContentRepositoryException
@DELETE @Path(value="/{id}") javax.ws.rs.core.Response delete(@PathParam(value="id") String id) throws Exception
id
- internal or external ContentRepository IDException
@PUT @Path(value="/{id}/structure/check") ContentRepositoryResponse check(@PathParam(value="id") String id, @QueryParam(value="wait") @DefaultValue(value="0") long waitMs) throws Exception
id
- internal or external ContentRepository IDwaitMs
- wait timeout in ms. When set to 0, response will be sent, when the action completesException
@PUT @Path(value="/{id}/structure/repair") ContentRepositoryResponse repair(@PathParam(value="id") String id, @QueryParam(value="wait") @DefaultValue(value="0") long waitMs) throws Exception
id
- internal or external ContentRepository IDwaitMs
- wait timeout in ms. When set to 0, response will be sent, when the action completesException
@PUT @Path(value="/{id}/data/check") ContentRepositoryResponse checkData(@PathParam(value="id") String id) throws Exception
id
- internal or external ContentRepository IDException
@PUT @Path(value="/{id}/data/repair") ContentRepositoryResponse repairData(@PathParam(value="id") String id) throws Exception
id
- internal or external ContentRepository IDException
@PUT @Path(value="/{id}/copy") ContentRepositoryResponse copy(@PathParam(value="id") String id) throws Exception
id
- internal or external ID of the ContentRepository to copyException
@GET @Path(value="/{id}/entries") TagmapEntryListResponse listEntries(@PathParam(value="id") String id, @QueryParam(value="fragments") @DefaultValue(value="false") boolean fragments, @BeanParam FilterParameterBean filter, @BeanParam SortParameterBean sorting, @BeanParam PagingParameterBean paging) throws Exception
id
globalId
tagname
mapname
foreignlinkAttribute
foreignlinkAttributeRule
category
fragmentName
id
globalId
tagname
mapname
object
attributeType
targetType
multivalue
optimized
filesystem
foreignlinkAttribute
foreignlinkAttributeRule
category
segmentfield
displayfield
urlfield
fragmentName
id
- internal or external IDfragments
- true to include entries from assigned fragments, false (which is the default) to only list entries of the ContentRepository itselffilter
- filter parameterssorting
- sorting parameterspaging
- paging parametersException
@GET @Path(value="/{id}/entries/check") TagmapEntryConsistencyResponse checkEntryConsistency(@PathParam(value="id") String id) throws Exception
id
- internal or external IDException
@POST @Path(value="/{id}/entries") TagmapEntryResponse addEntry(@PathParam(value="id") String id, TagmapEntryModel item) throws Exception
id
- internal or external ID of the ContentRepositoryitem
- entry to createException
@GET @Path(value="/{id}/entries/{entryId}") TagmapEntryResponse getEntry(@PathParam(value="id") String id, @PathParam(value="entryId") String entryId) throws Exception
id
- internal or external ID of the ContentRepositoryentryId
- internal or external ID of the entryException
@PUT @Path(value="/{id}/entries/{entryId}") TagmapEntryResponse updateEntry(@PathParam(value="id") String id, @PathParam(value="entryId") String entryId, TagmapEntryModel item) throws Exception
id
- internal or external ContentRepository IDentryId
- internal or external entry IDitem
- updated entryException
@DELETE @Path(value="/{id}/entries/{entryId}") javax.ws.rs.core.Response deleteEntry(@PathParam(value="id") String id, @PathParam(value="entryId") String entryId) throws Exception
id
- internal or external ContentRepository IDentryId
- internal or external entry IDException
@GET @Path(value="/{id}/cr_fragments") ContentRepositoryFragmentListResponse listCrFragments(@PathParam(value="id") String id, @BeanParam FilterParameterBean filter, @BeanParam SortParameterBean sorting, @BeanParam PagingParameterBean paging, @BeanParam PermsParameterBean perms) throws Exception
id
globalId
name
id
globalId
name
id
- internal or external IDfilter
- filter parameterssorting
- sorting parameterspaging
- paging parametersperms
- permissions parametersException
@GET @Path(value="/{id}/cr_fragments/{crFragmentId}") ContentRepositoryFragmentResponse getCrFragment(@PathParam(value="id") String id, @PathParam(value="crFragmentId") String crFragmentId) throws Exception
id
- internal or external ID of the ContentRepositorycrFragmentId
- internal or external ID of the ContentRepository FragmentException
@PUT @Path(value="/{id}/cr_fragments/{crFragmentId}") javax.ws.rs.core.Response addCrFragment(@PathParam(value="id") String id, @PathParam(value="crFragmentId") String crFragmentId) throws Exception
id
- internal or external ContentRepository IDcrFragmentId
- internal or external ContentRepository Fragment IDException
@DELETE @Path(value="/{id}/cr_fragments/{crFragmentId}") javax.ws.rs.core.Response removeCrFragment(@PathParam(value="id") String id, @PathParam(value="crFragmentId") String crFragmentId) throws Exception
id
- internal or external ContentRepository IDcrFragmentId
- internal or external ContentRepository Fragment IDException
@GET @Path(value="/{id}/roles") MeshRolesResponse getRoles(@PathParam(value="id") String id) throws Exception
id
- ID of the Mesh ContentRepositoryException
@GET @Path(value="/{id}/availableroles") MeshRolesResponse getAvailableRoles(@PathParam(value="id") String id) throws Exception
id
- ID of the Mesh ContentRepositoryException
@POST @Path(value="/{id}/roles") MeshRolesResponse setRoles(@PathParam(value="id") String id, MeshRolesRequest request) throws Exception
id
- ID of the Mesh ContentRepositoryrequest
- request containing the roles to setException
Copyright © 2024 Gentics Software. All rights reserved.