use of org.olat.group.model.BusinessGroupQueryParams in project OpenOLAT by OpenOLAT.
the class SearchBusinessGroupListController method getDefaultSearchParams.
@Override
protected BusinessGroupQueryParams getDefaultSearchParams() {
BusinessGroupQueryParams params = new BusinessGroupQueryParams();
// security
if (!isAdmin()) {
params.setOwner(true);
params.setAttendee(true);
params.setWaiting(true);
}
return params;
}
use of org.olat.group.model.BusinessGroupQueryParams in project OpenOLAT by OpenOLAT.
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 OpenOLAT.
the class SelectOwnedBusinessGroupController method getDefaultSearchParams.
@Override
protected BusinessGroupQueryParams getDefaultSearchParams() {
BusinessGroupQueryParams params = new BusinessGroupQueryParams(true, false);
params.setWaiting(false);
return params;
}
use of org.olat.group.model.BusinessGroupQueryParams in project OpenOLAT by OpenOLAT.
the class SelectOwnedBusinessGroupController method getSearchParams.
@Override
protected BusinessGroupQueryParams getSearchParams(SearchEvent event) {
BusinessGroupQueryParams params = new BusinessGroupQueryParams(true, false);
params.setWaiting(false);
return params;
}
use of org.olat.group.model.BusinessGroupQueryParams in project OpenOLAT by OpenOLAT.
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;
}
Aggregations