throw new DelaCSRCheckException(CNNOTFOUND); if (!clusterCert.getAgentId().equals(user)) { throw new DelaCSRCheckException(AGENTIDNOTFOUND);
Users opsOwner = userFacade.findByEmail(owner); Users user = userFacade.findByEmail(toUpdateEmail); if (projOwner.equals(user)) { throw new AppException(Response.Status.BAD_REQUEST.getStatusCode(), "Can not change the role of a project owner.");
if (!project.getOwner().equals(user)) { throw new AppException(Response.Status.BAD_REQUEST.getStatusCode(), ResponseMessages.PROJECT_REMOVAL_NOT_ALLOWED);
if (project.getOwner().equals(p)) { if (pguCerts == null) { pguCerts = new ArrayList<>();