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