wt.units.service
Interface UnitsService

All Known Implementing Classes:
StandardUnitsService, UnitsServiceFwd

public interface UnitsService

Provides Units services. The remote Units client deals with the lightweight version of all the units objects, not the actual heavyweight version. This service delegates all requests to the UnitsDBService.

Supported API: false

Extendable: false


Method Summary
 MeasurementSystemDefaultView createMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
          Creates a new Measurement System.
 QuantityOfMeasureDefaultView createQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
          Creates the QuantityOfMeasure object given its lite version QuantityOfMeasureDefaultView object.
 void deleteMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
          Deletes this measurement system given its name.
 void deleteQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
          Deletes the QuantityOfMeasure object given its name.
 MeasurementSystemDefaultView getMeasurementSystemDefaultView(String name)
          Gets a measurement system by its name.
 MeasurementSystemDefaultView[] getMeasurementSystemDefaultViews()
          Gets all Measurement Systems .
 String[] getMeasurementSystemNames()
          Gets all the measurement system names in persistence store.
 QuantityOfMeasureDefaultView getQuantityOfMeasureDefaultView(String name)
          Gets a lightweight QuantityOfMeasure object given its name.
 QuantityOfMeasureDefaultView[] getQuantityOfMeasureDefaultViews()
          Gets all the quantity of measures from datastore.
 String[] getQuantityOfMeasureNames()
          Gets all QuantityOfMeasure names.
 MeasurementSystemDefaultView refreshMeasurementSystemDefaultView(MeasurementSystemDefaultView measurementSystemDefaultView)
          Refresh the current fMeasurementSystemDefaultView by reloading its state from datastore.
 QuantityOfMeasureDefaultView refreshQuantityOfMeasureDefaultView(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
          Refresh the current QuantityOfMeasureDefaultView by reloading its state from datastore.
 MeasurementSystemDefaultView updateMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
          Updates a Measurement System by saving the current object to datastore.
 QuantityOfMeasureDefaultView updateQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
          Update the QuantityOfMeasure by saving its state to datastore.
 

Method Detail

createMeasurementSystem

public MeasurementSystemDefaultView createMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
                                                     throws RemoteException,
                                                            IncompatibleUnitsException,
                                                            UnitFormatException,
                                                            NotAuthorizedException,
                                                            WTException
Creates a new Measurement System.

Supported API: false

Parameters:
measurementSystemDefaultView -
Returns:
MeasurementSystemDefaultView
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException

createQuantityOfMeasure

public QuantityOfMeasureDefaultView createQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
                                                     throws RemoteException,
                                                            IncompatibleUnitsException,
                                                            UnitFormatException,
                                                            NotAuthorizedException,
                                                            WTException
Creates the QuantityOfMeasure object given its lite version QuantityOfMeasureDefaultView object.

Supported API: false

Parameters:
quantityOfMeasureDefaultView -
Returns:
QuantityOfMeasureDefaultView
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException

deleteMeasurementSystem

public void deleteMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
                             throws RemoteException,
                                    IncompatibleUnitsException,
                                    UnitFormatException,
                                    NotAuthorizedException,
                                    WTException
Deletes this measurement system given its name.

Supported API: false

Parameters:
measurementSystemDefaultView -
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException

deleteQuantityOfMeasure

public void deleteQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
                             throws RemoteException,
                                    IncompatibleUnitsException,
                                    UnitFormatException,
                                    NotAuthorizedException,
                                    WTException
Deletes the QuantityOfMeasure object given its name.

Supported API: false

Parameters:
quantityOfMeasureDefaultView -
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException

getMeasurementSystemNames

public String[] getMeasurementSystemNames()
                                   throws RemoteException,
                                          WTException
Gets all the measurement system names in persistence store. Returns null if no query results is returned for the requesting principal.

Supported API: false

Returns:
String[]
Throws:
RemoteException
WTException

getMeasurementSystemDefaultView

public MeasurementSystemDefaultView getMeasurementSystemDefaultView(String name)
                                                             throws RemoteException,
                                                                    WTException
Gets a measurement system by its name. Returns null if no query results is returned.

Supported API: false

Parameters:
name -
Returns:
MeasurementSystemDefaultView
Throws:
RemoteException
WTException

getMeasurementSystemDefaultViews

public MeasurementSystemDefaultView[] getMeasurementSystemDefaultViews()
                                                                throws RemoteException,
                                                                       WTException
Gets all Measurement Systems . Returns null if no query results.

Supported API: false

Returns:
MeasurementSystemDefaultView[]
Throws:
RemoteException
WTException

getQuantityOfMeasureDefaultView

public QuantityOfMeasureDefaultView getQuantityOfMeasureDefaultView(String name)
                                                             throws RemoteException,
                                                                    WTException
Gets a lightweight QuantityOfMeasure object given its name.

Supported API: false

Parameters:
name -
Returns:
QuantityOfMeasureDefaultView
Throws:
RemoteException
WTException

getQuantityOfMeasureDefaultViews

public QuantityOfMeasureDefaultView[] getQuantityOfMeasureDefaultViews()
                                                                throws RemoteException,
                                                                       WTException
Gets all the quantity of measures from datastore.

Supported API: false

Returns:
QuantityOfMeasureDefaultView[]
Throws:
RemoteException
WTException

getQuantityOfMeasureNames

public String[] getQuantityOfMeasureNames()
                                   throws RemoteException,
                                          WTException
Gets all QuantityOfMeasure names.

Supported API: false

Returns:
String[]
Throws:
RemoteException
WTException

refreshMeasurementSystemDefaultView

public MeasurementSystemDefaultView refreshMeasurementSystemDefaultView(MeasurementSystemDefaultView measurementSystemDefaultView)
                                                                 throws RemoteException,
                                                                        WTException
Refresh the current fMeasurementSystemDefaultView by reloading its state from datastore.

Supported API: false

Parameters:
measurementSystemDefaultView -
Returns:
MeasurementSystemDefaultView
Throws:
RemoteException
WTException

refreshQuantityOfMeasureDefaultView

public QuantityOfMeasureDefaultView refreshQuantityOfMeasureDefaultView(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
                                                                 throws RemoteException,
                                                                        WTException
Refresh the current QuantityOfMeasureDefaultView by reloading its state from datastore.

Supported API: false

Parameters:
quantityOfMeasureDefaultView -
Returns:
QuantityOfMeasureDefaultView
Throws:
RemoteException
WTException

updateMeasurementSystem

public MeasurementSystemDefaultView updateMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
                                                     throws RemoteException,
                                                            IncompatibleUnitsException,
                                                            UnitFormatException,
                                                            NotAuthorizedException,
                                                            WTException
Updates a Measurement System by saving the current object to datastore.

Supported API: false

Parameters:
measurementSystemDefaultView -
Returns:
MeasurementSystemDefaultView
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException

updateQuantityOfMeasure

public QuantityOfMeasureDefaultView updateQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
                                                     throws RemoteException,
                                                            IncompatibleUnitsException,
                                                            UnitFormatException,
                                                            NotAuthorizedException,
                                                            WTException
Update the QuantityOfMeasure by saving its state to datastore.

Supported API: false

Parameters:
quantityOfMeasureDefaultView -
Returns:
QuantityOfMeasureDefaultView
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException