org.wso2.carbon.registry.ws.api.utils
Class CommonUtil

java.lang.Object
  extended by org.wso2.carbon.registry.ws.api.utils.CommonUtil

public class CommonUtil
extends Object


Constructor Summary
CommonUtil()
           
 
Method Summary
static Map createMap(String[] key, String[] value)
           
static WSTaggedResourcePath[] exchangeTaggedResourcepath(TaggedResourcePath[] registry)
           
static TaggedResourcePath[] exchangeWSResourcePath(WSTaggedResourcePath[] wsrpath)
           
static RegistryService getRegistryService()
           
static byte[] makeBytesFromDataHandler(WSResource wsResource)
           
static javax.activation.DataHandler makeDataHandler(Resource resource, File tempFile)
           
static WSCollection newCollectiontoWSCollection(Collection collection)
           
static WSResource newResourcetoWSResource(Resource resource)
           
static WSComment RegistryCommenttoWSComment(Comment comment)
           
static void setRegistryService(RegistryService service)
           
static WSAssociation transformAssociationToWSAssociation(Association asso)
           
static WSCollection transformCollectiontoWSCollection(Collection collection, javax.activation.DataHandler dataHandler)
           
static WSLogEntry transformLogEntryToWSLogEntry(LogEntry logEntry)
           
static WSResource transformResourceToWSResource(Resource resource, javax.activation.DataHandler dataHandler)
           
static WSTag transformTagToWSTag(Tag tag)
           
static Collection transformWSCollectiontoCollection(WSResource wsCollection, Object content)
           
static Resource transformWSResourcetoResource(WSResource wsResource, Object content)
           
static Comment WSCommenttoRegistryComment(WSComment wsComment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonUtil

public CommonUtil()
Method Detail

setRegistryService

public static void setRegistryService(RegistryService service)

getRegistryService

public static RegistryService getRegistryService()

createMap

public static Map createMap(String[] key,
                            String[] value)
                     throws RegistryException
Throws:
RegistryException

transformWSResourcetoResource

public static Resource transformWSResourcetoResource(WSResource wsResource,
                                                     Object content)
                                              throws RegistryException
Throws:
RegistryException

transformWSCollectiontoCollection

public static Collection transformWSCollectiontoCollection(WSResource wsCollection,
                                                           Object content)
                                                    throws RegistryException
Throws:
RegistryException

transformCollectiontoWSCollection

public static WSCollection transformCollectiontoWSCollection(Collection collection,
                                                             javax.activation.DataHandler dataHandler)

transformResourceToWSResource

public static WSResource transformResourceToWSResource(Resource resource,
                                                       javax.activation.DataHandler dataHandler)

makeBytesFromDataHandler

public static byte[] makeBytesFromDataHandler(WSResource wsResource)
                                       throws IOException
Throws:
IOException

makeDataHandler

public static javax.activation.DataHandler makeDataHandler(Resource resource,
                                                           File tempFile)
                                                    throws IOException,
                                                           RegistryException
Throws:
IOException
RegistryException

newResourcetoWSResource

public static WSResource newResourcetoWSResource(Resource resource)

newCollectiontoWSCollection

public static WSCollection newCollectiontoWSCollection(Collection collection)

exchangeTaggedResourcepath

public static WSTaggedResourcePath[] exchangeTaggedResourcepath(TaggedResourcePath[] registry)

exchangeWSResourcePath

public static TaggedResourcePath[] exchangeWSResourcePath(WSTaggedResourcePath[] wsrpath)

RegistryCommenttoWSComment

public static WSComment RegistryCommenttoWSComment(Comment comment)

WSCommenttoRegistryComment

public static Comment WSCommenttoRegistryComment(WSComment wsComment)

transformAssociationToWSAssociation

public static WSAssociation transformAssociationToWSAssociation(Association asso)

transformLogEntryToWSLogEntry

public static WSLogEntry transformLogEntryToWSLogEntry(LogEntry logEntry)

transformTagToWSTag

public static WSTag transformTagToWSTag(Tag tag)


Copyright © 2011 WSO2 Inc. All Rights Reserved.