Class Item2NodeConverter
- java.lang.Object
-
- org.gcube.data.access.storagehub.handlers.items.Item2NodeConverter
-
@Singleton public class Item2NodeConverter extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classItem2NodeConverter.Values
-
Constructor Summary
Constructors Constructor Description Item2NodeConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends org.gcube.common.storagehub.model.items.RootItem>
javax.jcr.NodegetNode(javax.jcr.Node parentNode, T item)static Item2NodeConverter.ValuesgetObjectValue(Class returnType, Object value)<F extends org.gcube.common.storagehub.model.items.AbstractFileItem>
voidreplaceContent(javax.jcr.Node node, F item, org.gcube.common.storagehub.model.types.ItemAction action)voidupdateDescription(javax.jcr.Node node, String description, String login)voidupdateHidden(javax.jcr.Node node, Boolean hidden, String login)<I extends org.gcube.common.storagehub.model.items.Item>
voidupdateMetadataNode(javax.jcr.Node node, Map<String,Object> meta, String login)voidupdateOwner(javax.jcr.Node node, String owner)voidupdateOwnerOnSubTree(javax.jcr.Node node, String owner)
-
-
-
Method Detail
-
getNode
public <T extends org.gcube.common.storagehub.model.items.RootItem> javax.jcr.Node getNode(javax.jcr.Node parentNode, T item)
-
getObjectValue
public static Item2NodeConverter.Values getObjectValue(Class returnType, Object value) throws Exception
- Throws:
Exception
-
replaceContent
public <F extends org.gcube.common.storagehub.model.items.AbstractFileItem> void replaceContent(javax.jcr.Node node, F item, org.gcube.common.storagehub.model.types.ItemAction action)
-
updateHidden
public void updateHidden(javax.jcr.Node node, Boolean hidden, String login) throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
updateDescription
public void updateDescription(javax.jcr.Node node, String description, String login) throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
updateOwnerOnSubTree
public void updateOwnerOnSubTree(javax.jcr.Node node, String owner) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.BackendGenericError- Throws:
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.BackendGenericError
-
updateOwner
public void updateOwner(javax.jcr.Node node, String owner) throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
-