Class PPermissionInfoBeanImpl

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

public class PPermissionInfoBeanImpl extends PIAComponentCollectionBean implements PPermissionInfoBean
Controller class for setting permissions. The following base opcodes are used by this controller:
  • PortalOp.OP_SEARCH
  • PortalOp.OP_WRITE_FLDS
  • PortalOp.OP_DELETE_FLDS
/ /*
Author:
Priya
See Also:
  • Constructor Details

  • Method Details

    • getServiceAdminClient

      public Object[] getServiceAdminClient(PModelHandle pNewMH) throws RemoteException
      Call PortalOp.OP_SEARCH to check whether /service/admin Client exists for the account. Calls refreshActions(Poid invalid input: '<'>) internally.
      Specified by:
      getServiceAdminClient in interface PPermissionInfoBean
      Parameters:
      pNewMH - - Account model handle. If /service/admin_client is present, the account poid is returned.
      Throws:
      RemoteException
    • getActions

      public ArrayList getActions(Object AccPoid) throws RemoteException
      This function sends back a list of the PSettableRestrictions containing the Permission Strings. A PModelHandle which is the model handle returned from function hasServiceAdminClient(PModelHandle invalid input: '<'>).
      Specified by:
      getActions in interface PPermissionInfoBean
      Parameters:
      Account - Poid
      Returns:
      ArrayList of PSettableRestrictions
      Throws:
      RemoteException
    • saveChanges

      public boolean saveChanges(ArrayList arrList) throws RemoteException
      Save changes to Portal by using the objects stored in the ArrayList that is sent back. Calls PortalOp.OP_WRITE_FLDS,PortalOp.OP_DELETE_FLDS
      Specified by:
      saveChanges in interface PPermissionInfoBean
      Parameters:
      ArrayList - of PSettableRestriction
      Returns:
      boolean value
      Throws:
      RemoteException