Calendar API v3 (revision 41)



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

java.lang.Object
  extended by java.util.AbstractMap<String,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:
Cloneable, Map<String,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

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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
AclRule()
           
 
Method Summary
 AclRule clone()
           
 String getEtag()
          ETag of the resource.
 String getId()
          Identifier of the ACL rule.
 String getKind()
          Type of the resource ("calendar#aclRule").
 String getRole()
          The role assigned to the scope.
 AclRule.Scope getScope()
          The scope of the rule.
 AclRule set(String fieldName, Object value)
           
 AclRule setEtag(String etag)
          ETag of the resource.
 AclRule setId(String id)
          Identifier of the ACL rule.
 AclRule setKind(String kind)
          Type of the resource ("calendar#aclRule").
 AclRule setRole(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
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, 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 String getEtag()
ETag of the resource.

Returns:
value or null for none

setEtag

public AclRule setEtag(String etag)
ETag of the resource.

Parameters:
etag - etag or null for none

getId

public String getId()
Identifier of the ACL rule.

Returns:
value or null for none

setId

public AclRule setId(String id)
Identifier of the ACL rule.

Parameters:
id - id or null for none

getKind

public String getKind()
Type of the resource ("calendar#aclRule").

Returns:
value or null for none

setKind

public AclRule setKind(String kind)
Type of the resource ("calendar#aclRule").

Parameters:
kind - kind or null for none

getRole

public 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.

Returns:
value or null for none

setRole

public AclRule setRole(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.

Parameters:
role - role or null for none

getScope

public AclRule.Scope getScope()
The scope of the rule.

Returns:
value or null for none

setScope

public AclRule setScope(AclRule.Scope scope)
The scope of the rule.

Parameters:
scope - scope or null for none

set

public AclRule set(String fieldName,
                   Object value)
Overrides:
set in class GenericJson

clone

public AclRule clone()
Overrides:
clone in class GenericJson