Package org.eclipse.ecf.remoteservice.util

Examples of org.eclipse.ecf.remoteservice.util.RemoteFilterImpl


    this.customizer = (customizer == null) ? this : customizer;
    this.listenerFilter = "(&(" + Constants.OBJECTCLASS + "=" + ((String[]) reference.getProperty(Constants.OBJECTCLASS))[0] //$NON-NLS-1$ //$NON-NLS-2$
        + ")(" + Constants.SERVICE_ID + "=" + reference.getProperty(Constants.SERVICE_ID).toString() + "))"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    this.noUserFilter = true;
    try {
      this.filter = new RemoteFilterImpl(listenerFilter);
    } catch (InvalidSyntaxException e) { // we could only get this exception
      // if the ServiceReference was
      // invalid
      throw new IllegalArgumentException("unexpected InvalidSyntaxException: " + e.getMessage()); //$NON-NLS-1$
    }
View Full Code Here


    this.containerIDs = containerIDs;
    this.customizer = (customizer == null) ? this : customizer;
    this.listenerFilter = "(" + Constants.OBJECTCLASS + "=" + clazz.toString() + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    this.noUserFilter = true;
    try {
      this.filter = new RemoteFilterImpl(listenerFilter);
    } catch (InvalidSyntaxException e) { // we could only get this exception
      // if the clazz argument was
      // malformed
      throw new IllegalArgumentException("unexpected InvalidSyntaxException: " + e.getMessage()); //$NON-NLS-1$
    }
View Full Code Here

      }
    }, null);
  }

  public IRemoteFilter createRemoteFilter(String filter) throws InvalidSyntaxException {
    return new RemoteFilterImpl(filter);
  }
View Full Code Here

    return super.getRemoteServiceReferences(transformTarget(target, filter), clazz, filter);
  }

  protected ID transformTarget(ID originalTarget, String filter) throws InvalidSyntaxException {
    if (originalTarget != null && filter != null && originalTarget instanceof RestID)
      ((RestID) originalTarget).setRsId(new RemoteFilterImpl(filter).getRsId());
    return originalTarget;
  }
View Full Code Here

    if (reg == null)
      return null;
    if (target != null)
      connectToRemoteServiceTarget(target);

    final IRemoteFilter remoteFilter = (filter == null) ? null : new RemoteFilterImpl(filter);
    // then from the local registry
    ID localContainerID = getLocalContainerID();
    // Now we lookup remote service references
    final List<IRemoteServiceReference> references = new ArrayList();
    if (idFilter == null || Arrays.asList(idFilter).contains(localContainerID)) {
View Full Code Here

    return false;
  }

  public IRemoteFilter createRemoteFilter(String filter)
      throws InvalidSyntaxException {
    return new RemoteFilterImpl(filter);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.remoteservice.util.RemoteFilterImpl

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.