Examples of NullAccessContextException


Examples of org.exist.security.xacml.NullAccessContextException

        // DESIGN_QUESTION : wouldn't that be nice to apply selectStmt right here ?
  }

  public final void setAccessContext(AccessContext accessCtx) {
    if(accessCtx == null)
      {throw new NullAccessContextException();}
    if(this.accessCtx != null)
      {throw new IllegalStateException("Access context can only be set once.");}
    this.accessCtx = accessCtx;
   
  }
View Full Code Here

Examples of org.exist.security.xacml.NullAccessContextException

   * Constructor for XUpdateProcessor.
   */
  public XUpdateProcessor(DBBroker broker, DocumentSet docs, AccessContext accessCtx)
    throws ParserConfigurationException {
    if(accessCtx == null)
      {throw new NullAccessContextException();}
    this.accessCtx = accessCtx;
    final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    factory.setValidating(false);
    this.builder = factory.newDocumentBuilder();
View Full Code Here

Examples of org.exist.security.xacml.NullAccessContextException

    public SortedNodeSet(BrokerPool pool, Subject user, String sortExpr, AccessContext accessCtx) {
        this.sortExpr = sortExpr;
        this.pool = pool;
        this.user = user;
        if(accessCtx == null)
            {throw new NullAccessContextException();}
        this.accessCtx = accessCtx;
    }
View Full Code Here

Examples of org.exist.security.xacml.NullAccessContextException

  private LocalCollectionManagementService() {}
    public LocalCollectionManagementService( Subject user, BrokerPool pool,
                                             LocalCollection parent,
                       AccessContext accessCtx) {
      if(accessCtx == null)
        {throw new NullAccessContextException();}
      this.accessCtx = accessCtx;
        if ( user == null )
            {throw new NullPointerException("User cannot be null");}
        this.parent = parent;
        this.brokerPool = pool;
View Full Code Here

Examples of org.exist.security.xacml.NullAccessContextException

    Subject user,
    BrokerPool pool,
    LocalCollection collection,
    AccessContext accessCtx) {
    if(accessCtx == null)
      {throw new NullAccessContextException();}
    this.accessCtx = accessCtx;
    this.user = user;
    this.collection = collection;
    this.brokerPool = pool;
    this.properties = new Properties(collection.properties);
View Full Code Here

Examples of org.exist.security.xacml.NullAccessContextException

     * @param name
     * @throws XMLDBException
     */
    public LocalCollection(Subject user, final BrokerPool brokerPool, final LocalCollection parent, final XmldbURI name, final AccessContext accessCtx) throws XMLDBException {
        if(accessCtx == null) {
            throw new NullAccessContextException();
        }
        this.accessCtx = accessCtx;
        if (user == null) {
            user = brokerPool.getSecurityManager().getGuestSubject();
        }
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.