@Override
 protected void removeEntityObject(EntityObject selectedRecord) {
   try {
     ParagraphProperties paragraphProperties = (ParagraphProperties) selectedRecord;
     NliMultiMediaServiceProxy.getInstance().removeEntityObject(paragraphProperties);
   } catch (Exception exp) {
     Util.processException(exp);
   }
 }
  public SelectAccessModuleParentBean() {

    AccessModule accessModule = (AccessModule) JsfUtils.getFromPageFlow("accessModule");
    //        if (JsfUtils.getFromPageFlow("grid_"+AccessModuleRowData.class.getName() + "_fetcher")
    // == null ){
    AccessModuleRowData.AccessModuleDataFetcher fetcher =
        new AccessModuleRowData.AccessModuleDataFetcher(
            JsfUtils.getInstance().getLocale(), accessModule, true);
    //        }
    this.model = Util.makeTableFromRowData(AccessModuleRowData.class, fetcher, 100);
  }
  public JSFTable getContactPartyList() {

    if (this.contactPartyList == null) {
      LegalContactRowData.LegalContactDataFetcher fetcher =
          new LegalContactRowData.LegalContactDataFetcher(
              this.legalPerson, JsfUtils.getInstance().getLocale());
      this.contactPartyList = Util.makeTableFromRowData(LegalContactRowData.class, fetcher, 100);
    }

    return contactPartyList;
  }
  public JSFTable getContactList() {

    if (this.contactList == null) {
      ProfileContactRowData.ProfileContactDataFetcher fetcher =
          new ProfileContactRowData.ProfileContactDataFetcher(
              this.legalPerson.getProfile(), JsfUtils.getInstance().getLocale());
      this.contactList = Util.makeTableFromRowData(ProfileContactRowData.class, fetcher, 100);
    }

    return contactList;
  }
  public JSFTable getAddressList() {

    if (this.addressList == null) {
      ProfileAddressRowData.ProfileAddressDataFetcher fetcher =
          new ProfileAddressRowData.ProfileAddressDataFetcher(
              this.legalPerson.getProfile(), JsfUtils.getInstance().getLocale());
      this.addressList = Util.makeTableFromRowData(ProfileAddressRowData.class, fetcher, 100);
    }

    return addressList;
  }
  public JSFTable getDescriptionList() {

    if (this.descriptionList == null) {
      ProfileAttachmentRowData.ProfileAttachmentDataFetcher fetcher =
          new ProfileAttachmentRowData.ProfileAttachmentDataFetcher(
              this.legalPerson.getProfile(), JsfUtils.getInstance().getLocale());
      this.descriptionList =
          Util.makeTableFromRowData(ProfileAttachmentRowData.class, fetcher, 100);
    }

    return descriptionList;
  }
Esempio n. 7
0
  public String doSave() {

    try {

      this.address.setLocation((Location) JsfUtils.getFromPageFlow("selectedLocation"));
      service.saveObjectService(this.address);

    } catch (Exception exp) {

      Util.processException(exp);
      return "";

    } finally {

      reset();
    }

    ////// If Request come from endUser the navigation should be changed....
    if (JsfUtils.getFromPageFlow("endUser") != null) return "endUser_goAddress";

    return Constants.USERINFO_ADDRESS_GOTO_VIEW;
  }