org.ow2.dragon.service.metadata
Class MetadataServiceImpl

java.lang.Object
  extended by org.ow2.dragon.service.metadata.MetadataServiceImpl
All Implemented Interfaces:
MetadataService

public class MetadataServiceImpl
extends java.lang.Object
implements MetadataService

Author:
ofabre - eBM WebSourcing

Constructor Summary
MetadataServiceImpl(java.lang.String repositoryRoot, SimpleFileDAO simpleFileDAO, java.lang.String repoType)
           
 
Method Summary
 void cleanupRepository()
           
 void deleteMetadata(java.lang.String metadataId)
           
 java.lang.String getRepositoryRootPath()
           
 SimpleFileDAO getSimpleFileDAO()
           
 SimpleFile loadMetadata(java.lang.String id)
           
 byte[] loadMetadataContent(java.lang.String id)
           
 byte[] loadMetadataContentAsBytes(java.lang.String id)
           
 java.io.InputStream loadMetadataContentAsInputStream(java.lang.String id)
           
 SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type, byte[] content)
           
 SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type, byte[] content, java.lang.String fileName)
           
 SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type, byte[] content, java.lang.String fileName, org.ow2.dragon.util.UDDIUseType useType)
           
 SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type, java.lang.String fileContent)
           
 SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type, java.lang.String fileContent, java.lang.String fileName)
           
 SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type, java.lang.String fileContent, java.lang.String fileName, org.ow2.dragon.util.UDDIUseType useType)
           
 SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type, java.net.URI contentURI)
           
 SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type, java.net.URI contentURI, java.lang.String fileName)
           
 SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type, java.net.URI contentURI, java.lang.String fileName, org.ow2.dragon.util.UDDIUseType useType)
           
 SimpleFile storeMetadataAndIndexContent(byte[] content)
           
 SimpleFile storeMetadataAndIndexContent(byte[] content, java.lang.String fileName)
           
 SimpleFile storeMetadataAndIndexContent(org.ow2.dragon.util.ContentType type, byte[] content)
           
 SimpleFile storeMetadataAndIndexContent(org.ow2.dragon.util.ContentType type, byte[] content, java.lang.String fileName)
           
 SimpleFile storeMetadataAndIndexContent(java.lang.String mimetype, byte[] docContent)
           
 SimpleFile storeMetadataAndIndexContent(java.lang.String mimetype, byte[] docContent, java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataServiceImpl

public MetadataServiceImpl(java.lang.String repositoryRoot,
                           SimpleFileDAO simpleFileDAO,
                           java.lang.String repoType)
                    throws java.io.IOException,
                           MetadataServiceException
Throws:
java.io.IOException
MetadataServiceException
Method Detail

cleanupRepository

public void cleanupRepository()
Specified by:
cleanupRepository in interface MetadataService

deleteMetadata

public void deleteMetadata(java.lang.String metadataId)
Specified by:
deleteMetadata in interface MetadataService

getSimpleFileDAO

public SimpleFileDAO getSimpleFileDAO()

loadMetadataContent

public byte[] loadMetadataContent(java.lang.String id)

loadMetadataContentAsBytes

public byte[] loadMetadataContentAsBytes(java.lang.String id)
Specified by:
loadMetadataContentAsBytes in interface MetadataService

loadMetadataContentAsInputStream

public java.io.InputStream loadMetadataContentAsInputStream(java.lang.String id)
                                                     throws MetadataServiceException
Specified by:
loadMetadataContentAsInputStream in interface MetadataService
Throws:
MetadataServiceException

storeMetadataAndIndexContent

public SimpleFile storeMetadataAndIndexContent(org.ow2.dragon.util.ContentType type,
                                               byte[] content,
                                               java.lang.String fileName)
                                        throws MetadataServiceException
Specified by:
storeMetadataAndIndexContent in interface MetadataService
Throws:
MetadataServiceException

storeMetadataAndIndexContent

public SimpleFile storeMetadataAndIndexContent(byte[] content,
                                               java.lang.String fileName)
                                        throws MetadataServiceException
Specified by:
storeMetadataAndIndexContent in interface MetadataService
Throws:
MetadataServiceException

storeMetadata

public SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                                java.net.URI contentURI,
                                java.lang.String fileName)
                         throws MetadataServiceException
Specified by:
storeMetadata in interface MetadataService
Throws:
MetadataServiceException

storeMetadata

public SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                                java.net.URI contentURI,
                                java.lang.String fileName,
                                org.ow2.dragon.util.UDDIUseType useType)
                         throws MetadataServiceException
Specified by:
storeMetadata in interface MetadataService
Throws:
MetadataServiceException

storeMetadata

public SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                                java.lang.String fileContent,
                                java.lang.String fileName)
                         throws MetadataServiceException
Specified by:
storeMetadata in interface MetadataService
Throws:
MetadataServiceException

storeMetadata

public SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                                java.lang.String fileContent,
                                java.lang.String fileName,
                                org.ow2.dragon.util.UDDIUseType useType)
                         throws MetadataServiceException
Specified by:
storeMetadata in interface MetadataService
Throws:
MetadataServiceException

loadMetadata

public SimpleFile loadMetadata(java.lang.String id)
Specified by:
loadMetadata in interface MetadataService

storeMetadataAndIndexContent

public SimpleFile storeMetadataAndIndexContent(java.lang.String mimetype,
                                               byte[] docContent,
                                               java.lang.String fileName)
                                        throws MetadataServiceException
Specified by:
storeMetadataAndIndexContent in interface MetadataService
Throws:
MetadataServiceException

storeMetadata

public SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                                byte[] content)
                         throws MetadataServiceException
Specified by:
storeMetadata in interface MetadataService
Throws:
MetadataServiceException

storeMetadata

public SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                                java.lang.String fileContent)
                         throws MetadataServiceException
Specified by:
storeMetadata in interface MetadataService
Throws:
MetadataServiceException

storeMetadata

public SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                                java.net.URI contentURI)
                         throws MetadataServiceException
Specified by:
storeMetadata in interface MetadataService
Throws:
MetadataServiceException

storeMetadataAndIndexContent

public SimpleFile storeMetadataAndIndexContent(byte[] content)
                                        throws MetadataServiceException
Specified by:
storeMetadataAndIndexContent in interface MetadataService
Throws:
MetadataServiceException

storeMetadataAndIndexContent

public SimpleFile storeMetadataAndIndexContent(org.ow2.dragon.util.ContentType type,
                                               byte[] content)
                                        throws MetadataServiceException
Specified by:
storeMetadataAndIndexContent in interface MetadataService
Throws:
MetadataServiceException

storeMetadataAndIndexContent

public SimpleFile storeMetadataAndIndexContent(java.lang.String mimetype,
                                               byte[] docContent)
                                        throws MetadataServiceException
Specified by:
storeMetadataAndIndexContent in interface MetadataService
Throws:
MetadataServiceException

storeMetadata

public SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                                byte[] content,
                                java.lang.String fileName)
                         throws MetadataServiceException
Specified by:
storeMetadata in interface MetadataService
Throws:
MetadataServiceException

storeMetadata

public SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                                byte[] content,
                                java.lang.String fileName,
                                org.ow2.dragon.util.UDDIUseType useType)
                         throws MetadataServiceException
Throws:
MetadataServiceException

getRepositoryRootPath

public java.lang.String getRepositoryRootPath()
Specified by:
getRepositoryRootPath in interface MetadataService


Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.