Class PChangeStatusBeanImpl

All Implemented Interfaces:
PChangeStatusBean, PIACollectionBean, PControllerBean, Serializable, Remote, Unreferenced

public class PChangeStatusBeanImpl extends PIAComponentCollectionBean implements PChangeStatusBean
Controller class for account and service status changes. This class calls the PortalOp.SEARCH to find all the services that the account has and return the services list model handle to the client. PortalOp.CUST_UPDATE_SERVICES is used to commit the status changes for the account or the services.
See Also:
  • Field Details

    • intServicesCount

      protected int intServicesCount
    • pmhSelectedServices

      protected PModelHandle pmhSelectedServices
  • Constructor Details

  • Method Details

    • retrieveServices

      public PModelHandle retrieveServices(PModelHandle hAccount, boolean showService)
      This method retrieves the services for the passed account model handle.
      Specified by:
      retrieveServices in interface PChangeStatusBean
      Parameters:
      hAccount -
      showService - if this is true, then only services will be added in the drop down.
      Returns:
      PModelHandle
    • searchServices

      protected PModelHandle searchServices(PModelHandle hAccount, PCachedContext conn, FldResults fResults, Poid mAccountPoid, int threshold, boolean showService) throws EBufException
      Returns an Flist with an array of results as per the search criteria This method calls the PCM_OP_SEARCH opcode to get the services for the account The search template in the input flist can be changed to get the desired services as per the requirement.
      Parameters:
      hAccount - account poid.
      conn - PCachedContext instance
      fResults - FldResults instance
      mAccountPoid - Poid
      threshold - service search threshold
      showService - boolean
      Returns:
      PModelHandle
      Throws:
      EBufException
    • getServiceModel

      public PModelHandle getServiceModel(PModelHandle hAccount, boolean showService) throws RemoteException
      Get the services list model for the account setModelHandle calls this function to retrive the services list model handle. "the account" is also included in the services list. Used getType to distinguish between account and services This method currently uses search opcode 235 to retrieve the services for the given account.
      Specified by:
      getServiceModel in interface PChangeStatusBean
      Parameters:
      hAccount -
      showService -
      Throws:
      RemoteException
    • getServiceLifeCycleState

      public LifeCycleStates getServiceLifeCycleState(Poid serv) throws RemoteException
      get the life cycle obj for the service
      Specified by:
      getServiceLifeCycleState in interface PChangeStatusBean
      Throws:
      RemoteException
    • getCurrentAccountStatus

      public Integer getCurrentAccountStatus(PModelHandle handle) throws RemoteException
      Get current account status
      Specified by:
      getCurrentAccountStatus in interface PChangeStatusBean
      Parameters:
      handle -
      Throws:
      RemoteException
    • getReasonCodesForStatus

      public ReasonCodeData[] getReasonCodesForStatus(int iStatus, Locale l) throws RemoteException
      Get reason codes list for the iStatus type and for the locale
      Specified by:
      getReasonCodesForStatus in interface PChangeStatusBean
      Parameters:
      iStatus -
      l -
      Throws:
      RemoteException
    • save

      public Object save(PModelHandle hSave) throws RemoteException
      Commit the new status to Portal. Depended on the hSave there might be two type of change status: 1. account status 2. services status. if the FldPoid is the account, then everything is good and ready to go. if the FldPoid is a service then make FldPoid to FldServiceObj and stick in an account poid as the FldPoid.
      Specified by:
      save in interface PChangeStatusBean
      Parameters:
      hSave -
      Throws:
      RemoteException
    • getServicesCount

      public int getServicesCount()
      Returns the service count.
      Specified by:
      getServicesCount in interface PChangeStatusBean
      Returns: