Tabnine Logo
Destination.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.granite.config.flex.Destination
constructor

Best Java code snippets using org.granite.config.flex.Destination.<init> (Showing top 7 results out of 315)

origin: org.graniteds/granite-server

  protected Destination buildDestination() {
    List<String> channelIds = new ArrayList<String>();
    channelIds.add("graniteamf");
    Destination destination = new Destination(source, channelIds, new XMap(), roles, null, null);
    if (securizer != null)
      destination.setSecurizer(securizer);
    return destination;
  }
}
origin: org.graniteds/granite-client

  public static Destination forElement(XMap element, Adapter defaultAdapter, Map<String, Adapter> adaptersMap) {
    String id = element.get("@id");

    List<String> channelRefs = new ArrayList<String>();
    for (XMap channel : element.getAll("channels/channel[@ref]"))
      channelRefs.add(channel.get("@ref"));

    XMap properties = new XMap(element.getOne("properties"));

    List<String> rolesList = null;
    if (element.containsKey("security/security-constraint/roles/role")) {
      rolesList = new ArrayList<String>();
      for (XMap role : element.getAll("security/security-constraint/roles/role"))
        rolesList.add(role.get("."));
    }

    XMap adapter = element.getOne("adapter[@ref]");
    Adapter adapterRef = adapter != null && adaptersMap != null
      ? adaptersMap.get(adapter.get("@ref"))
      : defaultAdapter;

    return new Destination(id, channelRefs, properties, rolesList, adapterRef, null);
  }
}
origin: org.graniteds/granite-server

  public static Destination forElement(XMap element, Adapter defaultAdapter, Map<String, Adapter> adaptersMap) {
    String id = element.get("@id");

    List<String> channelRefs = new ArrayList<String>();
    for (XMap channel : element.getAll("channels/channel[@ref]"))
      channelRefs.add(channel.get("@ref"));

    XMap properties = new XMap(element.getOne("properties"));

    List<String> rolesList = null;
    if (element.containsKey("security/security-constraint/roles/role")) {
      rolesList = new ArrayList<String>();
      for (XMap role : element.getAll("security/security-constraint/roles/role"))
        rolesList.add(role.get("."));
    }

    XMap adapter = element.getOne("adapter[@ref]");
    Adapter adapterRef = adapter != null && adaptersMap != null
      ? adaptersMap.get(adapter.get("@ref"))
      : defaultAdapter;

    return new Destination(id, channelRefs, properties, rolesList, adapterRef, null);
  }
}
origin: org.graniteds/granite-server

  protected Destination buildDestination(Adapter adapter) {
    List<String> channelIds = new ArrayList<String>();
    channelIds.add("gravityamf");
    Destination destination = new Destination(id, channelIds, new XMap(), roles, adapter, null);
    destination.getProperties().put("no-local", String.valueOf(noLocal));
    destination.getProperties().put("session-selector", String.valueOf(sessionSelector));
    if (getSecurizerClassName() != null)
      destination.getProperties().put("securizer", securizerClassName);
    if (getSecurizer() != null)
      destination.setSecurizer(getSecurizer());
    return destination;
  }
}
origin: org.graniteds/granite-server

  props.put("securizer", anno.securizer().getName());
Destination destination = new Destination(anno.id(), channelIds, props, roles, null, clazz);
origin: org.graniteds/granite-client

  props.put("securizer", anno.securizer().getName());
Destination destination = new Destination(anno.id(), channelIds, props, roles, null, clazz);
origin: org.graniteds/granite-server

channelIds.add("graniteamf");
List<String> tideRoles = serverFilter.tideRoles().length == 0 ? null : Arrays.asList(serverFilter.tideRoles());
Destination destination = new Destination(type, channelIds, new XMap(), tideRoles, null, null);
destination.getProperties().put("factory", "tide-" + type + "-factory");
if (!("".equals(serverFilter.entityManagerFactoryJndiName())))
org.granite.config.flexDestination<init>

Popular methods of Destination

  • getProperties
  • getId
  • getScannedClass
  • addRemoveListener
  • forElement
  • getSecurizer
  • remove
  • getAdapter
  • getRoles
  • isSecured
  • setSecurizer
  • setSecurizer

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JLabel (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now