org.gcube.contentmanagement.contentmanager.smsplugin.delegates.util
Class SMSInterfaceImpl

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.smsplugin.delegates.util.SMSInterfaceImpl
All Implemented Interfaces:
SMSInterface

public class SMSInterfaceImpl
extends java.lang.Object
implements SMSInterface

Author:
Federico De Faveri defaveri@isti.cnr.it

Method Summary
 java.lang.String createCollection(java.lang.String name, java.lang.String description)
          Create a new collection.
 boolean deleteInformationObject(java.lang.String oid)
          
 boolean deleteInformationObjectProperty(java.lang.String oid, java.lang.String propertyName)
          
 boolean existsInfoObject(java.lang.String oid)
          
 SMSCollectionInfo getCollectionInfo(java.lang.String collectionId)
          Get information about the collection from sms.
 InfoObjectDescription getInfoObject(java.lang.String objectID, java.lang.String targetLocation, StorageHint[] hints)
          
static SMSInterface getInstance()
           
 StorageManagementCall getSmsCall()
           
 SMSPortType1PortType getSmsPortType1()
           
static void initializeInterface(GCUBEScope scope, GCUBESecurityManager securityManager)
           
 java.lang.String retrieveFilteredIOs(SMSResponseConfig responseConfig, java.util.List<SMSFilter> filters)
          
 InfoObjectTree retrieveTree(java.lang.String oid, InformationObjectTreeResponse responseConfig)
          
 void setInformationObjectProperty(java.lang.String oid, CreatePropertyDescription propertyDescription)
          
 java.lang.String storeInformationObject(CreateInfoObjectReferencesProperties createInfoObjectParams)
          
 void updateInformationObjectRawContent(java.lang.String oid, byte[] content)
          
 void updateInformationObjectRawContent(java.lang.String oid, java.lang.String fileLocation)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initializeInterface

public static void initializeInterface(GCUBEScope scope,
                                       GCUBESecurityManager securityManager)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getInstance

public static SMSInterface getInstance()
                                throws java.lang.Exception
Throws:
java.lang.Exception

getSmsCall

public StorageManagementCall getSmsCall()
Returns:
the smsCall

getSmsPortType1

public SMSPortType1PortType getSmsPortType1()
Returns:
the smsPortType1

getInfoObject

public InfoObjectDescription getInfoObject(java.lang.String objectID,
                                           java.lang.String targetLocation,
                                           StorageHint[] hints)
                                    throws java.rmi.RemoteException

Specified by:
getInfoObject in interface SMSInterface
Throws:
java.rmi.RemoteException

existsInfoObject

public boolean existsInfoObject(java.lang.String oid)
                         throws java.rmi.RemoteException,
                                GCUBERetrySameIOFault

Specified by:
existsInfoObject in interface SMSInterface
Returns:
Throws:
java.rmi.RemoteException
GCUBERetrySameIOFault
See Also:
org.gcube.contentmanagement.storagelayer.storagemanagementservice.stubs.SMSPortType1PortType#existsInfoObject(java.lang.String)

retrieveTree

public InfoObjectTree retrieveTree(java.lang.String oid,
                                   InformationObjectTreeResponse responseConfig)
                            throws GCUBEUnrecoverableObjectNotFoundFault,
                                   GCUBERetrySameIOFault,
                                   GCUBEUnrecoverableValueNotValidFault,
                                   java.rmi.RemoteException

Specified by:
retrieveTree in interface SMSInterface
Returns:
Throws:
GCUBEUnrecoverableObjectNotFoundFault
GCUBERetrySameIOFault
GCUBEUnrecoverableValueNotValidFault
java.rmi.RemoteException
See Also:
org.gcube.contentmanagement.storagelayer.storagemanagementservice.stubs.StorageManagementCall#retrieveTree(java.lang.String, org.gcube.contentmanagement.storagelayer.storagemanagementservice.stubs.response.InformationObjectTreeResponse)

retrieveFilteredIOs

public java.lang.String retrieveFilteredIOs(SMSResponseConfig responseConfig,
                                            java.util.List<SMSFilter> filters)
                                     throws GCUBEUnrecoverableObjectNotFoundFault,
                                            GCUBERetrySameIOFault,
                                            GCUBEUnrecoverableValueNotValidFault,
                                            java.rmi.RemoteException

Specified by:
retrieveFilteredIOs in interface SMSInterface
Returns:
Throws:
GCUBEUnrecoverableObjectNotFoundFault
GCUBERetrySameIOFault
GCUBEUnrecoverableValueNotValidFault
java.rmi.RemoteException
See Also:
org.gcube.contentmanagement.storagelayer.storagemanagementservice.stubs.StorageManagementCall#retrieveFilteredIOs(org.gcube.contentmanagement.storagelayer.storagemanagementservice.stubs.response.SMSResponseConfig, java.util.List)

getCollectionInfo

public SMSCollectionInfo getCollectionInfo(java.lang.String collectionId)
                                    throws java.lang.Exception
Get information about the collection from sms.

Specified by:
getCollectionInfo in interface SMSInterface
Parameters:
collectionId - the collection id.
Returns:
the retrieved collection info.
Throws:
java.lang.Exception - if an error occurs retrieving the information.

createCollection

public java.lang.String createCollection(java.lang.String name,
                                         java.lang.String description)
                                  throws GCUBERetrySameIOFault,
                                         GCUBEUnrecoverableValueNotValidFault,
                                         java.rmi.RemoteException
Create a new collection.

Specified by:
createCollection in interface SMSInterface
Parameters:
name - the collection name.
description - the collection description.
Returns:
the new collection id.
Throws:
GCUBERetrySameIOFault
GCUBEUnrecoverableValueNotValidFault
java.rmi.RemoteException

storeInformationObject

public java.lang.String storeInformationObject(CreateInfoObjectReferencesProperties createInfoObjectParams)
                                        throws GCUBEUnrecoverableObjectNotFoundFault,
                                               GCUBERetrySameIOFault,
                                               GCUBEUnrecoverableValueNotValidFault,
                                               java.rmi.RemoteException

Specified by:
storeInformationObject in interface SMSInterface
Throws:
GCUBEUnrecoverableObjectNotFoundFault
GCUBERetrySameIOFault
GCUBEUnrecoverableValueNotValidFault
java.rmi.RemoteException

deleteInformationObject

public boolean deleteInformationObject(java.lang.String oid)
                                throws GCUBEUnrecoverableObjectNotFoundFault,
                                       GCUBERetrySameIOFault,
                                       GCUBEUnrecoverableValueNotValidFault,
                                       java.rmi.RemoteException

Specified by:
deleteInformationObject in interface SMSInterface
Throws:
GCUBEUnrecoverableObjectNotFoundFault
GCUBERetrySameIOFault
GCUBEUnrecoverableValueNotValidFault
java.rmi.RemoteException

deleteInformationObjectProperty

public boolean deleteInformationObjectProperty(java.lang.String oid,
                                               java.lang.String propertyName)
                                        throws GCUBEUnrecoverableObjectNotFoundFault,
                                               GCUBERetrySameIOFault,
                                               GCUBEUnrecoverableValueNotValidFault,
                                               java.rmi.RemoteException

Specified by:
deleteInformationObjectProperty in interface SMSInterface
Throws:
GCUBEUnrecoverableObjectNotFoundFault
GCUBERetrySameIOFault
GCUBEUnrecoverableValueNotValidFault
java.rmi.RemoteException

setInformationObjectProperty

public void setInformationObjectProperty(java.lang.String oid,
                                         CreatePropertyDescription propertyDescription)
                                  throws GCUBEUnrecoverableObjectNotFoundFault,
                                         GCUBERetrySameIOFault,
                                         GCUBEUnrecoverableValueNotValidFault,
                                         java.rmi.RemoteException

Specified by:
setInformationObjectProperty in interface SMSInterface
Throws:
GCUBEUnrecoverableObjectNotFoundFault
GCUBERetrySameIOFault
GCUBEUnrecoverableValueNotValidFault
java.rmi.RemoteException

updateInformationObjectRawContent

public void updateInformationObjectRawContent(java.lang.String oid,
                                              java.lang.String fileLocation)
                                       throws GCUBEUnrecoverableObjectNotFoundFault,
                                              GCUBERetrySameIOFault,
                                              GCUBEUnrecoverableValueNotValidFault,
                                              java.rmi.RemoteException

Specified by:
updateInformationObjectRawContent in interface SMSInterface
Throws:
GCUBEUnrecoverableObjectNotFoundFault
GCUBERetrySameIOFault
GCUBEUnrecoverableValueNotValidFault
java.rmi.RemoteException

updateInformationObjectRawContent

public void updateInformationObjectRawContent(java.lang.String oid,
                                              byte[] content)
                                       throws GCUBEUnrecoverableObjectNotFoundFault,
                                              GCUBERetrySameIOFault,
                                              GCUBEUnrecoverableValueNotValidFault,
                                              java.rmi.RemoteException

Specified by:
updateInformationObjectRawContent in interface SMSInterface
Throws:
GCUBEUnrecoverableObjectNotFoundFault
GCUBERetrySameIOFault
GCUBEUnrecoverableValueNotValidFault
java.rmi.RemoteException