Package de.swa.gmaf.api
Class GMAF_Facade_SOAPImpl
java.lang.Object
de.swa.gmaf.api.GMAF_Facade_SOAPImpl
- All Implemented Interfaces:
GMAF_Facade
public class GMAF_Facade_SOAPImpl extends java.lang.Object implements GMAF_Facade
implementation of the GMAF SOAP API
-
Constructor Summary
Constructors Constructor Description GMAF_Facade_SOAPImpl() -
Method Summary
Modifier and Type Method Description GraphCodegenerateGraphCode(java.lang.String auth_token, MMFG mmfg)returns a Graph Code for a given MMFGjava.lang.StringgetAuthToken(java.lang.String api_key)returns a new session tokenjava.util.Vector<java.lang.String>getCollectionIDs(java.lang.String auth_token)returns the collection of MMFGs for a given auth_tokenjava.lang.StringgetLastError(java.lang.String auth_token)MMFGgetMMFG(java.lang.String auth_token, java.lang.String id)returns a list of recommendations for a given Graph CodeGraphCodegetOrGenerateGraphCode(java.lang.String auth_token, java.lang.String id)returns a Graph Code for a given MMFGjava.lang.StringgetPreviewURL(java.lang.String auth_token, java.lang.String mmfg_id)returns an URL to preview a MMFGjava.util.Vector<java.lang.String>getRecommendedAssetIDsByGraphCode(java.lang.String auth_token, GraphCode gc)returns a list of recommendations for a given Graph Codejava.util.Vector<java.lang.String>getRecommendedAssetIDsForMMFGId(java.lang.String auth_token, java.lang.String id)returns a list of recommendations for a given Graph Codejava.util.Vector<java.lang.String>getSimilarAssetIDsByGraphCode(java.lang.String auth_token, GraphCode gc)returns a list of similar assets for a given Graph Codejava.util.Vector<java.lang.String>getSimilarAssetIDsForMMFGId(java.lang.String auth_token, java.lang.String id)returns a list of similar assets for a given Graph Codejava.lang.StringprocessAssetFromBytes(java.lang.String auth_token, byte[] bytes, java.lang.String suffix)processes an asset with the GMAF Core and returns the calculated MMFGjava.lang.StringprocessAssetFromFile(java.lang.String auth_token, java.io.File f)processes an asset with the GMAF Core and returns the calculated MMFGjava.lang.StringprocessAssetFromURL(java.lang.String auth_token, java.net.URL url)processes an asset with the GMAF Core and returns the calculated MMFGjava.util.Vector<java.lang.String>queryByKeyword(java.lang.String auth_token, java.lang.String keywords)returns a list of similar assets for a given keywordvoidsetProcessingPlugins(java.lang.String auth_token, java.util.Vector<java.lang.String> plugins)sets the classes of the processing plugins (optional)
-
Constructor Details
-
GMAF_Facade_SOAPImpl
public GMAF_Facade_SOAPImpl()
-
-
Method Details
-
getAuthToken
public java.lang.String getAuthToken(java.lang.String api_key)returns a new session token- Specified by:
getAuthTokenin interfaceGMAF_Facade
-
processAssetFromFile
public java.lang.String processAssetFromFile(java.lang.String auth_token, java.io.File f)processes an asset with the GMAF Core and returns the calculated MMFG- Specified by:
processAssetFromFilein interfaceGMAF_Facade
-
processAssetFromBytes
public java.lang.String processAssetFromBytes(java.lang.String auth_token, byte[] bytes, java.lang.String suffix)processes an asset with the GMAF Core and returns the calculated MMFG- Specified by:
processAssetFromBytesin interfaceGMAF_Facade
-
processAssetFromURL
public java.lang.String processAssetFromURL(java.lang.String auth_token, java.net.URL url)processes an asset with the GMAF Core and returns the calculated MMFG- Specified by:
processAssetFromURLin interfaceGMAF_Facade
-
setProcessingPlugins
public void setProcessingPlugins(java.lang.String auth_token, java.util.Vector<java.lang.String> plugins)sets the classes of the processing plugins (optional)- Specified by:
setProcessingPluginsin interfaceGMAF_Facade
-
getCollectionIDs
public java.util.Vector<java.lang.String> getCollectionIDs(java.lang.String auth_token)returns the collection of MMFGs for a given auth_token- Specified by:
getCollectionIDsin interfaceGMAF_Facade
-
generateGraphCode
returns a Graph Code for a given MMFG- Specified by:
generateGraphCodein interfaceGMAF_Facade
-
getOrGenerateGraphCode
returns a Graph Code for a given MMFG- Specified by:
getOrGenerateGraphCodein interfaceGMAF_Facade
-
getSimilarAssetIDsByGraphCode
public java.util.Vector<java.lang.String> getSimilarAssetIDsByGraphCode(java.lang.String auth_token, GraphCode gc)returns a list of similar assets for a given Graph Code- Specified by:
getSimilarAssetIDsByGraphCodein interfaceGMAF_Facade
-
getRecommendedAssetIDsByGraphCode
public java.util.Vector<java.lang.String> getRecommendedAssetIDsByGraphCode(java.lang.String auth_token, GraphCode gc)returns a list of recommendations for a given Graph Code- Specified by:
getRecommendedAssetIDsByGraphCodein interfaceGMAF_Facade
-
getRecommendedAssetIDsForMMFGId
public java.util.Vector<java.lang.String> getRecommendedAssetIDsForMMFGId(java.lang.String auth_token, java.lang.String id)Description copied from interface:GMAF_Facadereturns a list of recommendations for a given Graph Code- Specified by:
getRecommendedAssetIDsForMMFGIdin interfaceGMAF_Facade
-
getSimilarAssetIDsForMMFGId
public java.util.Vector<java.lang.String> getSimilarAssetIDsForMMFGId(java.lang.String auth_token, java.lang.String id)Description copied from interface:GMAF_Facadereturns a list of similar assets for a given Graph Code- Specified by:
getSimilarAssetIDsForMMFGIdin interfaceGMAF_Facade
-
getLastError
public java.lang.String getLastError(java.lang.String auth_token) -
getMMFG
Description copied from interface:GMAF_Facadereturns a list of recommendations for a given Graph Code- Specified by:
getMMFGin interfaceGMAF_Facade
-
getPreviewURL
public java.lang.String getPreviewURL(java.lang.String auth_token, java.lang.String mmfg_id)Description copied from interface:GMAF_Facadereturns an URL to preview a MMFG- Specified by:
getPreviewURLin interfaceGMAF_Facade
-
queryByKeyword
public java.util.Vector<java.lang.String> queryByKeyword(java.lang.String auth_token, java.lang.String keywords)Description copied from interface:GMAF_Facadereturns a list of similar assets for a given keyword- Specified by:
queryByKeywordin interfaceGMAF_Facade
-