Class CommonUtil
java.lang.Object
org.wso2.carbon.registry.ws.api.utils.CommonUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Mapstatic 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 DataHandlermakeDataHandler(org.wso2.carbon.registry.core.Resource resource, File tempFile) static WSCollectionnewCollectiontoWSCollection(org.wso2.carbon.registry.core.Collection collection) static WSResourcenewResourcetoWSResource(org.wso2.carbon.registry.core.Resource resource) static WSCommentRegistryCommenttoWSComment(org.wso2.carbon.registry.core.Comment comment) static WSAssociationtransformAssociationToWSAssociation(org.wso2.carbon.registry.core.Association asso) static WSCollectiontransformCollectiontoWSCollection(org.wso2.carbon.registry.core.Collection collection, DataHandler dataHandler) static WSLogEntrytransformLogEntryToWSLogEntry(org.wso2.carbon.registry.core.LogEntry logEntry) static WSResourcetransformResourceToWSResource(org.wso2.carbon.registry.core.Resource resource, DataHandler dataHandler) static WSTagtransformTagToWSTag(org.wso2.carbon.registry.core.Tag tag) static org.wso2.carbon.registry.core.CollectiontransformWSCollectiontoCollection(WSResource wsCollection, Object content) static org.wso2.carbon.registry.core.ResourcetransformWSResourcetoResource(WSResource wsResource, Object content) static org.wso2.carbon.registry.core.CommentWSCommenttoRegistryComment(WSComment wsComment)
-
Constructor Details
-
CommonUtil
public CommonUtil()
-
-
Method Details
-
createMap
public static Map createMap(String[] key, String[] value) throws org.wso2.carbon.registry.core.exceptions.RegistryException - Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
transformWSResourcetoResource
public static org.wso2.carbon.registry.core.Resource transformWSResourcetoResource(WSResource wsResource, Object content) throws org.wso2.carbon.registry.core.exceptions.RegistryException - Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
transformWSCollectiontoCollection
public static org.wso2.carbon.registry.core.Collection transformWSCollectiontoCollection(WSResource wsCollection, Object content) throws org.wso2.carbon.registry.core.exceptions.RegistryException - Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
transformCollectiontoWSCollection
public static WSCollection transformCollectiontoWSCollection(org.wso2.carbon.registry.core.Collection collection, DataHandler dataHandler) -
transformResourceToWSResource
public static WSResource transformResourceToWSResource(org.wso2.carbon.registry.core.Resource resource, DataHandler dataHandler) -
makeBytesFromDataHandler
- Throws:
IOException
-
makeDataHandler
public static DataHandler makeDataHandler(org.wso2.carbon.registry.core.Resource resource, File tempFile) throws IOException, org.wso2.carbon.registry.core.exceptions.RegistryException - Throws:
IOExceptionorg.wso2.carbon.registry.core.exceptions.RegistryException
-
newResourcetoWSResource
-
newCollectiontoWSCollection
public static WSCollection newCollectiontoWSCollection(org.wso2.carbon.registry.core.Collection collection) -
exchangeTaggedResourcepath
public static WSTaggedResourcePath[] exchangeTaggedResourcepath(org.wso2.carbon.registry.core.TaggedResourcePath[] registry) -
exchangeWSResourcePath
public static org.wso2.carbon.registry.core.TaggedResourcePath[] exchangeWSResourcePath(WSTaggedResourcePath[] wsrpath) -
RegistryCommenttoWSComment
-
WSCommenttoRegistryComment
-
transformAssociationToWSAssociation
public static WSAssociation transformAssociationToWSAssociation(org.wso2.carbon.registry.core.Association asso) -
transformLogEntryToWSLogEntry
public static WSLogEntry transformLogEntryToWSLogEntry(org.wso2.carbon.registry.core.LogEntry logEntry) -
transformTagToWSTag
-