public class CommonUtil extends Object
Constructor and Description |
---|
CommonUtil() |
Modifier and Type | Method and Description |
---|---|
static Map |
createMap(String[] key,
String[] value) |
static WSTaggedResourcePath[] |
exchangeTaggedResourcepath(org.wso2.carbon.registry.core.TaggedResourcePath[] registry) |
static org.wso2.carbon.registry.core.TaggedResourcePath[] |
exchangeWSResourcePath(WSTaggedResourcePath[] wsrpath) |
static byte[] |
makeBytesFromDataHandler(WSResource wsResource) |
static DataHandler |
makeDataHandler(org.wso2.carbon.registry.core.Resource resource,
File tempFile) |
static WSCollection |
newCollectiontoWSCollection(org.wso2.carbon.registry.core.Collection collection) |
static WSResource |
newResourcetoWSResource(org.wso2.carbon.registry.core.Resource resource) |
static WSComment |
RegistryCommenttoWSComment(org.wso2.carbon.registry.core.Comment comment) |
static WSAssociation |
transformAssociationToWSAssociation(org.wso2.carbon.registry.core.Association asso) |
static WSCollection |
transformCollectiontoWSCollection(org.wso2.carbon.registry.core.Collection collection,
DataHandler dataHandler) |
static WSLogEntry |
transformLogEntryToWSLogEntry(org.wso2.carbon.registry.core.LogEntry logEntry) |
static WSResource |
transformResourceToWSResource(org.wso2.carbon.registry.core.Resource resource,
DataHandler dataHandler) |
static WSTag |
transformTagToWSTag(org.wso2.carbon.registry.core.Tag tag) |
static org.wso2.carbon.registry.core.Collection |
transformWSCollectiontoCollection(WSResource wsCollection,
Object content) |
static org.wso2.carbon.registry.core.Resource |
transformWSResourcetoResource(WSResource wsResource,
Object content) |
static org.wso2.carbon.registry.core.Comment |
WSCommenttoRegistryComment(WSComment wsComment) |
public static Map createMap(String[] key, String[] value) throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public static org.wso2.carbon.registry.core.Resource transformWSResourcetoResource(WSResource wsResource, Object content) throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public static org.wso2.carbon.registry.core.Collection transformWSCollectiontoCollection(WSResource wsCollection, Object content) throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public static WSCollection transformCollectiontoWSCollection(org.wso2.carbon.registry.core.Collection collection, DataHandler dataHandler)
public static WSResource transformResourceToWSResource(org.wso2.carbon.registry.core.Resource resource, DataHandler dataHandler)
public static byte[] makeBytesFromDataHandler(WSResource wsResource) throws IOException
IOException
public static DataHandler makeDataHandler(org.wso2.carbon.registry.core.Resource resource, File tempFile) throws IOException, org.wso2.carbon.registry.core.exceptions.RegistryException
IOException
org.wso2.carbon.registry.core.exceptions.RegistryException
public static WSResource newResourcetoWSResource(org.wso2.carbon.registry.core.Resource resource)
public static WSCollection newCollectiontoWSCollection(org.wso2.carbon.registry.core.Collection collection)
public static WSTaggedResourcePath[] exchangeTaggedResourcepath(org.wso2.carbon.registry.core.TaggedResourcePath[] registry)
public static org.wso2.carbon.registry.core.TaggedResourcePath[] exchangeWSResourcePath(WSTaggedResourcePath[] wsrpath)
public static WSComment RegistryCommenttoWSComment(org.wso2.carbon.registry.core.Comment comment)
public static org.wso2.carbon.registry.core.Comment WSCommenttoRegistryComment(WSComment wsComment)
public static WSAssociation transformAssociationToWSAssociation(org.wso2.carbon.registry.core.Association asso)
public static WSLogEntry transformLogEntryToWSLogEntry(org.wso2.carbon.registry.core.LogEntry logEntry)
public static WSTag transformTagToWSTag(org.wso2.carbon.registry.core.Tag tag)
Copyright © 2020 WSO2. All Rights Reserved.