Package org.saidone.service
Class MongoNodeService
java.lang.Object
org.saidone.component.BaseComponent
org.saidone.service.MongoNodeService
- All Implemented Interfaces:
NodeService
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Default
NodeService
implementation that persists node metadata using
a MongoNodeRepositoryImpl
. It throws
NodeNotFoundOnVaultException
when a requested node is not present in
the repository.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteById
(String nodeId) Deletes the node wrapper identified by the given ID.Retrieves the stored node wrapper by its identifier.void
save
(NodeWrapper nodeWrapper) Saves the given node wrapper to the repository.Methods inherited from class org.saidone.component.BaseComponent
init, setApplicationContext, shutDown, stop
-
Constructor Details
-
MongoNodeService
public MongoNodeService()
-
-
Method Details
-
save
Saves the given node wrapper to the repository.- Specified by:
save
in interfaceNodeService
- Parameters:
nodeWrapper
- node metadata to persist
-
findById
Retrieves the stored node wrapper by its identifier.- Specified by:
findById
in interfaceNodeService
- Parameters:
nodeId
- the Alfresco node identifier- Returns:
- the stored
NodeWrapper
- Throws:
NodeNotFoundOnVaultException
- if the node does not exist
-
deleteById
Deletes the node wrapper identified by the given ID.- Specified by:
deleteById
in interfaceNodeService
- Parameters:
nodeId
- the Alfresco node identifier
-