@Path(value="resources") public interface ResourceService extends JAXRSService
DEFAULT_PARAM_PAGE, DEFAULT_PARAM_PAGE_VALUE, DEFAULT_PARAM_SIZE, DEFAULT_PARAM_SIZE_VALUE, PARAM_DETAILS, PARAM_FIQL, PARAM_ORDERBY, PARAM_PAGE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
BulkActionResult |
bulk(BulkAction bulkAction)
Executes the provided bulk action.
|
BulkActionResult |
bulkDeassociation(String resourceName,
SubjectType subjectType,
ResourceDeassociationActionType type,
List<SubjectId> subjectIds)
De-associate users or roles (depending on the provided subject type) from the given resource.
|
boolean |
check(ResourceTO resourceTO)
Checks wether the connection to resource could be established.
|
javax.ws.rs.core.Response |
create(ResourceTO resourceTO)
Creates a new resource.
|
void |
delete(String resourceName)
Deletes the resource matching the given name.
|
ConnObjectTO |
getConnectorObject(String resourceName,
SubjectType type,
Long id)
Returns connector object from the external resource, for the given type and id.
|
List<PropagationActionClass> |
getPropagationActionsClasses()
Returns a list of classes that can be used to customize the propagation process.
|
List<ResourceTO> |
list()
Returns a list of all resources.
|
ResourceTO |
read(String resourceName)
Returns the resource with matching name.
|
void |
update(String resourceName,
ResourceTO resourceTO)
Updates the resource matching the given name.
|
@GET
@Path(value="{resourceName}/{type}/{id}")
@Produces(value={"application/xml","application/json"})
ConnObjectTO getConnectorObject(@NotNull@PathParam(value="resourceName")
String resourceName,
@NotNull@PathParam(value="type")
SubjectType type,
@NotNull@PathParam(value="id")
Long id)
resourceName - Name of resource to read connector object fromtype - user / roleid - user id / role id@GET
@Path(value="propagationActionsClasses")
@Produces(value={"application/xml","application/json"})
List<PropagationActionClass> getPropagationActionsClasses()
@GET
@Path(value="{resourceName}")
@Produces(value={"application/xml","application/json"})
ResourceTO read(@NotNull@PathParam(value="resourceName")
String resourceName)
resourceName - Name of resource to be read@GET
@Produces(value={"application/xml","application/json"})
List<ResourceTO> list()
@POST
@Consumes(value={"application/xml","application/json"})
javax.ws.rs.core.Response create(@NotNull
ResourceTO resourceTO)
resourceTO - Resource to be created@PUT
@Path(value="{resourceName}")
@Consumes(value={"application/xml","application/json"})
void update(@NotNull@PathParam(value="resourceName")
String resourceName,
@NotNull
ResourceTO resourceTO)
resourceName - name of resource to be updatedresourceTO - resource to be stored@DELETE
@Path(value="{resourceName}")
@Consumes(value={"application/xml","application/json"})
void delete(@NotNull@PathParam(value="resourceName")
String resourceName)
resourceName - name of resource to be deleted@POST
@Path(value="check")
@Consumes(value={"application/xml","application/json"})
boolean check(@NotNull
ResourceTO resourceTO)
resourceTO - resource to be checked@POST
@Path(value="{resourceName}/bulkDeassociation/{subjType}/{type}")
@Produces(value={"application/xml","application/json"})
@Consumes(value={"application/xml","application/json"})
BulkActionResult bulkDeassociation(@NotNull@PathParam(value="resourceName")
String resourceName,
@NotNull@PathParam(value="subjType")
SubjectType subjectType,
@NotNull@PathParam(value="type")
ResourceDeassociationActionType type,
@NotNull
List<SubjectId> subjectIds)
resourceName - name of resourcesubjectType - subject type (user or role)type - resource de-association action typesubjectIds - users or roles against which the bulk action will be performedBulkActionResult as Entity@POST
@Path(value="bulk")
@Produces(value={"application/xml","application/json"})
@Consumes(value={"application/xml","application/json"})
BulkActionResult bulk(@NotNull
BulkAction bulkAction)
bulkAction - list of resource names against which the bulk action will be performedCopyright © 2010–2018 The Apache Software Foundation. All rights reserved.