Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.AuditModule


     */
    public void auditModuleCreated(AuditModuleEvent event)
             throws AdminEventListenerException {
        try {
            String moduleName = event.getModuleName();
            AuditModule am = getAuditModule(moduleName,
                    event.getConfigContext());
            String classname = am.getClassname();
            Properties props = getAuditModuleProperties(am);     

            AuditManager manager =
                    AuditManagerFactory.getInstance().getAuditManagerInstance();
            manager.addAuditModule(moduleName, classname, props);
View Full Code Here


    public void auditModuleUpdated(AuditModuleEvent event)
             throws AdminEventListenerException {
        try {
            String moduleName = event.getModuleName();

            AuditModule am = getAuditModule(moduleName,
                    event.getConfigContext());
            String classname = am.getClassname();
            Properties props = getAuditModuleProperties(am);     

            AuditModule oldAm = getAuditModule(moduleName,
                    event.getOldConfigContext());
            String oldClassname = oldAm.getClassname();
            Properties oldProps = getAuditModuleProperties(oldAm);     

            AuditManager manager =
                    AuditManagerFactory.getInstance().getAuditManagerInstance();
            if (!classname.equals(oldClassname)) {
View Full Code Here

        try {
            ConfigSupport.apply(new SingleConfigCode<SecurityService>() {

                public Object run(SecurityService param)
                throws PropertyVetoException, TransactionFailure {
                AuditModule newAuditModule = param.createChild(AuditModule.class);
                    populateAuditModuleElement(newAuditModule);                   
                    param.getAuditModule().add(newAuditModule);
                    return newAuditModule;
                }
            }, securityService);
View Full Code Here

        try {
            ConfigSupport.apply(new SingleConfigCode<SecurityService>() {

                public Object run(SecurityService param)
                throws PropertyVetoException, TransactionFailure {
                AuditModule newAuditModule = param.createChild(AuditModule.class);
                    populateAuditModuleElement(newAuditModule);                   
                    param.getAuditModule().add(newAuditModule);
                    return newAuditModule;
                }
            }, securityService);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.AuditModule

Copyright © 2018 www.massapicom. 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.