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;
}
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();
}
Aggregations