org.ow2.dragon.api.service.metadata
Interface MetadataService

All Known Implementing Classes:
MetadataServiceImpl

@Transactional
public interface MetadataService

Author:
ofabre - eBM WebSourcing

Method Summary
 void cleanupRepository()
           
 void deleteMetadata(java.lang.String metadataId)
           
 java.lang.String getRepositoryRootPath()
           
 SimpleFile loadMetadata(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, java.lang.String fileCcontent)
           
 SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type, java.lang.String fileCcontent, 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)
           
 

Method Detail

deleteMetadata

void deleteMetadata(java.lang.String metadataId)

loadMetadataContentAsBytes

@Transactional(readOnly=true)
byte[] loadMetadataContentAsBytes(java.lang.String id)

loadMetadataContentAsInputStream

@Transactional(readOnly=true)
java.io.InputStream loadMetadataContentAsInputStream(java.lang.String id)
                                                     throws MetadataServiceException
Throws:
MetadataServiceException

loadMetadata

@Transactional(readOnly=true)
SimpleFile loadMetadata(java.lang.String id)

storeMetadata

SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                         byte[] content)
                         throws MetadataServiceException
Throws:
MetadataServiceException

storeMetadata

SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                         java.lang.String fileCcontent)
                         throws MetadataServiceException
Throws:
MetadataServiceException

storeMetadata

SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                         java.net.URI contentURI)
                         throws MetadataServiceException
Throws:
MetadataServiceException

storeMetadataAndIndexContent

SimpleFile storeMetadataAndIndexContent(org.ow2.dragon.util.ContentType type,
                                        byte[] content)
                                        throws MetadataServiceException
Throws:
MetadataServiceException

storeMetadataAndIndexContent

SimpleFile storeMetadataAndIndexContent(byte[] content)
                                        throws MetadataServiceException
Throws:
MetadataServiceException

storeMetadataAndIndexContent

SimpleFile storeMetadataAndIndexContent(java.lang.String mimetype,
                                        byte[] docContent)
                                        throws MetadataServiceException
Throws:
MetadataServiceException

storeMetadata

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

storeMetadata

SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                         java.lang.String fileCcontent,
                         java.lang.String fileName)
                         throws MetadataServiceException
Throws:
MetadataServiceException

storeMetadata

SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                         java.net.URI contentURI,
                         java.lang.String fileName)
                         throws MetadataServiceException
Throws:
MetadataServiceException

storeMetadata

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

storeMetadata

SimpleFile storeMetadata(org.ow2.dragon.util.ContentType type,
                         java.lang.String fileContent,
                         java.lang.String fileName,
                         org.ow2.dragon.util.UDDIUseType useType)
                         throws MetadataServiceException
Throws:
MetadataServiceException

storeMetadataAndIndexContent

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

storeMetadataAndIndexContent

SimpleFile storeMetadataAndIndexContent(byte[] content,
                                        java.lang.String fileName)
                                        throws MetadataServiceException
Throws:
MetadataServiceException

storeMetadataAndIndexContent

SimpleFile storeMetadataAndIndexContent(java.lang.String mimetype,
                                        byte[] docContent,
                                        java.lang.String fileName)
                                        throws MetadataServiceException
Throws:
MetadataServiceException

cleanupRepository

void cleanupRepository()

getRepositoryRootPath

@Transactional(readOnly=true)
java.lang.String getRepositoryRootPath()


Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.