use of org.olat.group.model.BusinessGroupQueryParams in project openolat by klemens.
the class SearchBusinessGroupListController method getSearchParams.
@Override
protected BusinessGroupQueryParams getSearchParams(SearchEvent event) {
BusinessGroupQueryParams params = event.convertToBusinessGroupQueriesParams();
// security
if (!isAdmin() && !params.isAttendee() && !params.isOwner() && !params.isWaiting() && (params.getPublicGroups() == null || !params.getPublicGroups().booleanValue())) {
params.setOwner(true);
params.setAttendee(true);
params.setWaiting(true);
}
return params;
}
use of org.olat.group.model.BusinessGroupQueryParams in project openolat by klemens.
the class SearchEvent method convertToBusinessGroupQueriesParams.
public BusinessGroupQueryParams convertToBusinessGroupQueriesParams() {
BusinessGroupQueryParams params = new BusinessGroupQueryParams();
params.setIdRef(StringHelper.containsNonWhitespace(idRef) ? idRef : null);
params.setName(StringHelper.containsNonWhitespace(name) ? name : null);
params.setDescription(StringHelper.containsNonWhitespace(description) ? description : null);
params.setOwnerName(StringHelper.containsNonWhitespace(ownerName) ? ownerName : null);
params.setCourseTitle(StringHelper.containsNonWhitespace(courseTitle) ? courseTitle : null);
params.setOwner(isOwner());
params.setAttendee(isAttendee());
params.setWaiting(isWaiting());
params.setPublicGroups(getPublicGroups());
params.setResources(getResources());
params.setHeadless(isHeadless());
return params;
}
use of org.olat.group.model.BusinessGroupQueryParams in project openolat by klemens.
the class SelectBusinessGroupCourseAuthorController method getSearchParams.
@Override
protected BusinessGroupQueryParams getSearchParams(SearchEvent event) {
BusinessGroupQueryParams params = new BusinessGroupQueryParams();
params.setAuthorConnection(true);
return params;
}
use of org.olat.group.model.BusinessGroupQueryParams in project openolat by klemens.
the class SelectFavoritBusinessGroupController method getDefaultSearchParams.
@Override
protected BusinessGroupQueryParams getDefaultSearchParams() {
BusinessGroupQueryParams params = new BusinessGroupQueryParams();
params.setMarked(Boolean.TRUE);
params.setAttendee(true);
params.setOwner(true);
params.setWaiting(true);
return params;
}
use of org.olat.group.model.BusinessGroupQueryParams in project openolat by klemens.
the class SelectFavoritBusinessGroupController method getSearchParams.
@Override
protected BusinessGroupQueryParams getSearchParams(SearchEvent event) {
BusinessGroupQueryParams params = new BusinessGroupQueryParams();
params.setMarked(Boolean.TRUE);
params.setAttendee(true);
params.setOwner(true);
params.setWaiting(true);
return params;
}
Aggregations