@STService
public class Projects
extends it.uniroma2.art.semanticturkey.services.STServiceAdapter
Constructor and Description |
---|
Projects() |
Modifier and Type | Method and Description |
---|---|
Map<String,it.uniroma2.art.semanticturkey.exceptions.ExceptionDAO> |
accessAllProjects(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer,
it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel,
it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel,
boolean onlyProjectsAtStartup) |
void |
accessProject(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer,
String projectName,
it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel,
it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel)
see
ProjectManager.accessProject(ProjectConsumer, String, it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel, it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel) |
void |
batchModifyRepostoryAccessCredentials(String projectName,
String serverURL,
boolean matchUsername,
String currentUsername,
String newUsername,
String newPassword)
Modifies the access credentials of (possibly) many repositories at once.
|
void |
cloneProject(String projectName,
String newProjectName)
saves project
projectName to newProject |
it.uniroma2.art.semanticturkey.project.SHACLSettings |
createEmptySHACLSettingsForm()
Returns an empty form for SHACL settings upon project creation.
|
void |
createFacetIndex()
Create the Lucene index for the facets in ALL projects
|
protected void |
createFacetIndexIfNeeded() |
void |
createProject(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer,
String projectName,
org.eclipse.rdf4j.model.IRI model,
org.eclipse.rdf4j.model.IRI lexicalizationModel,
String baseURI,
boolean historyEnabled,
boolean validationEnabled,
boolean blacklistingEnabled,
it.uniroma2.art.semanticturkey.project.RepositoryAccess repositoryAccess,
String coreRepoID,
it.uniroma2.art.semanticturkey.plugin.PluginSpecification coreRepoSailConfigurerSpecification,
String coreBackendType,
String supportRepoID,
it.uniroma2.art.semanticturkey.plugin.PluginSpecification supportRepoSailConfigurerSpecification,
String supportBackendType,
it.uniroma2.art.semanticturkey.plugin.PluginSpecification uriGeneratorSpecification,
it.uniroma2.art.semanticturkey.plugin.PluginSpecification renderingEngineSpecification,
List<it.uniroma2.art.semanticturkey.properties.Pair<it.uniroma2.art.semanticturkey.data.role.RDFResourceRole,String>> resourceMetadataAssociations,
String preloadedDataFileName,
org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat,
it.uniroma2.art.semanticturkey.ontology.TransitiveImportMethodAllowance transitiveImportAllowance,
String leftDataset,
String rightDataset,
boolean shaclEnabled,
it.uniroma2.art.semanticturkey.project.SHACLSettings shaclSettings,
boolean trivialInferenceEnabled,
boolean openAtStartup,
it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel universalAccess,
org.eclipse.rdf4j.model.Literal label,
boolean undoEnabled,
it.uniroma2.art.semanticturkey.email.EmailApplicationContext appCtx) |
void |
deleteProject(String projectName) |
void |
disconnectFromAllProjects(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer) |
void |
disconnectFromProject(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer,
String projectName)
see
ProjectManager.disconnectFromProject(ProjectConsumer, String) |
void |
exportProject(javax.servlet.http.HttpServletResponse oRes,
String projectName) |
com.fasterxml.jackson.databind.JsonNode |
getAccessStatus(String projectName) |
com.fasterxml.jackson.databind.JsonNode |
getAccessStatusMap()
Returns the access statuses for every project-consumer combination.
|
protected org.apache.commons.lang3.tuple.Pair<String,it.uniroma2.art.semanticturkey.properties.STProperties> |
getBoundComponentConfiguration(it.uniroma2.art.semanticturkey.project.Project project,
String factoryIdProp,
String configFilename) |
String |
getContextRepositoryBackend()
Returns the backend type of the context repository
|
it.uniroma2.art.semanticturkey.properties.dynamic.STPropertiesSchema |
getCustomProjectFacetsSchema()
Returns the schema of custom project facets
|
Map<String,List<String>> |
getFacetsAndValue() |
com.fasterxml.jackson.databind.JsonNode |
getLastConnectionInfo(String projectName)
returns the last connection info (user, timestamp, sessionId) of the given project.
|
Boolean |
getOpenAtStartup(String projectName) |
it.uniroma2.art.semanticturkey.settings.facets.ProjectFacets |
getProjectFacets(String projectName)
Returns the facets of a project
|
it.uniroma2.art.semanticturkey.settings.facets.ProjectFacets |
getProjectFacetsForm()
Returns an uninitialized form for project facets.
|
it.uniroma2.art.semanticturkey.project.ProjectInfo |
getProjectInfo(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer,
it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel,
it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel,
String projectName)
Returns information
|
it.uniroma2.art.semanticturkey.project.ProjectInfo |
getProjectInfoHelper(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer,
it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel,
it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel,
boolean userDependent,
boolean onlyOpen,
it.uniroma2.art.semanticturkey.project.AbstractProject absProj)
Returns metadata about a project.
|
String |
getProjectPropertyFileContent(String projectName)
this service returns a list name-value for all the property of a given project.
|
Collection<ProjectPropertyInfo> |
getProjectPropertyMap(String projectName)
this service returns a list name-value for all the property of a given project.
|
org.apache.commons.lang3.tuple.Pair<String,it.uniroma2.art.semanticturkey.properties.STProperties> |
getRenderingEngineConfiguration(String projectName)
Returns the rendering engine associated with a project together with its (optional) configuration
|
Collection<it.uniroma2.art.semanticturkey.project.RepositorySummary> |
getRepositories(String projectName,
boolean excludeLocal)
Returns the repositories associated with a (closed) project.
|
org.apache.commons.lang3.tuple.Pair<String,it.uniroma2.art.semanticturkey.properties.STProperties> |
getURIGeneratorConfiguration(String projectName)
Returns the uri generator associated with a project together with its (optional) configuration
|
void |
importProject(org.springframework.web.multipart.MultipartFile importPackage,
String newProjectName) |
Boolean |
isChangeTrackerSetUp(String projectName)
Tells whether the change tracker is set up for a closed project.
|
Boolean |
isSHACLValidationEnabled(String projectName)
Tells whether SHACL validation on commit is enabled in a closed project.
|
Boolean |
isUndoEnabled(String projectName)
Tells whether undo is enabled in a closed project.
|
List<it.uniroma2.art.semanticturkey.project.ProjectInfo> |
listProjects(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer,
it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel,
it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel,
boolean userDependent,
boolean onlyOpen) |
List<it.uniroma2.art.semanticturkey.project.ProjectInfo> |
listProjectsPerRole(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer,
String role,
it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel,
it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel,
boolean userDependent,
boolean onlyOpen)
Returns the projects where there is at least a user with the given role
|
void |
modifyRepositoryAccessCredentials(String projectName,
String repositoryID,
String newUsername,
String newPassword)
Modifies the access credentials of a repository associated with a given (closed) project.
|
PreloadedDataSummary |
preloadDataFromCatalog(String connectorId,
String datasetId)
Preloads data from a catalog.
|
PreloadedDataSummary |
preloadDataFromFile(org.springframework.web.multipart.MultipartFile preloadedData,
org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat)
Preloads data contained provided in the request body.
|
PreloadedDataSummary |
preloadDataFromURL(URL preloadedDataURL,
org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat)
Preloads data from URL.
|
Boolean |
projectExists(String projectName) |
void |
recreateFacetIndexForProject(String projectName)
Create the Lucene index for the facets in ALL projects
|
Map<String,List<it.uniroma2.art.semanticturkey.project.ProjectInfo>> |
retrieveProjects(String bagOf,
List<List<Map<String,Object>>> orQueryList,
boolean userDependent,
boolean onlyOpen,
String role) |
void |
saveProjectPropertyFileContent(String projectName,
String content) |
void |
setBlacklistingEnabled(String projectName,
boolean blacklistingEnabled)
Enables/disables blacklisting in a closed project with validation already enabled
|
void |
setCustomProjectFacetsSchema(com.fasterxml.jackson.databind.node.ObjectNode facetsSchema)
Sets the schema of custom project facets
|
void |
setOpenAtStartup(String projectName,
boolean openAtStartup)
Enables/Disables the possibility to automatically open a project when SemanticTurkey is executed
|
void |
setProjectFacets(String projectName,
com.fasterxml.jackson.databind.node.ObjectNode facets)
Sets the facets of a project
|
void |
setProjectLabels(String projectName,
Map<String,String> labels) |
void |
setProjectProperty(String projectName,
String propName,
String propValue)
This service sets the value of a property of the current project.
|
void |
setReadOnly(String projectName,
boolean readOnly) |
void |
setSHACLValidationEnabled(String projectName,
boolean shaclValidationEnabled)
Sets whether SHACL validation on commit is enabled in a closed project
|
void |
setUndoEnabled(String projectName,
boolean undoEnabled)
Sets whether undo is enabled in a closed project.
|
void |
updateAccessLevel(String consumerName,
it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel accessLevel)
Update the AccessLevel of the current project
|
void |
updateLockLevel(it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel lockLevel)
Updates the lock level of the accessed project
|
void |
updateProjectAccessLevel(String projectName,
String consumerName,
it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel accessLevel) |
void |
updateProjectLockLevel(String projectName,
it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel lockLevel)
Updates the lock level of the project with the given
projectName |
void |
updateRenderingEngineConfiguration(String projectName,
it.uniroma2.art.semanticturkey.plugin.PluginSpecification renderingEngineSpecification)
Updates the configuration of the rendering engine associated with a project
|
void |
updateUniversalAccessLevel(it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel accessLevel)
Update the universal (for every consumer) AccessLevel of the current project
|
void |
updateUniversalProjectAccessLevel(String projectName,
it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel accessLevel)
Update the universal (for every consumer) AccessLevel of the given project
|
void |
updateURIGeneratorConfiguration(String projectName,
it.uniroma2.art.semanticturkey.plugin.PluginSpecification uriGeneratorSpecification)
Updates the configuration of the uri generator associated with a project
|
addValue, checkNotLocallyDefined, createQueryBuilder, generateIRI, generateNatureSPARQLSelectPart, generateNatureSPARQLWherePart, generateResourceWithCustomConstructor, getCodaLexModeForSearchFromLexicalizationModel, getDeleteGraph, getGraphFromNature, getInitializedCodaCore, getManagedConnection, getMetadataGraph, getPlatformTransactionManager, getProject, getRepository, getRoleFromNature, getUserNamedGraphs, getWorkingGraph, instantiateSearchStrategy, instantiateSearchStrategy, parseReference, publishResourceDeleted, publishResourceDeleted, removeReifiedValue, retrieveResources, shutDownCodaCore, updateTriplePredicate
@STServiceOperation public String getContextRepositoryBackend()
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isSuperUser(false)") public void createProject(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer, String projectName, org.eclipse.rdf4j.model.IRI model, org.eclipse.rdf4j.model.IRI lexicalizationModel, String baseURI, boolean historyEnabled, boolean validationEnabled, @Optional(defaultValue="false") boolean blacklistingEnabled, it.uniroma2.art.semanticturkey.project.RepositoryAccess repositoryAccess, String coreRepoID, @Optional(defaultValue="{\"factoryId\" : \"it.uniroma2.art.semanticturkey.extension.impl.repositoryimplconfigurer.predefined.PredefinedRepositoryConfigurer\", \"configuration\" : {\"@type\" : \"it.uniroma2.art.semanticturkey.extension.impl.repositoryimplconfigurer.predefined.RDF4JNativeSailConfiguration\"}}") it.uniroma2.art.semanticturkey.plugin.PluginSpecification coreRepoSailConfigurerSpecification, @Optional String coreBackendType, String supportRepoID, @Optional(defaultValue="{\"factoryId\" : \"it.uniroma2.art.semanticturkey.extension.impl.repositoryimplconfigurer.predefined.PredefinedRepositoryConfigurer\", \"configuration\" : {\"@type\" : \"it.uniroma2.art.semanticturkey.extension.impl.repositoryimplconfigurer.predefined.RDF4JNativeSailConfiguration\"}}") it.uniroma2.art.semanticturkey.plugin.PluginSpecification supportRepoSailConfigurerSpecification, @Optional String supportBackendType, @Optional(defaultValue="{\"factoryId\" : \"it.uniroma2.art.semanticturkey.extension.impl.urigen.template.NativeTemplateBasedURIGenerator\", \"configuration\" : {\"@type\" : \"it.uniroma2.art.semanticturkey.extension.impl.urigen.template.NativeTemplateBasedURIGeneratorConfiguration\"}}") it.uniroma2.art.semanticturkey.plugin.PluginSpecification uriGeneratorSpecification, @Optional it.uniroma2.art.semanticturkey.plugin.PluginSpecification renderingEngineSpecification, @Optional @JsonSerialized List<it.uniroma2.art.semanticturkey.properties.Pair<it.uniroma2.art.semanticturkey.data.role.RDFResourceRole,String>> resourceMetadataAssociations, @Optional String preloadedDataFileName, @Optional org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat, @Optional it.uniroma2.art.semanticturkey.ontology.TransitiveImportMethodAllowance transitiveImportAllowance, @Optional String leftDataset, @Optional String rightDataset, @Optional boolean shaclEnabled, @Optional @JsonSerialized it.uniroma2.art.semanticturkey.project.SHACLSettings shaclSettings, @Optional boolean trivialInferenceEnabled, @Optional(defaultValue="false") boolean openAtStartup, @Optional it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel universalAccess, @Optional org.eclipse.rdf4j.model.Literal label, @Optional(defaultValue="false") boolean undoEnabled, @Optional it.uniroma2.art.semanticturkey.email.EmailApplicationContext appCtx) throws it.uniroma2.art.semanticturkey.exceptions.ProjectInconsistentException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.project.ForbiddenProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.DuplicatedResourceException, it.uniroma2.art.semanticturkey.exceptions.ProjectCreationException, ClassNotFoundException, it.uniroma2.art.semanticturkey.properties.WrongPropertiesException, it.uniroma2.art.semanticturkey.rbac.RBACException, it.uniroma2.art.semanticturkey.exceptions.UnsupportedModelException, it.uniroma2.art.semanticturkey.exceptions.UnsupportedLexicalizationModelException, it.uniroma2.art.semanticturkey.config.InvalidConfigurationException, it.uniroma2.art.semanticturkey.properties.STPropertyAccessException, IOException, it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException, it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException, it.uniroma2.art.semanticturkey.properties.STPropertyUpdateException, it.uniroma2.art.semanticturkey.extension.NoSuchConfigurationManager, it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException, it.uniroma2.art.semanticturkey.user.ProjectBindingException
it.uniroma2.art.semanticturkey.exceptions.ProjectInconsistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.project.ForbiddenProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.DuplicatedResourceException
it.uniroma2.art.semanticturkey.exceptions.ProjectCreationException
ClassNotFoundException
it.uniroma2.art.semanticturkey.properties.WrongPropertiesException
it.uniroma2.art.semanticturkey.rbac.RBACException
it.uniroma2.art.semanticturkey.exceptions.UnsupportedModelException
it.uniroma2.art.semanticturkey.exceptions.UnsupportedLexicalizationModelException
it.uniroma2.art.semanticturkey.config.InvalidConfigurationException
it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
IOException
it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
it.uniroma2.art.semanticturkey.properties.STPropertyUpdateException
it.uniroma2.art.semanticturkey.extension.NoSuchConfigurationManager
it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException
it.uniroma2.art.semanticturkey.user.ProjectBindingException
@STServiceOperation @PreAuthorize(value="@auth.isSuperUser(false)") public it.uniroma2.art.semanticturkey.project.SHACLSettings createEmptySHACLSettingsForm()
@STServiceOperation public Boolean projectExists(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
@STServiceOperation public List<it.uniroma2.art.semanticturkey.project.ProjectInfo> listProjects(@Optional(defaultValue="SYSTEM") it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer, @Optional(defaultValue="R") it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel, @Optional(defaultValue="NO") it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel, @Optional(defaultValue="false") boolean userDependent, @Optional(defaultValue="false") boolean onlyOpen) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException, IOException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
consumer
- requestedAccessLevel
- requestedLockLevel
- userDependent
- if true, returns only the projects accessible by the logged user (the user has a role
assigned in it)onlyOpen
- if true, return only the open projectsit.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException
IOException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
protected void createFacetIndexIfNeeded() throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException, IOException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException
IOException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
@STServiceOperation public List<it.uniroma2.art.semanticturkey.project.ProjectInfo> listProjectsPerRole(@Optional(defaultValue="SYSTEM") it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer, String role, @Optional(defaultValue="R") it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel, @Optional(defaultValue="NO") it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel, @Optional(defaultValue="false") boolean userDependent, @Optional(defaultValue="false") boolean onlyOpen) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
consumer
- role
- requestedAccessLevel
- requestedLockLevel
- onlyOpen
- it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@STServiceOperation public it.uniroma2.art.semanticturkey.project.ProjectInfo getProjectInfo(@Optional(defaultValue="SYSTEM") it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer, @Optional(defaultValue="R") it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel, @Optional(defaultValue="NO") it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel, String projectName) throws IllegalStateException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
consumer
- requestedAccessLevel
- requestedLockLevel
- projectName
- it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
IllegalStateException
public it.uniroma2.art.semanticturkey.project.ProjectInfo getProjectInfoHelper(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer, it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel, it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel, boolean userDependent, boolean onlyOpen, it.uniroma2.art.semanticturkey.project.AbstractProject absProj)
userDependent
or onlyOpen
is
true
, then this operation might return null
.consumer
- requestedAccessLevel
- requestedLockLevel
- userDependent
- if true, returns only the projects accessible by the logged user (the user has a role
assigned in it)onlyOpen
- if true, return only the open projectsabsProj
- it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@STServiceOperation @PreAuthorize(value="@auth.isAuthorized(\'pm(project)\', \'R\')") public com.fasterxml.jackson.databind.JsonNode getAccessStatusMap() throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
project
elements containing consumer
elements and a lock
element. Each project
element has a single attribute: its name
. The
consumer
elements have the following attributes:
name
: consumer's nameavailableACLLevel
: ACL given from the project to the consumeracquiredACLLevel
: The access level with which the consumer accesses the project (only
specified if the project is accessed by the consumer)lock
element has the following attributes:
availableLockLevel
: lock level exposed by the projectlockingConsumer
acquiredLockLevel
: lock level which with a consumer is locking the project (optional
as the previousit.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
IOException
@STServiceOperation @PreAuthorize(value="@auth.isAuthorized(\'pm(project)\', \'R\')") public com.fasterxml.jackson.databind.JsonNode getAccessStatus(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAuthorized(\'pm(project)\', \'U\')") public void updateAccessLevel(String consumerName, @Optional it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel accessLevel) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException, it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
consumerName
- accessLevel
- if not provided revoke any access level assigned from the project to the consumerit.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void updateProjectAccessLevel(String projectName, String consumerName, @Optional it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel accessLevel) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException, it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
projectName
- consumerName
- accessLevel
- if not provided revoke any access level assigned from the project to the consumerit.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAuthorized(\'pm(project)\', \'U\')") public void updateUniversalAccessLevel(@Optional it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel accessLevel) throws it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException, it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
accessLevel
- if not provided revoke any universal access level assigned from the projectit.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void updateUniversalProjectAccessLevel(String projectName, @Optional it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel accessLevel) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException, it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
projectName
- accessLevel
- if not provided revoke any universal access level assigned from the projectit.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAuthorized(\'pm(project)\', \'U\')") public void updateLockLevel(it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel lockLevel) throws it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException, it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
lockLevel
- it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void updateProjectLockLevel(String projectName, it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel lockLevel) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException, it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
projectName
projectName
- lockLevel
- it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void setProjectLabels(String projectName, Map<String,String> labels) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
@STServiceOperation @PreAuthorize(value="@auth.isAdmin()") public com.fasterxml.jackson.databind.JsonNode getLastConnectionInfo(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
projectName
- it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void deleteProject(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.ProjectDeletionException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException, it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, IOException
it.uniroma2.art.semanticturkey.exceptions.ProjectDeletionException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
IOException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void accessProject(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer, String projectName, it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel, it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.project.ForbiddenProjectAccessException
ProjectManager.accessProject(ProjectConsumer, String, it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel, it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel)
consumer
- projectName
- requestedAccessLevel
- requestedLockLevel
- it.uniroma2.art.semanticturkey.project.ForbiddenProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
IOException
it.uniroma2.art.semanticturkey.user.ProjectBindingException
it.uniroma2.art.semanticturkey.rbac.RBACException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public Map<String,it.uniroma2.art.semanticturkey.exceptions.ExceptionDAO> accessAllProjects(@Optional(defaultValue="SYSTEM") it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer, @Optional(defaultValue="RW") it.uniroma2.art.semanticturkey.project.ProjectACL.AccessLevel requestedAccessLevel, @Optional(defaultValue="R") it.uniroma2.art.semanticturkey.project.ProjectACL.LockLevel requestedLockLevel, @Optional(defaultValue="false") boolean onlyProjectsAtStartup) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void disconnectFromAllProjects(@Optional(defaultValue="SYSTEM") it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void disconnectFromProject(it.uniroma2.art.semanticturkey.project.ProjectConsumer consumer, String projectName)
ProjectManager.disconnectFromProject(ProjectConsumer, String)
consumer
- projectName
- @STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void cloneProject(String projectName, String newProjectName) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.DuplicatedResourceException, IOException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
projectName
to newProject
projectName
- it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
IOException
it.uniroma2.art.semanticturkey.exceptions.DuplicatedResourceException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void exportProject(javax.servlet.http.HttpServletResponse oRes, @RequestParam(value="projectName") String projectName) throws IOException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
IOException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void importProject(org.springframework.web.multipart.MultipartFile importPackage, String newProjectName) throws IOException, it.uniroma2.art.semanticturkey.exceptions.ProjectCreationException, it.uniroma2.art.semanticturkey.exceptions.DuplicatedResourceException, it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
importPackage
- newProjectName
- it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
it.uniroma2.art.semanticturkey.exceptions.ProjectInconsistentException
it.uniroma2.art.semanticturkey.exceptions.DuplicatedResourceException
it.uniroma2.art.semanticturkey.exceptions.ProjectCreationException
IOException
it.uniroma2.art.semanticturkey.user.ProjectBindingException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
@STServiceOperation @PreAuthorize(value="@auth.isAuthorized(\'pm(project)\', \'R\')") public Collection<ProjectPropertyInfo> getProjectPropertyMap(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, IOException
propertyTag
with attributes propNameAttr
for property name andprojectName
- (optional)the project queried for propertiesit.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
IOException
@STServiceOperation @PreAuthorize(value="@auth.isAdmin()") public String getProjectPropertyFileContent(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, IOException
propertyTag
with attributes propNameAttr
for property name andprojectName
- (optional)the project queried for propertiesit.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
IOException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void saveProjectPropertyFileContent(String projectName, String content) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, IOException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
IOException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAuthorizedInProject(\'pm(project)\', \'U\', #projectName)") public void setProjectProperty(String projectName, String propName, @Optional String propValue) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException, it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
propName
- propValue
- it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ReservedPropertyUpdateException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAuthorizedInProject(\'pm(project)\', \'U\', #projectName)") public void setProjectFacets(String projectName, com.fasterxml.jackson.databind.node.ObjectNode facets) throws IllegalStateException, it.uniroma2.art.semanticturkey.extension.NoSuchSettingsManager, it.uniroma2.art.semanticturkey.properties.STPropertyUpdateException, it.uniroma2.art.semanticturkey.properties.WrongPropertiesException, it.uniroma2.art.semanticturkey.properties.STPropertyAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, IOException, it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException
projectName
- facets
- it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
it.uniroma2.art.semanticturkey.properties.WrongPropertiesException
it.uniroma2.art.semanticturkey.properties.STPropertyUpdateException
it.uniroma2.art.semanticturkey.extension.NoSuchSettingsManager
IllegalStateException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
IOException
it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException
@STServiceOperation @PreAuthorize(value="@auth.isAdmin()") public it.uniroma2.art.semanticturkey.settings.facets.ProjectFacets getProjectFacets(String projectName) throws IllegalStateException, it.uniroma2.art.semanticturkey.properties.STPropertyAccessException, it.uniroma2.art.semanticturkey.extension.NoSuchSettingsManager, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
projectName
- it.uniroma2.art.semanticturkey.extension.NoSuchSettingsManager
it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
IllegalStateException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@STServiceOperation public it.uniroma2.art.semanticturkey.settings.facets.ProjectFacets getProjectFacetsForm() throws IllegalStateException, it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
getProjectFacets(String)
,
this operation doesn't accept a project name as argument nor does it look at the current projectIllegalStateException
it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
it.uniroma2.art.semanticturkey.extension.NoSuchSettingsManager
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
@STServiceOperation public it.uniroma2.art.semanticturkey.properties.dynamic.STPropertiesSchema getCustomProjectFacetsSchema() throws IllegalStateException, it.uniroma2.art.semanticturkey.properties.STPropertyAccessException, it.uniroma2.art.semanticturkey.extension.NoSuchSettingsManager
it.uniroma2.art.semanticturkey.extension.NoSuchSettingsManager
it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
IllegalStateException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void setCustomProjectFacetsSchema(com.fasterxml.jackson.databind.node.ObjectNode facetsSchema) throws IllegalStateException, it.uniroma2.art.semanticturkey.extension.NoSuchSettingsManager, it.uniroma2.art.semanticturkey.properties.STPropertyUpdateException, it.uniroma2.art.semanticturkey.properties.WrongPropertiesException, it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
facetsSchema
- IllegalStateException
it.uniroma2.art.semanticturkey.extension.NoSuchSettingsManager
it.uniroma2.art.semanticturkey.properties.STPropertyUpdateException
it.uniroma2.art.semanticturkey.properties.WrongPropertiesException
it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
@STServiceOperation @PreAuthorize(value="@auth.isAdmin()") public Collection<it.uniroma2.art.semanticturkey.project.RepositorySummary> getRepositories(String projectName, @Optional(defaultValue="false") boolean excludeLocal) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
projectName
- excludeLocal
- it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void modifyRepositoryAccessCredentials(String projectName, String repositoryID, @Optional String newUsername, @Optional String newPassword) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
null
, thus
indicating an unprotected repository.projectName
- repositoryID
- newUsername
- newPassword
- it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void batchModifyRepostoryAccessCredentials(String projectName, String serverURL, @Optional(defaultValue="false") boolean matchUsername, @Optional String currentUsername, @Optional String newUsername, @Optional String newPassword) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
serverURL
and currentUsername
(only if
matchUsername
is true
). When username matching is active, a null
value for currentUsername
indicates repositories with no associated username.projectName
- serverURL
- matchUsername
- currentUsername
- newUsername
- newPassword
- it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isSuperUser(false)") public PreloadedDataSummary preloadDataFromFile(org.springframework.web.multipart.MultipartFile preloadedData, org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat) throws IOException, org.eclipse.rdf4j.rio.RDFParseException, org.eclipse.rdf4j.repository.RepositoryException, it.uniroma2.art.lime.profiler.ProfilerException, it.uniroma2.art.maple.orchestration.AssessmentException, it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
preloadedData
- preloadedDataFormat
- IOException
it.uniroma2.art.lime.profiler.ProfilerException
org.eclipse.rdf4j.repository.RepositoryException
org.eclipse.rdf4j.rio.RDFParseException
it.uniroma2.art.maple.orchestration.AssessmentException
it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isSuperUser(false)") public PreloadedDataSummary preloadDataFromURL(URL preloadedDataURL, @Optional org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat) throws IOException, org.eclipse.rdf4j.rio.RDFParseException, org.eclipse.rdf4j.repository.RepositoryException, it.uniroma2.art.lime.profiler.ProfilerException, it.uniroma2.art.maple.orchestration.AssessmentException, it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
preloadedDataURL
- preloadedDataFormat
- IOException
FileNotFoundException
it.uniroma2.art.lime.profiler.ProfilerException
org.eclipse.rdf4j.repository.RepositoryException
org.eclipse.rdf4j.rio.RDFParseException
it.uniroma2.art.maple.orchestration.AssessmentException
it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isSuperUser(false)") public PreloadedDataSummary preloadDataFromCatalog(String connectorId, String datasetId) throws IOException, org.eclipse.rdf4j.rio.RDFParseException, org.eclipse.rdf4j.repository.RepositoryException, it.uniroma2.art.lime.profiler.ProfilerException, it.uniroma2.art.maple.orchestration.AssessmentException, it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
connectorId
- datasetId
- IOException
it.uniroma2.art.lime.profiler.ProfilerException
org.eclipse.rdf4j.repository.RepositoryException
org.eclipse.rdf4j.rio.RDFParseException
it.uniroma2.art.maple.orchestration.AssessmentException
it.uniroma2.art.semanticturkey.properties.STPropertyAccessException
@STServiceOperation public Map<String,List<String>> getFacetsAndValue() throws IOException
IOException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void createFacetIndex() throws it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, IOException
it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
IOException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void recreateFacetIndexForProject(String projectName) throws it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, IOException
it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
IOException
@STServiceOperation(method=POST) public Map<String,List<it.uniroma2.art.semanticturkey.project.ProjectInfo>> retrieveProjects(@Optional String bagOf, @Optional @JsonSerialized List<List<Map<String,Object>>> orQueryList, @Optional(defaultValue="false") boolean userDependent, @Optional(defaultValue="false") boolean onlyOpen, @Optional String role) throws IOException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException
bagOf
- orQueryList
- userDependent
- onlyOpen
- role
- if provided, check if there's at least a user with such role (similar to listProjectsPerRole)IOException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.properties.PropertyNotFoundException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void setBlacklistingEnabled(String projectName, boolean blacklistingEnabled) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
projectName
- blacklistingEnabled
- it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void setSHACLValidationEnabled(String projectName, boolean shaclValidationEnabled) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
projectName
- shaclValidationEnabled
- it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
@STServiceOperation @PreAuthorize(value="@auth.isAdmin()") public Boolean isSHACLValidationEnabled(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
projectName
- it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void setUndoEnabled(String projectName, boolean undoEnabled) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
isChangeTrackerSetUp(String)
projectName
- undoEnabled
- it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
@STServiceOperation @PreAuthorize(value="@auth.isAdmin()") public Boolean isUndoEnabled(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
projectName
- it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void setReadOnly(String projectName, boolean readOnly) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
@STServiceOperation @PreAuthorize(value="@auth.isAdmin()") public Boolean isChangeTrackerSetUp(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
projectName
- it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
@STServiceOperation(method=POST) @PreAuthorize(value="@auth.isAdmin()") public void setOpenAtStartup(String projectName, boolean openAtStartup) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
projectName
- openAtStartup
- it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.ProjectUpdateException
@STServiceOperation @PreAuthorize(value="@auth.isAdmin()") public Boolean getOpenAtStartup(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException, it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@PreAuthorize(value="@auth.isAdmin()") @STServiceOperation public org.apache.commons.lang3.tuple.Pair<String,it.uniroma2.art.semanticturkey.properties.STProperties> getRenderingEngineConfiguration(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
projectName
- it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@PreAuthorize(value="@auth.isAdmin()") @STServiceOperation(method=POST) public void updateRenderingEngineConfiguration(String projectName, it.uniroma2.art.semanticturkey.plugin.PluginSpecification renderingEngineSpecification) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
projectName
- renderingEngineSpecification
- it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@PreAuthorize(value="@auth.isAdmin()") @STServiceOperation public org.apache.commons.lang3.tuple.Pair<String,it.uniroma2.art.semanticturkey.properties.STProperties> getURIGeneratorConfiguration(String projectName) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
projectName
- it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
@PreAuthorize(value="@auth.isAdmin()") @STServiceOperation(method=POST) public void updateURIGeneratorConfiguration(String projectName, it.uniroma2.art.semanticturkey.plugin.PluginSpecification uriGeneratorSpecification) throws it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException, it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException, it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
projectName
- uriGeneratorSpecification
- it.uniroma2.art.semanticturkey.exceptions.ProjectInexistentException
it.uniroma2.art.semanticturkey.exceptions.InvalidProjectNameException
it.uniroma2.art.semanticturkey.exceptions.ProjectAccessException
protected org.apache.commons.lang3.tuple.Pair<String,it.uniroma2.art.semanticturkey.properties.STProperties> getBoundComponentConfiguration(it.uniroma2.art.semanticturkey.project.Project project, String factoryIdProp, String configFilename) throws RuntimeException
RuntimeException
Copyright © 2023 ART Group, University of Rome, Tor Vergata. All rights reserved.