se.sj.stina.domain.provider
Class SjCustomer

java.lang.Object
  extended by org.stina.framework.support.observer.TiSubject
      extended by se.sj.stina.domain.provider.SjStinaServerObjectHolder
          extended by se.sj.stina.domain.provider.SjCustomer
All Implemented Interfaces:
java.lang.Cloneable, TiSubjectInterface, SjCustomerInterface

public class SjCustomer
extends SjStinaServerObjectHolder
implements SjCustomerInterface

Implementation of SjCustomerInterface. Serves as client side representation of a Stina Server customer object.

Version:
$Revision: 3 $, $Date: 06-09-22 10:47 $
Author:
Per Lindberger

Field Summary
 
Fields inherited from interface se.sj.stina.domain.provider.SjCustomerInterface
CACHE_NAME
 
Constructor Summary
SjCustomer(SjStinaServerCallerInterface serverCaller, se.sj.stina.ejb.customer.Customer customer, java.lang.String customerId, SjStinaModelFactoryInterface stinaModelFactory, boolean preferCompressedData)
          Objects of this class are only instaniated by a Stina provider and returned in the form of a SjCustomerInterface as the result of certain operations.
 
Method Summary
 SjCustomerAddress addDeliveryAddress(SjCustomerAddress address)
          Part of public Stina Server API.
 SjAddTravellerToCompanyResult addTravellerToCompany(SjAddTravellerToCompanyQuery attcq)
          Part of public Stina Server API.
 SjChangeCommunicationAddressResult changeCommunicationAddress(SjCustomerAddress address)
          Part of public Stina Server API.
 SjChangeCustomerResult changeCustomer(SjChangeCustomerSpecification csSpec)
          Part of public Stina Server API.
 SjChangeDeliveryAddressResult changeDeliveryAddress(SjCustomerAddress address)
          Part of public Stina Server API.
 SjReferenceInformationResult changeReferenceInformation(SjChangeReferenceInformationQuery criq)
          Part of public Stina Server API.
 SjCloseCustomerResult close(SjCloseCustomerQuery ccq)
          Part of public Stina Server API.
 void forceClose()
          If caching of customers isn't in effect, this method has the same effect as the close method.
 SjFoundTravellers getAllTravellers(SjAllTravellersQuery atq)
          Part of public Stina Server API.
 SjBookersResult getBookers(SjBookersQuery bq)
          Part of public Stina Server API.
 SjCommonCustomer getCommonData(SjCommonDataQuery cdq)
          Part of public Stina Server API.
 SjCustomerAddress getCommunicationAddress(SjCommunicationAddressQuery caq)
          Part of public Stina Server API.
 SjCompanyCustomer getCompanyData(SjCompanyDataQuery cdq)
          Part of public Stina Server API.
 SjContract getContract(SjContractQuery cq)
          Part of public Stina Server API.
 SjCustomerCompaniesResult getCustomerCompanies(SjCustomerCompaniesQuery ccq)
          Part of public Stina Server API.
 SjCustomerAll getCustomerData(SjCustomerSpecification cs)
          Part of public Stina Server API.
 SjDeliveryAddressResult getDeliveryAddress(SjDeliveryAddressQuery daq)
          Part of public Stina Server API.
 SjCustomerAddress getOfficialAddress(SjOfficialAddressQuery oaq)
          Part of public Stina Server API.
 SjPowerOfAttorneysResult getPowerOfAttorneys(SjPowerOfAttorneysQuery poaq)
          Part of public Stina Server API.
 SjPrivateCustomer getPrivateData(SjPrivateDataQuery pdq)
          Part of public Stina Server API.
 SjGetReferenceInformationResult getReferenceInformation(SjGetReferenceInformationQuery griq)
          Part of public Stina Server API.
 SjSjCardsResult getSjCards(SjSjCardsQuery scq)
          Part of public Stina Server API.
 SjFoundTravellers getTravellers(SjTravellerQuery tq)
          Part of public Stina Server API.
 SjMakeCommeoCustomerResult makeCommeoCustomer(SjMakeCommeoCustomerSpecification mccs)
          Part of public Stina Server API.
 SjRemoveCustomerConnectionResult removeCustomerConnection(SjRemoveCustomerConnectionQuery rccq)
          Part of public Stina Server API.
 SjSetPasswordResult setPassword(SjSetPasswordQuery spq)
          Part of public Stina Server API.
 
Methods inherited from class se.sj.stina.domain.provider.SjStinaServerObjectHolder
decrementCachedCount, getCachedCount, getCacheKey, getId, getQueryModel, getServerCaller, getServerObject, getServerObjectID, getStinaModelFactory, incrementCachedCount, prefersCompressedData, queryModelInitialised, removeServerObject, resultInitialised, setCachedCount, setCacheKey, setPrefersCompressedData, setQueryModel, setServerCaller, setServerObject, setServerObjectID, setStinaModelFactory
 
Methods inherited from class org.stina.framework.support.observer.TiSubject
attachObserver, clone, detachObserver, getIndexOf, getIndexOf, getObserverCount, getObserverCount, isObserverAttached, logObservers, lookupObservers, lookupObserversLock, notifyAnyAspectObservers, notifyObservers, toDebugString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface se.sj.stina.domain.provider.SjCustomerInterface
getId
 

Constructor Detail

SjCustomer

SjCustomer(SjStinaServerCallerInterface serverCaller,
           se.sj.stina.ejb.customer.Customer customer,
           java.lang.String customerId,
           SjStinaModelFactoryInterface stinaModelFactory,
           boolean preferCompressedData)
Objects of this class are only instaniated by a Stina provider and returned in the form of a SjCustomerInterface as the result of certain operations.

See Also:
SjCustomerInterface, SjStinaInformationProviderInterface, SjInformationProvider, SjStinaInformationProvider
Method Detail

close

public SjCloseCustomerResult close(SjCloseCustomerQuery ccq)
                            throws TiInformationException,
                                   TiSevereException,
                                   TiFatalException,
                                   TiBadTransferDataException,
                                   TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
close in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

forceClose

public void forceClose()
                throws TiInformationException,
                       TiSevereException,
                       TiFatalException,
                       TiBadTransferDataException,
                       TiAmbiguousDataException
If caching of customers isn't in effect, this method has the same effect as the close method. If caching of customers is in effect, this method removes the customer from the cache and closes it, regardless of the cached count.

Specified by:
forceClose in class SjStinaServerObjectHolder
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getCustomerData

public SjCustomerAll getCustomerData(SjCustomerSpecification cs)
                              throws TiInformationException,
                                     TiSevereException,
                                     TiFatalException,
                                     TiBadTransferDataException,
                                     TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getCustomerData in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getSjCards

public SjSjCardsResult getSjCards(SjSjCardsQuery scq)
                           throws TiInformationException,
                                  TiSevereException,
                                  TiFatalException,
                                  TiBadTransferDataException,
                                  TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getSjCards in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getCommonData

public SjCommonCustomer getCommonData(SjCommonDataQuery cdq)
                               throws TiInformationException,
                                      TiSevereException,
                                      TiFatalException,
                                      TiBadTransferDataException,
                                      TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getCommonData in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getAllTravellers

public SjFoundTravellers getAllTravellers(SjAllTravellersQuery atq)
                                   throws TiInformationException,
                                          TiSevereException,
                                          TiFatalException,
                                          TiBadTransferDataException,
                                          TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getAllTravellers in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getTravellers

public SjFoundTravellers getTravellers(SjTravellerQuery tq)
                                throws TiInformationException,
                                       TiSevereException,
                                       TiFatalException,
                                       TiBadTransferDataException,
                                       TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getTravellers in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getCustomerCompanies

public SjCustomerCompaniesResult getCustomerCompanies(SjCustomerCompaniesQuery ccq)
                                               throws TiInformationException,
                                                      TiSevereException,
                                                      TiFatalException,
                                                      TiBadTransferDataException,
                                                      TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getCustomerCompanies in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getContract

public SjContract getContract(SjContractQuery cq)
                       throws TiInformationException,
                              TiSevereException,
                              TiFatalException,
                              TiBadTransferDataException,
                              TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getContract in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getPrivateData

public SjPrivateCustomer getPrivateData(SjPrivateDataQuery pdq)
                                 throws TiInformationException,
                                        TiSevereException,
                                        TiFatalException,
                                        TiBadTransferDataException,
                                        TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getPrivateData in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getCompanyData

public SjCompanyCustomer getCompanyData(SjCompanyDataQuery cdq)
                                 throws TiInformationException,
                                        TiSevereException,
                                        TiFatalException,
                                        TiBadTransferDataException,
                                        TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getCompanyData in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getOfficialAddress

public SjCustomerAddress getOfficialAddress(SjOfficialAddressQuery oaq)
                                     throws TiInformationException,
                                            TiSevereException,
                                            TiFatalException,
                                            TiBadTransferDataException,
                                            TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getOfficialAddress in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getCommunicationAddress

public SjCustomerAddress getCommunicationAddress(SjCommunicationAddressQuery caq)
                                          throws TiInformationException,
                                                 TiSevereException,
                                                 TiFatalException,
                                                 TiBadTransferDataException,
                                                 TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getCommunicationAddress in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getDeliveryAddress

public SjDeliveryAddressResult getDeliveryAddress(SjDeliveryAddressQuery daq)
                                           throws TiInformationException,
                                                  TiSevereException,
                                                  TiFatalException,
                                                  TiBadTransferDataException,
                                                  TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getDeliveryAddress in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getPowerOfAttorneys

public SjPowerOfAttorneysResult getPowerOfAttorneys(SjPowerOfAttorneysQuery poaq)
                                             throws TiInformationException,
                                                    TiSevereException,
                                                    TiFatalException,
                                                    TiBadTransferDataException,
                                                    TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getPowerOfAttorneys in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getBookers

public SjBookersResult getBookers(SjBookersQuery bq)
                           throws TiInformationException,
                                  TiSevereException,
                                  TiFatalException,
                                  TiBadTransferDataException,
                                  TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getBookers in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

makeCommeoCustomer

public SjMakeCommeoCustomerResult makeCommeoCustomer(SjMakeCommeoCustomerSpecification mccs)
                                              throws TiInformationException,
                                                     TiSevereException,
                                                     TiFatalException,
                                                     TiBadTransferDataException,
                                                     TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
makeCommeoCustomer in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

addTravellerToCompany

public SjAddTravellerToCompanyResult addTravellerToCompany(SjAddTravellerToCompanyQuery attcq)
                                                    throws TiInformationException,
                                                           TiSevereException,
                                                           TiFatalException,
                                                           TiBadTransferDataException,
                                                           TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
addTravellerToCompany in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

addDeliveryAddress

public SjCustomerAddress addDeliveryAddress(SjCustomerAddress address)
                                     throws TiInformationException,
                                            TiSevereException,
                                            TiFatalException,
                                            TiBadTransferDataException,
                                            TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
addDeliveryAddress in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

changeDeliveryAddress

public SjChangeDeliveryAddressResult changeDeliveryAddress(SjCustomerAddress address)
                                                    throws TiInformationException,
                                                           TiSevereException,
                                                           TiFatalException,
                                                           TiBadTransferDataException,
                                                           TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
changeDeliveryAddress in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

changeCommunicationAddress

public SjChangeCommunicationAddressResult changeCommunicationAddress(SjCustomerAddress address)
                                                              throws TiInformationException,
                                                                     TiSevereException,
                                                                     TiFatalException,
                                                                     TiBadTransferDataException,
                                                                     TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
changeCommunicationAddress in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

changeCustomer

public SjChangeCustomerResult changeCustomer(SjChangeCustomerSpecification csSpec)
                                      throws TiInformationException,
                                             TiSevereException,
                                             TiFatalException,
                                             TiBadTransferDataException,
                                             TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
changeCustomer in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

getReferenceInformation

public SjGetReferenceInformationResult getReferenceInformation(SjGetReferenceInformationQuery griq)
                                                        throws TiInformationException,
                                                               TiSevereException,
                                                               TiFatalException,
                                                               TiBadTransferDataException,
                                                               TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
getReferenceInformation in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

changeReferenceInformation

public SjReferenceInformationResult changeReferenceInformation(SjChangeReferenceInformationQuery criq)
                                                        throws TiInformationException,
                                                               TiSevereException,
                                                               TiFatalException,
                                                               TiBadTransferDataException,
                                                               TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
changeReferenceInformation in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

setPassword

public SjSetPasswordResult setPassword(SjSetPasswordQuery spq)
                                throws TiInformationException,
                                       TiSevereException,
                                       TiFatalException,
                                       TiBadTransferDataException,
                                       TiAmbiguousDataException
Part of public Stina Server API. Refer to Stina Server documentation.

Specified by:
setPassword in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException

removeCustomerConnection

public SjRemoveCustomerConnectionResult removeCustomerConnection(SjRemoveCustomerConnectionQuery rccq)
                                                          throws TiInformationException,
                                                                 TiSevereException,
                                                                 TiFatalException,
                                                                 TiBadTransferDataException,
                                                                 TiAmbiguousDataException
Description copied from interface: SjCustomerInterface
Part of public Stina Server API. Refer to Stina Server documentation.

See also:
API documentation for removeCustomerConnection

Specified by:
removeCustomerConnection in interface SjCustomerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException
TiBadTransferDataException
TiAmbiguousDataException


Copyright © 2012. All Rights Reserved.