org.wso2.carbon.registry.ws.api.utils
Class CommonUtil
java.lang.Object
org.wso2.carbon.registry.ws.api.utils.CommonUtil
public class CommonUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonUtil
public CommonUtil()
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.