Examples of InvalidIdException


Examples of com.alu.e3.common.InvalidIDException

  }

  @Override
  public void updateCA(Certificate cert) throws InvalidIDException {
    if( ! cachingTableCA.containsKey(cert.getId()))
      throw new InvalidIDException("A CA with that ID [" + cert.getId() + "] doesn't exist");

    if( cert.getData() != null && !cert.getData().isEmpty() )
      throw new IllegalArgumentException("CA data cannot be changed with an update");

View Full Code Here

Examples of com.alu.e3.common.InvalidIDException

  }

  @Override
  public void removeCA(String id) throws InvalidIDException {
    if( ! cachingTableCA.containsKey(id))
      throw new InvalidIDException("A CA with that ID [" + id + "] doesn't exist");

    cachingTableCA.remove(id);
    cachingTableCADetails.remove(id);
  }
View Full Code Here

Examples of com.alu.e3.common.InvalidIDException

  }

  @Override
  public SSLCRL getCRLById(String id) throws InvalidIDException {
    if(!cachingTableCRL.containsKey(id))
      throw new InvalidIDException("A CRL with that ID [" + id + "] doesn't exist");
    SSLCRL crl = cachingTableCRL.get(id)

    return crl;
  }
View Full Code Here

Examples of com.alu.e3.common.InvalidIDException

  }

  @Override
  public void removeCRL(String id) throws InvalidIDException {
    if( ! cachingTableCRL.containsKey(id))
      throw new InvalidIDException("A CRL with that ID [" + id + "] doesn't exist");

    cachingTableCRL.remove(id);
  }
View Full Code Here

Examples of de.danet.an.workflow.api.InvalidIdException

        participant = ((ProcessLocal)containerLocal())
                        .processDefinition().participantById(performer());
    } catch (InvalidIdException e) {
        String pid = (String)processContext().get (performer());
        if (pid == null) {
      throw new InvalidIdException
          ("Referenced data field \"" + performer() + "\""
           + " does not contain valid participant id.");
        }
        participant = ((ProcessLocal)containerLocal())
                        .processDefinition().participantById(pid);
View Full Code Here

Examples of de.danet.an.workflow.api.InvalidIdException

     * @return the dedicated application.
     */
    public Application applicationById (String id) throws InvalidIdException {
  Application a = (Application)applications.get (id);
  if (a == null) {
      throw new InvalidIdException ("No application with Id = " + id);
  }
  return a;
    }
View Full Code Here

Examples of de.danet.an.workflow.api.InvalidIdException

     * @throws InvalidIdException if no participant with the given id exists.
     */   
    public Participant participantById(String id) throws InvalidIdException {
  Participant p = (Participant)participants.get (id);
  if (p == null) {
      throw new InvalidIdException ("No participant with Id = " + id);
  }
  return p;
    }
View Full Code Here

Examples of org.openbel.framework.ws.utils.InvalidIdException

            kamInfo = kamCatalogDao.getKamInfoById(kamNodeRef.getKamInfoId());
        } catch (SQLException e) {
            throw new RequestException(errorMsg, e);
        }
        if (kamInfo == null) {
            throw new InvalidIdException(kamNodeRef.getEncodedString());
        }
        final Kam kam = kamCacheService.getKam(kamInfo.getName());
        if (kam == null) {
            throw new InvalidIdException(kamNodeRef.getEncodedString());
        }
        return kam;
    }
View Full Code Here

Examples of org.openbel.framework.ws.utils.InvalidIdException

                    getKamInfo(kamElementRef, "Error processing KAM node");
            final org.openbel.framework.api.Kam objKam =
                    kamCacheService.getKam(kamInfo.getName());
            if (objKam == null) {
                throw new KamStoreServiceException(
                        new InvalidIdException(kamElementRef.getEncodedString()));
            }

            // Get the real KamNode from the Kam
            org.openbel.framework.api.Kam.KamNode objKamNode =
                    objKam.findNode(kamElementRef.getKamStoreObjectId());
View Full Code Here

Examples of org.openbel.framework.ws.utils.InvalidIdException

                    getKamInfo(kamElementRef, "Error processing KAM edge");
            final org.openbel.framework.api.Kam objKam =
                    kamCacheService.getKam(kamInfo.getName());
            if (objKam == null) {
                throw new KamStoreServiceException(
                        new InvalidIdException(kamElementRef.getEncodedString()));
            }

            // Get the real KamEdge from the Kam
            org.openbel.framework.api.Kam.KamEdge objKamEdge =
                    objKam.findEdge(kamElementRef.getKamStoreObjectId());
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.