Package net.stinfoservices.pacifiq.shared.exception

Examples of net.stinfoservices.pacifiq.shared.exception.CannotEditLaunchedProgramException


                    haveToDisableSaveButton = true;
                    break;
                }
            }
            if (!canValidateGC4Launch) {
                throw new CannotEditLaunchedProgramException(LocaleManager.getInstance(getSession()).getMessageResource(getClass())
                        .getString("EXCEPTION_ACCESS_DENIED_BECAUSE_OF_RIGHTS_PROGRAM_VALIDATION_SIMPLE"));
            }
        }
        alertManagement.alert(user);
        Program prog = programDAO.find(id);
View Full Code Here


        UzerDTO user = (UzerDTO) getSession().getAttribute("user");

        // ProgramManager cannot edit after launch validation.
        if (document.getGcForLaunchsValidated() && !isAdmin && (document.getEcmManager() == null || document.getEcmManager().getId() != user.getId())) {
            // cannot edit a launched program
            throw new CannotEditLaunchedProgramException(MessageFormat.format(LocaleManager.getInstance(getSession()).getMessageResource(getClass())
                    .getString("EXCEPTION_ACCESS_DENIED_BECAUSE_OF_RIGHTS_PROGRAM_VALIDATION"), document.getName()));
        }

        Program program = null;
        if (isAdmin) {
View Full Code Here

TOP

Related Classes of net.stinfoservices.pacifiq.shared.exception.CannotEditLaunchedProgramException

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.