Search in sources :

Example 31 with BusinessGroupQueryParams

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;
}
Also used : BusinessGroupQueryParams(org.olat.group.model.BusinessGroupQueryParams)

Example 32 with BusinessGroupQueryParams

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;
}
Also used : BusinessGroupQueryParams(org.olat.group.model.BusinessGroupQueryParams)

Example 33 with BusinessGroupQueryParams

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;
}
Also used : BusinessGroupQueryParams(org.olat.group.model.BusinessGroupQueryParams)

Example 34 with BusinessGroupQueryParams

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;
}
Also used : BusinessGroupQueryParams(org.olat.group.model.BusinessGroupQueryParams)

Example 35 with BusinessGroupQueryParams

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;
}
Also used : BusinessGroupQueryParams(org.olat.group.model.BusinessGroupQueryParams)

Aggregations

BusinessGroupQueryParams (org.olat.group.model.BusinessGroupQueryParams)82 Test (org.junit.Test)38 Identity (org.olat.core.id.Identity)38 BusinessGroup (org.olat.group.BusinessGroup)38 StatisticsBusinessGroupRow (org.olat.group.model.StatisticsBusinessGroupRow)38 OpenBusinessGroupRow (org.olat.group.model.OpenBusinessGroupRow)36 BusinessGroupRow (org.olat.group.model.BusinessGroupRow)34 SearchBusinessGroupParams (org.olat.group.model.SearchBusinessGroupParams)16 RepositoryEntry (org.olat.repository.RepositoryEntry)8 Offer (org.olat.resource.accesscontrol.Offer)4 OfferAccess (org.olat.resource.accesscontrol.OfferAccess)4 AccessMethod (org.olat.resource.accesscontrol.model.AccessMethod)4 TokenAccessMethod (org.olat.resource.accesscontrol.model.TokenAccessMethod)4 ArrayList (java.util.ArrayList)2 Calendar (java.util.Calendar)2 Date (java.util.Date)2 HashSet (java.util.HashSet)2 BGPermission (org.olat.course.member.PermissionHelper.BGPermission)2 BusinessGroupMembership (org.olat.group.BusinessGroupMembership)2 BusinessGroupRowComparator (org.olat.group.model.comparator.BusinessGroupRowComparator)2