2 * Copyright (C) 2010 Prasanta Paul, http://prasanta-paul.blogspot.com
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
20 * ACL details of a SpreadSheet
\r
22 * @author Prasanta Paul
\r
25 public class Collaborator {
\r
29 * Owner of a SpreadSheet
\r
31 public static String ROLE_OWNER = "owner";
\r
33 * Able to Read/Write and Further Share as Reader/Writer
\r
35 public static String ROLE_WRITER = "writer";
\r
39 public static String ROLE_READER = "reader";
\r
43 * Use this scope to share it with an Email account
\r
45 public static String SCOPE_USER = "user";
\r
47 * Use this scope to share it with a Group
\r
49 public static String SCOPE_GROUP = "group";
\r
51 * Use this scope to share it with a Domain
\r
53 public static String SCOPE_DOMAIN = "domain";
\r
55 * Use this scope to make the SpreadSheet publicly accessible to anyuser
\r
57 public static String SCOPE_DEFAULT = "default";
\r
65 * Get Role - {"owner", "writer", "reader"}
\r
68 public String getRole() {
\r
72 * Set Role - {"owner", "writer", "reader"}
\r
73 * @param role {ROLE_OWNER, ROLE_WRITER, ROLE_READER}
\r
75 public void setRole(String role) {
\r
79 * Get Scope Type - {"user", "group", "domain", "default"}
\r
82 public String getScopeType() {
\r
86 * Set Scope Type {"user", "group", "domain", "default"}
\r
87 * @param scopeType {SCOPE_USER, SCOPE_GROUP, SCOPE_DOMAIN, SCOPE_DEFAULT}
\r
89 public void setScopeType(String scopeType) {
\r
90 this.scopeType = scopeType;
\r
93 * Get Scope Value e.g. <email address>
\r
96 public String getScopeValue() {
\r
101 * @param scopeValue Email Address
\r
103 public void setScopeValue(String scopeValue) {
\r
104 this.scopeValue = scopeValue;
\r
110 public String getEditLink() {
\r
117 public void setEditLink(String editLink) {
\r
118 this.editLink = editLink;
\r