Package jease.cms.domain

Examples of jease.cms.domain.Factory


  /**
   * Returns factory-synchronized properties for given content in
   * relation to given parent container.
   */
  public static Property[] getProperties(Content parent, Content content) {
    Factory factory = getFactory(parent, content);
    if (factory != null && factory != parent) {
      return factory.getProperties(content);
    } else {
      return content.getProperties();
    }
  }
View Full Code Here


    }
    if (revisionSelection.getParent() != null) {
      revisionSelection.setValues(getNode().getRevisions());
    }
    if (propertyManager.getParent() != null) {
      Factory factory = Properties.getFactory(
          (Content) JeaseSession.getContainer(), getNode());
      if (factory != null && factory != JeaseSession.getContainer()) {
        if (id.isEmpty()
            && Validations.isNotEmpty(factory.getSequence())) {
          id.setText(String.valueOf(Sequences.getNext(factory
              .getSequence())));
        }
        propertyManager.setProperties(factory.getProperties(getNode()));
      } else {
        propertyManager.setProperties(getNode().getProperties());
      }
    }
    load();
View Full Code Here

TOP

Related Classes of jease.cms.domain.Factory

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.