Package org.structr.core.property

Examples of org.structr.core.property.PropertyMap$PropertyKeyComparator


 
  public void test07SearchByStaticMethod01() {

    try {

      PropertyMap props     = new PropertyMap();
      final PropertyKey key = AbstractNode.name;
      final String name     = "89w3hkl sdfghsdkljth";

      props.put(key, name);

      final AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
       
View Full Code Here


  public void test08SearchByStaticMethod02() {

    try {

      PropertyMap props     = new PropertyMap();
      final PropertyKey key = AbstractNode.name;
      final String name     = "89w3hkl sdfghsdkljth";

      props.put(key, name);

      final AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
View Full Code Here

  public void test08SearchByStaticMethodWithNullSearchValue01() {

    try {

      PropertyMap props     = new PropertyMap();
      final PropertyKey key = AbstractNode.name;
      final String name     = "abc";

      props.put(key, name);

      createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
View Full Code Here

  public void test09SearchByEmptyStringField() {

    try {

      PropertyMap props = new PropertyMap();
      AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
       
        Result result = app.nodeQuery(TestOne.class).and(TestOne.aString, null).includeDeletedAndHidden().getResult();
View Full Code Here

  public void test10SearchByEmptyDateField() {

    try {

      PropertyMap props     = new PropertyMap();
      AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
       
        Result result = app.nodeQuery(TestOne.class).and(TestOne.aDate, null).includeDeletedAndHidden().getResult();
View Full Code Here

 
  public void test11SearchByEmptyIntField() {

    try {

      PropertyMap props     = new PropertyMap();
      AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
       
        Result result = app.nodeQuery(TestOne.class).and(TestOne.anInt, null).includeDeletedAndHidden().getResult();
View Full Code Here

 
  public void test12SearchByEmptyLongField() {

    try {
     
      PropertyMap props     = new PropertyMap();
      AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {

        Result result = app.nodeQuery(TestOne.class).and(TestOne.aLong, null).includeDeletedAndHidden().getResult();
View Full Code Here

  public void test13SearchByEmptyDoubleField() {

    try {
     
      PropertyMap props = new PropertyMap();
      AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
       
        Result result = app.nodeQuery(TestOne.class).and(TestOne.aDouble, null).includeDeletedAndHidden().getResult();
View Full Code Here

    }
   
    try {
     
      // convertFromInput
      PropertyMap properties = new PropertyMap();

      properties.put(AbstractNode.type, Widget.class.getSimpleName());
      properties.put(AbstractNode.name, name);
      properties.put(Widget.source, source);

      app.create(Widget.class, properties);

    } catch (Throwable t) {
View Full Code Here

      throw new UnsupportedOperationException("cloneNode with deep=true is not supported yet.");

    } else {

      final PropertyMap properties = new PropertyMap();

      for (Iterator<PropertyKey> it = getPropertyKeys(uiView.name()).iterator(); it.hasNext();) {

        PropertyKey key = it.next();

        // omit system properties (except type), parent/children and page relationships
        if (key.equals(GraphObject.type) || (!key.isUnvalidated()
          && !key.equals(GraphObject.id)
          && !key.equals(DOMNode.ownerDocument) && !key.equals(DOMNode.pageId)
          && !key.equals(DOMNode.parent) && !key.equals(DOMNode.parentId)
          && !key.equals(DOMElement.syncedNodes)
          && !key.equals(DOMNode.children) && !key.equals(DOMNode.childrenIds))) {

          properties.put(key, getProperty(key));
        }
      }

      final App app = StructrApp.getInstance(securityContext);
View Full Code Here

TOP

Related Classes of org.structr.core.property.PropertyMap$PropertyKeyComparator

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.