Search in sources :

Example 6 with Permission

use of com.google.api.services.drive.model.Permission in project local-data-aragopedia by aragonopendata.

the class GoogleDriveAPI method createPermission.

private Permission createPermission() {
    Permission newPermission = new Permission();
    newPermission.setDomain(Prop.domainPermission);
    newPermission.setValue(Prop.domainPermission);
    newPermission.setType("domain");
    newPermission.setRole("writer");
    return newPermission;
}
Also used : Permission(com.google.api.services.drive.model.Permission)

Aggregations

Permission (com.google.api.services.drive.model.Permission)6 File (com.google.api.services.drive.model.File)4 User (com.google.api.services.drive.model.User)4 IOException (java.io.IOException)4 ArrayList (java.util.ArrayList)4 FileContent (com.google.api.client.http.FileContent)2 ParentReference (com.google.api.services.drive.model.ParentReference)2 GeneralSecurityException (java.security.GeneralSecurityException)2 ParseException (java.text.ParseException)2