Class ProjectUserBindingsRepoHelper
java.lang.Object
it.uniroma2.art.semanticturkey.user.ProjectUserBindingsRepoHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
encodeProjectName
(AbstractProject project) void
insertBinding
(ProjectUserBinding puBinding) Insert the given ProjectUserBinding into the repositoryReturns the binding about the given user and projectvoid
loadBindingDetails
(File bindingDetailsFile) void
saveBindingDetailsFile
(File file) Serializes the binding in the given filevoid
-
Field Details
-
logger
protected static org.slf4j.Logger logger
-
-
Constructor Details
-
ProjectUserBindingsRepoHelper
public ProjectUserBindingsRepoHelper()
-
-
Method Details
-
loadBindingDetails
public void loadBindingDetails(File bindingDetailsFile) throws org.eclipse.rdf4j.rio.RDFParseException, org.eclipse.rdf4j.repository.RepositoryException, IOException - Throws:
org.eclipse.rdf4j.rio.RDFParseException
org.eclipse.rdf4j.repository.RepositoryException
IOException
-
insertBinding
Insert the given ProjectUserBinding into the repository- Parameters:
puBinding
-
-
listPUBindings
Returns the binding about the given user and project- Returns:
-
saveBindingDetailsFile
Serializes the binding in the given file- Parameters:
file
-- Throws:
IOException
-
shutDownRepository
public void shutDownRepository() -
encodeProjectName
-