Examples of AuditModuleConfig


Examples of com.sun.appserv.management.config.AuditModuleConfig

   
   
        public static AuditModuleConfig
  ensureDefaultInstance( final SecurityServiceConfig securityServiceConfig )
  {
      AuditModuleConfig   result  =
          securityServiceConfig.getAuditModuleConfigMap().get( getDefaultInstanceName() );
     
      if ( result == null )
      {
          result  = createInstance( securityServiceConfig,
View Full Code Here

Examples of com.sun.appserv.management.config.AuditModuleConfig

            if(!edit){
                getDefaultAuditModuleAttributes(handlerCtx);
                return;
            }
            Map<String,AuditModuleConfig>auditModules = config.getSecurityServiceConfig().getAuditModuleConfigMap();
            AuditModuleConfig module = (AuditModuleConfig)auditModules.get((String)handlerCtx.getInputValue("Name"));
            Map<String, String> props = module.getProperties();
            String classname = module.getClassname();
            handlerCtx.setOutputValue("Classname", classname);
            handlerCtx.setOutputValue("Properties", props);
        }catch (Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
View Full Code Here

Examples of com.sun.appserv.management.config.AuditModuleConfig

                config.getSecurityServiceConfig().createAuditModuleConfig(
                        (String)handlerCtx.getInputValue("Name"), ((String)handlerCtx.getInputValue("Classname")), true, optionalMap);
                return;
            }
            Map<String,AuditModuleConfig>modules = config.getSecurityServiceConfig().getAuditModuleConfigMap();
            AuditModuleConfig module = (AuditModuleConfig)modules.get((String)handlerCtx.getInputValue("Name"));
            ArrayList removeProps = (ArrayList)handlerCtx.getInputValue("RemoveProps");
            Map addProps = (Map)handlerCtx.getInputValue("AddProps");
            String[] remove = (String[])removeProps.toArray(new String[ removeProps.size()]);
            for(int i=0; i<remove.length; i++){
                module.removeProperty(remove[i]);
            }
            if(addProps != null ){
                Iterator additer = addProps.keySet().iterator();
                while(additer.hasNext()){
                    Object key = additer.next();
                    String addvalue = (String)addProps.get(key);
                    module.setPropertyValue((String)key, addvalue);
                   
                }
            }
            module.setClassname(((String)handlerCtx.getInputValue("Classname")));
        }catch (Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
       
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.