Calendar API v3 (revision 30)



com.google.api.services.calendar.model
Class AclRule

java.lang.Object
  extended by java.util.AbstractMap<java.lang.String,java.lang.Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.calendar.model.AclRule
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public final class AclRule
extends GenericJson

Model definition for AclRule.

This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Calendar API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

Author:
Google, Inc.

Nested Class Summary
static class AclRule.Scope
          The scope of the rule.
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
AclRule()
           
 
Method Summary
 java.lang.String getEtag()
          ETag of the resource.
 java.lang.String getId()
          Identifier of the ACL rule.
 java.lang.String getKind()
          Type of the resource ("calendar#aclRule").
 java.lang.String getRole()
          The role assigned to the scope.
 AclRule.Scope getScope()
          The scope of the rule.
 AclRule setEtag(java.lang.String etag)
          ETag of the resource.
 AclRule setId(java.lang.String id)
          Identifier of the ACL rule.
 AclRule setKind(java.lang.String kind)
          Type of the resource ("calendar#aclRule").
 AclRule setRole(java.lang.String role)
          The role assigned to the scope.
 AclRule setScope(AclRule.Scope scope)
          The scope of the rule.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AclRule

public AclRule()
Method Detail

getEtag

public java.lang.String getEtag()
ETag of the resource. The value returned may be null.


setEtag

public AclRule setEtag(java.lang.String etag)
ETag of the resource. The value set may be null.


getId

public java.lang.String getId()
Identifier of the ACL rule. The value returned may be null.


setId

public AclRule setId(java.lang.String id)
Identifier of the ACL rule. The value set may be null.


getKind

public java.lang.String getKind()
Type of the resource ("calendar#aclRule"). The value returned may be null.


setKind

public AclRule setKind(java.lang.String kind)
Type of the resource ("calendar#aclRule"). The value set may be null.


getRole

public java.lang.String getRole()
The role assigned to the scope. Possible values are: - "none" - Provides no access. - "freeBusyReader" - Provides read access to free/busy information. - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs. The value returned may be null.


setRole

public AclRule setRole(java.lang.String role)
The role assigned to the scope. Possible values are: - "none" - Provides no access. - "freeBusyReader" - Provides read access to free/busy information. - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs. The value set may be null.


getScope

public AclRule.Scope getScope()
The scope of the rule. The value returned may be null.


setScope

public AclRule setScope(AclRule.Scope scope)
The scope of the rule. The value set may be null.