Examples of PapManagerException


Examples of org.glite.authz.pap.papmanagement.PapManagerException

    public boolean updatePap(Pap pap) throws RemoteException {
        log.info("updateTrustedPAP(" + pap.getAlias() + "," + pap + ");");
        try {

            if (Pap.DEFAULT_PAP_ALIAS.equals(pap.getAlias())) {
                throw new PapManagerException(String.format("Invalid request. \"%s\" cannot be updated",
                                                            Pap.DEFAULT_PAP_ALIAS));
            }

            return UpdatePapOperation.instance(pap).execute();
View Full Code Here

Examples of org.glite.authz.pap.papmanagement.PapManagerException

   
    @Override
    protected Boolean doExecute() {
     
      if (Pap.DEFAULT_PAP_ALIAS.equals(pap.getAlias())) {
        throw new PapManagerException("Forbidden operation: the default PAP is read-only.");
      }

        try {
            PapManager.getInstance().updatePap( pap );
        } catch (NotFoundException e) {
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.