/* (non-Javadoc)
  * @see com.pars.marc.MarcData#getAccessModules()
  */
 public Long getAccessModules() {
   if (record instanceof CustomStorageRecord) {
     AccessModule accessModeule = ((CustomStorageRecord) record).getAccessModule();
     if (accessModeule != null) return accessModeule.getId();
   }
   return null;
 }
  public void selectAndReturn(ActionEvent event) {

    AccessModuleRowData row = (AccessModuleRowData) JsfUtils.resolveVariable("row");
    AccessModule accessModule = (AccessModule) row.getEntity();

    Map map = new HashMap();
    map.put(UserManagementConstants.SELECTED_ACCESSMODULE_OBJECT_NAME, accessModule);

    RequestContext.getCurrentInstance().returnFromDialog(accessModule.getTitle(), map);
  }
Esempio n. 3
0
 public String select() {
   AccessModuleRowData selectedRow = (AccessModuleRowData) JsfUtils.resolveVariable("row");
   if (selectedRow != null) {
     AccessModule accessModule = (AccessModule) selectedRow.getEntity();
     HashMap returnValue = new HashMap<String, AccessModule>();
     returnValue.put(Constants.KEY_RETURN_FROM_DIALOG, accessModule);
     RequestContext.getCurrentInstance().returnFromDialog(accessModule.getTitle(), returnValue);
   }
   return null;
 }