Search in sources :

Example 1 with Scope

use of com.google.api.services.calendar.model.AclRule.Scope in project muikku by otavanopisto.

the class GoogleCalendarClient method insertCalendarUserAclRule.

public AclRule insertCalendarUserAclRule(String calendarId, String email, String role) throws CalendarServiceException {
    Scope scope = new Scope();
    scope.setType("user");
    scope.setValue(email);
    AclRule aclRule = new AclRule();
    aclRule.setRole(role);
    aclRule.setScope(scope);
    return insertCalendarAclRule(calendarId, aclRule);
}
Also used : Scope(com.google.api.services.calendar.model.AclRule.Scope) AclRule(com.google.api.services.calendar.model.AclRule)

Aggregations

AclRule (com.google.api.services.calendar.model.AclRule)1 Scope (com.google.api.services.calendar.model.AclRule.Scope)1