Package org.olat.properties

Examples of org.olat.properties.PropertyManager.findProperties()


  }

  private Property findProperty(Long courseId, String courseNodeId) {
    PropertyManager propMrg = PropertyManager.getInstance();
    String category = "NID:dial::" + courseNodeId;
    List elements = propMrg.findProperties(null, null, "CourseModule", courseId, category, PROPERTY_NAME);
    if (elements.size() == 0) return null; //no match
    if (elements.size() != 1) throw new AssertException(
        "Found more then one property for a course node 'dialog element' which should never happen!");
    return (Property) elements.get(0);
  }
View Full Code Here


   * @return
   */
  private Map getDeployedCourses() {
    if (deplyedCoursePaths != null) return deplyedCoursePaths;
    PropertyManager pm = PropertyManager.getInstance();
    List props = pm.findProperties(null, null, null, "_o3_", "deployedCourses");
    deplyedCoursePaths = new HashMap(props.size());
    for (Iterator iter = props.iterator(); iter.hasNext();) {
      Property prop = (Property) iter.next();
      Long repoKey = prop.getLongValue();
      RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntry(repoKey);
View Full Code Here

    }
    if (startingTimeMillis<0) {
      throw new IllegalArgumentException("startingTimeMillis must be >= 0");
    }
    PropertyManager pm = PropertyManager.getInstance();
    List properties = pm.findProperties(null, null, null, LOGGING_PROPERTIES_CATEGORY, LOGGING_VERSION_PROPERTY_NAME);
    if (properties!=null && properties.size()>0) {
      // when there are already versions defined, lets see if the one which should be set now is already defined
      for (Iterator it = properties.iterator(); it.hasNext();) {
        Property property = (Property) it.next();
        if (property.getStringValue().equals(String.valueOf(version))) {
View Full Code Here

  }
 
  @Override
  public long getStartingTimeForVersion(int version) {
    PropertyManager pm = PropertyManager.getInstance();
    List properties = pm.findProperties(null, null, null, LOGGING_PROPERTIES_CATEGORY, LOGGING_VERSION_PROPERTY_NAME);
    if (properties!=null && properties.size()>0) {
      // when there are already versions defined, lets see if the one which should be set now is already defined
      for (Iterator it = properties.iterator(); it.hasNext();) {
        Property property = (Property) it.next();
        if (property.getStringValue().equals(String.valueOf(version))) {
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.