Class Collaboration
java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.Collaboration
- All Implemented Interfaces:
NewerNewStyleService
,STService
This class provides services for collaboration (e.g. connection to an issue tracker).
-
Field Summary
Fields inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
applicationEventPublisher, cfManager, stServiceContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateCollaboratioOnProject
(String backendId) void
addPreferencesForCurrentUser
(String backendId, com.fasterxml.jackson.databind.node.ObjectNode currentUserPreferences) void
assignProject
(com.fasterxml.jackson.databind.node.ObjectNode projectJson) void
assignResourceToIssue
(String issue, org.eclipse.rdf4j.model.IRI resource) void
createIssue
(org.eclipse.rdf4j.model.IRI resource, com.fasterxml.jackson.databind.node.ObjectNode issueCreationForm) void
createProject
(com.fasterxml.jackson.databind.node.ObjectNode projectJson) com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.JsonNode
listIssues
(int pageOffset) com.fasterxml.jackson.databind.JsonNode
listIssuesAssignedToResource
(org.eclipse.rdf4j.model.IRI resource) com.fasterxml.jackson.databind.JsonNode
void
removeResourceFromIssue
(String issue, org.eclipse.rdf4j.model.IRI resource) void
void
setCollaborationSystemActive
(boolean active) Methods inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
addValue, checkNotLocallyDefined, createQueryBuilder, generateIRI, generateNatureSPARQLSelectPart, generateNatureSPARQLWherePart, generateResourceWithCustomConstructor, getCodaLexModeForSearchFromLexicalizationModel, getDeleteGraph, getGraphFromNature, getInitializedCodaCore, getManagedConnection, getMetadataGraph, getOptionalProject, getPlatformTransactionManager, getProject, getRepository, getRoleFromNature, getUserNamedGraphs, getWorkingGraph, instantiateSearchStrategy, instantiateSearchStrategy, parseReference, publishResourceDeleted, publishResourceDeleted, removeReifiedValue, retrieveResources, shutDownCodaCore, updateTriplePredicate
-
Constructor Details
-
Collaboration
public Collaboration()
-
-
Method Details
-
getCollaborationSystemStatus
@STServiceOperation public com.fasterxml.jackson.databind.JsonNode getCollaborationSystemStatus() throws STPropertyAccessException, NoSuchSettingsManager, CollaborationBackendException -
activateCollaboratioOnProject
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAuthorized(\'pm(project, collaboration)\', \'C\')") public void activateCollaboratioOnProject(String backendId) throws ProjectUpdateException, ReservedPropertyUpdateException -
setCollaborationSystemActive
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAuthorized(\'pm(project, collaboration)\', \'U\')") public void setCollaborationSystemActive(boolean active) throws ProjectUpdateException, ReservedPropertyUpdateException -
resetCollaborationOnProject
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAuthorized(\'pm(project, collaboration)\', \'U\')") public void resetCollaborationOnProject() throws ProjectUpdateException, ReservedPropertyUpdateException -
addPreferencesForCurrentUser
@STServiceOperation(method=POST) public void addPreferencesForCurrentUser(String backendId, com.fasterxml.jackson.databind.node.ObjectNode currentUserPreferences) throws STPropertyAccessException, STPropertyUpdateException, ProjectUpdateException, ReservedPropertyUpdateException, NoSuchSettingsManager, WrongPropertiesException -
getIssueCreationForm
@STServiceOperation(method=GET) public STProperties getIssueCreationForm() throws CollaborationBackendException- Throws:
CollaborationBackendException
-
createIssue
@STServiceOperation(method=POST) public void createIssue(org.eclipse.rdf4j.model.IRI resource, com.fasterxml.jackson.databind.node.ObjectNode issueCreationForm) throws STPropertyAccessException, IOException, CollaborationBackendException -
assignProject
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAuthorized(\'pm(project, collaboration)\', \'C\')") public void assignProject(com.fasterxml.jackson.databind.node.ObjectNode projectJson) throws STPropertyAccessException, IOException, CollaborationBackendException, STPropertyUpdateException -
createProject
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAuthorized(\'pm(project, collaboration)\', \'C\')") public void createProject(com.fasterxml.jackson.databind.node.ObjectNode projectJson) throws STPropertyAccessException, com.fasterxml.jackson.core.JsonProcessingException, IOException, CollaborationBackendException, STPropertyUpdateException - Throws:
STPropertyAccessException
com.fasterxml.jackson.core.JsonProcessingException
IOException
CollaborationBackendException
STPropertyUpdateException
-
assignResourceToIssue
@STServiceOperation(method=POST) public void assignResourceToIssue(String issue, org.eclipse.rdf4j.model.IRI resource) throws STPropertyAccessException, IOException, CollaborationBackendException -
removeResourceFromIssue
@STServiceOperation(method=POST) public void removeResourceFromIssue(String issue, org.eclipse.rdf4j.model.IRI resource) throws STPropertyAccessException, IOException, CollaborationBackendException -
listIssuesAssignedToResource
@STServiceOperation(method=GET) public com.fasterxml.jackson.databind.JsonNode listIssuesAssignedToResource(org.eclipse.rdf4j.model.IRI resource) throws STPropertyAccessException, IOException, CollaborationBackendException -
listIssues
@STServiceOperation(method=GET) public com.fasterxml.jackson.databind.JsonNode listIssues(int pageOffset) throws STPropertyAccessException, IOException, CollaborationBackendException -
listProjects
@STServiceOperation(method=GET) public com.fasterxml.jackson.databind.JsonNode listProjects() throws STPropertyAccessException, IOException, CollaborationBackendException
-