public abstract class AbstractProjectAreaAssociationService extends Object
ProjectAreaAssociation
.
Concrete services extending this class are expected to declare the following path:
@Path("/process/project-area")
Constructor and Description |
---|
AbstractProjectAreaAssociationService() |
Modifier and Type | Method and Description |
---|---|
Response |
addAssociation(String providerId) |
Response |
addAssociationXml(String providerId) |
protected void |
checkPermission(String providerId)
Checks whether the connected user has the permission to access project area associations services for the given provider.
|
Response |
deleteAssociation(String providerId,
String associationType,
URI providerDetails) |
protected abstract AbstractProjectAreaAssociationManager |
getAssociationManager() |
Response |
getAssociations(String providerId) |
public AbstractProjectAreaAssociationService()
public Response addAssociationXml(String providerId) throws IOException
IOException
public Response deleteAssociation(String providerId, String associationType, URI providerDetails)
protected void checkPermission(String providerId)
By default the permission is only granted to administrators. This method can be overridden to provide different permissions.
providerId
- the service provider identifierprotected abstract AbstractProjectAreaAssociationManager getAssociationManager()