Package org.ejbca.core.model.services

Examples of org.ejbca.core.model.services.ServiceExistsException


                logSession.log(admin, admin.getCaId(), LogConstants.MODULE_SERVICES, new java.util.Date(), null, null, LogConstants.EVENT_INFO_SERVICESEDITED,
                        intres.getLocalizedMessage("services.serviceadded", name));
            } else {
                logSession.log(admin, admin.getCaId(), LogConstants.MODULE_SERVICES, new java.util.Date(), null, null, LogConstants.EVENT_ERROR_SERVICESEDITED,
                        intres.getLocalizedMessage("services.erroraddingservice", name));
                throw new ServiceExistsException();
            }
        } else {
            logSession.log(admin, admin.getCaId(), LogConstants.MODULE_SERVICES, new Date(), null, null, LogConstants.EVENT_ERROR_NOTAUTHORIZEDTORESOURCE,
                    intres.getLocalizedMessage("services.notauthorizedtoadd", name));
        }
View Full Code Here


            logSession.log(admin, admin.getCaId(), LogConstants.MODULE_SERVICES, new java.util.Date(), null, null, LogConstants.EVENT_INFO_SERVICESEDITED,
                    intres.getLocalizedMessage("services.servicerenamed", oldname, newname));
        } else {
            logSession.log(admin, admin.getCaId(), LogConstants.MODULE_SERVICES, new java.util.Date(), null, null, LogConstants.EVENT_ERROR_SERVICESEDITED,
                    intres.getLocalizedMessage("services.errorrenamingservice", oldname, newname));
            throw new ServiceExistsException();
        }
        log.trace("<renameService()");
    }
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.services.ServiceExistsException

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.