public void returned(ReturnEvent event) { // ReturnListener Method
    if (event.getReturnParameters() != null) {
      if (event.getReturnParameters().size() > 0) {
        AuthorityRowData authorityRowData =
            (AuthorityRowData) event.getReturnParameters().get(Constants.KEY_RETURN_FROM_DIALOG);
        multiMediaBean.setRelatedAuthority((AuthorityRecord) authorityRowData.getEntity());
        //						.getEntity())
        //				relatedAuthority = (AuthorityRecord) authorityRowData
        //						.getEntity();
        System.out.println(((AuthorityRecord) authorityRowData.getEntity()).getAuthority());
      }
    }

    //		initInputObjects(event);
    methodInvoker(_CONST_RETURNED_METHOD_NAME, event);
    JsfUtils.removeFromPageFlow(_CONST_FILTER_KEY);
  }
 public void returnedContentTypeDialog(ReturnEvent event) {
   if (event.getReturnValue() == null) {
     return;
   }
   MultiMediaMaterialType materialType =
       (MultiMediaMaterialType) event.getReturnParameters().get(Constants.KEY_RETURN_FROM_DIALOG);
   multiMediaBean.getContentManagement().setMaterialType(materialType);
 }
 public void returnedWorkGroupDialog(ReturnEvent event) {
   if (event.getReturnValue() == null) {
     return;
   }
   AbstractWorkGroup workGroup =
       (AbstractWorkGroup) event.getReturnParameters().get(Constants.KEY_RETURN_FROM_DIALOG);
   multiMediaBean.getContentManagement().setWorkGroup(workGroup);
 }
 public void returnedDownloadAccessModuleDialog(ReturnEvent event) {
   if (event.getReturnValue() == null) {
     return;
   }
   AccessModule accessModule =
       (AccessModule) event.getReturnParameters().get(Constants.KEY_RETURN_FROM_DIALOG);
   multiMediaBean.getContentManagement().setDownLoadAccessModule(accessModule);
 }
  public void returnFromSelectLibrary(ReturnEvent event) {

    JsfUtils.removeFromPageFlow(MEMBER_PROFILE_TYPE);
    AbstractWorkGroup selectedUnitLib =
        (AbstractWorkGroup)
            event.getReturnParameters().get(UserManagementConstants.SELECTED_UNIT_LIB_OBJECT_NAME);

    if (selectedUnitLib == null) return;

    this.selectedUnitOrLib = selectedUnitLib;
  }
  public void uploadAndReturn(ReturnEvent event) {

    if (event.getReturnValue() == null) return;

    String imageType = (String) event.getReturnValue();
    byte[] picture = (byte[]) event.getReturnParameters().get("picture");

    if (picture != null) {
      this.realPerson.setImage(picture);

      this.imageSource = JsfUtils.getVirtualImageUrl(picture, "realPic" + (counter++));
    }
  }
Example #7
0
  public void returnFromLocation(ReturnEvent event) {

    Location location = (Location) event.getReturnParameters().get("location");
    //  this.address.setLocation(location);
    JsfUtils.storeOnPageFlow("selectedLocation", location);
  }