Package org.glite.authz.pap.papmanagement

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


   
    @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

Related Classes of org.glite.authz.pap.papmanagement.PapManagerException

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.