Search in sources :

Example 31 with NarrowedPropertyManager

use of org.olat.properties.NarrowedPropertyManager in project openolat by klemens.

the class CollaborationTools method getNewsAccessProperty.

/**
 * @return Gets the news access property
 */
public String getNewsAccessProperty() {
    NarrowedPropertyManager npm = NarrowedPropertyManager.getInstance(ores);
    Property property = npm.findProperty(null, null, PROP_CAT_BG_COLLABTOOLS, KEY_NEWS_ACCESS);
    if (property == null) {
        // no entry
        return null;
    }
    // read the text value of the existing property
    String text = property.getStringValue();
    return text;
}
Also used : NarrowedPropertyManager(org.olat.properties.NarrowedPropertyManager) Property(org.olat.properties.Property)

Example 32 with NarrowedPropertyManager

use of org.olat.properties.NarrowedPropertyManager in project openolat by klemens.

the class CollaborationTools method lookupCalendarAccess.

public Long lookupCalendarAccess() {
    NarrowedPropertyManager npm = NarrowedPropertyManager.getInstance(ores);
    Property property = npm.findProperty(null, null, PROP_CAT_BG_COLLABTOOLS, KEY_CALENDAR_ACCESS);
    if (property == null) {
        // no entry
        return null;
    }
    // read the long value of the existing property
    return property.getLongValue();
}
Also used : NarrowedPropertyManager(org.olat.properties.NarrowedPropertyManager) Property(org.olat.properties.Property)

Aggregations

NarrowedPropertyManager (org.olat.properties.NarrowedPropertyManager)32 Property (org.olat.properties.Property)32 AssertException (org.olat.core.logging.AssertException)8 ForumManager (org.olat.modules.fo.manager.ForumManager)8 Forum (org.olat.modules.fo.Forum)6 BusinessGroup (org.olat.group.BusinessGroup)4 PortfolioStructure (org.olat.portfolio.model.structel.PortfolioStructure)4 SearchResourceContext (org.olat.search.service.SearchResourceContext)4 File (java.io.File)2 IOException (java.io.IOException)2 URISyntaxException (java.net.URISyntaxException)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2 Document (org.apache.lucene.document.Document)2 Before (org.junit.Before)2 CollaborationTools (org.olat.collaboration.CollaborationTools)2 CalendarManager (org.olat.commons.calendar.CalendarManager)2 ImportToCalendarManager (org.olat.commons.calendar.manager.ImportToCalendarManager)2 CalendarController (org.olat.commons.calendar.ui.CalendarController)2 WeeklyCalendarController (org.olat.commons.calendar.ui.WeeklyCalendarController)2