org.hudsonci.maven.plugin.documents.internal
Class DocumentManagerImpl
java.lang.Object
org.hudsonci.maven.plugin.documents.internal.DocumentManagerImpl
- All Implemented Interfaces:
- DocumentManager
@Named
@Singleton
public class DocumentManagerImpl
- extends Object
- implements DocumentManager
Default implementation of DocumentManager.
- Since:
- 2.1.0
- Author:
- Jason Dillon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentManagerImpl
@Inject
public DocumentManagerImpl(DocumentStore store,
SecurityService security)
getDocuments
public Collection<DocumentDTO> getDocuments(boolean summary)
- Specified by:
getDocuments in interface DocumentManager
getDocuments
public Collection<DocumentDTO> getDocuments(DocumentTypeDTO type,
boolean summary)
- Specified by:
getDocuments in interface DocumentManager
addDocument
public DocumentDTO addDocument(DocumentDTO document)
- Description copied from interface:
DocumentManager
- Add a document to the document store.
- Specified by:
addDocument in interface DocumentManager
- Parameters:
document - the document to add
- Returns:
- a summary of the document added
getDocument
public DocumentDTO getDocument(String id,
boolean summary)
- Specified by:
getDocument in interface DocumentManager
updateDocument
public DocumentDTO updateDocument(DocumentDTO document)
- Description copied from interface:
DocumentManager
- Update the specified document by id.
- Specified by:
updateDocument in interface DocumentManager
- Returns:
- a summary of the updated document
removeDocument
public void removeDocument(String id)
- Specified by:
removeDocument in interface DocumentManager
Copyright © 2004-2011 Hudson. All Rights Reserved.