com.vodafone360.people.datatypes
Enum ActivityItem.Visibility

java.lang.Object
  extended by java.lang.Enum<ActivityItem.Visibility>
      extended by com.vodafone360.people.datatypes.ActivityItem.Visibility
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ActivityItem.Visibility>
Enclosing class:
ActivityItem

public static enum ActivityItem.Visibility
extends java.lang.Enum<ActivityItem.Visibility>

Visibility flags for ActivityItem


Enum Constant Summary
ADDRESS_BOOK
          Send a 'received' activity to all contacts in the user's address who are interested in this activity type as indicated by their privacy settings.
BUSINESS_CONTACTS
          Send a 'received' activity to all contacts in the user's address who are interested in this activity type as indicated by their privacy settings AND which are business contacts.
CONNECTED_FRIENDS
          Send a notification activity to all connected friends of user or contact.
KNOW_USER
          Send a 'received' activity to all contacts in the user's address who are interested in this activity type as indicated by their privacy settings.
ORIGINATOR
          Do not extend visibility and just store the activity.
RECIPIENT
          Send a 'received' activity to the recipient contact that is specified on the contactlist / unknowncontacts.
 
Field Summary
private  java.lang.String mVisibilityCode
           
 
Method Summary
private static ActivityItem.Visibility findVisibility(java.lang.String v)
          Find visibility item for specified String
 java.lang.String getVisibilityCode()
          String value associated with visibility item.
static ActivityItem.Visibility valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ActivityItem.Visibility[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ORIGINATOR

public static final ActivityItem.Visibility ORIGINATOR
Do not extend visibility and just store the activity. This is assumed default when no visibility is specified explicitly at all.


RECIPIENT

public static final ActivityItem.Visibility RECIPIENT
Send a 'received' activity to the recipient contact that is specified on the contactlist / unknowncontacts.


ADDRESS_BOOK

public static final ActivityItem.Visibility ADDRESS_BOOK
Send a 'received' activity to all contacts in the user's address who are interested in this activity type as indicated by their privacy settings.


BUSINESS_CONTACTS

public static final ActivityItem.Visibility BUSINESS_CONTACTS
Send a 'received' activity to all contacts in the user's address who are interested in this activity type as indicated by their privacy settings AND which are business contacts.


KNOW_USER

public static final ActivityItem.Visibility KNOW_USER
Send a 'received' activity to all contacts in the user's address who are interested in this activity type as indicated by their privacy settings.


CONNECTED_FRIENDS

public static final ActivityItem.Visibility CONNECTED_FRIENDS
Send a notification activity to all connected friends of user or contact.

Field Detail

mVisibilityCode

private java.lang.String mVisibilityCode
Method Detail

values

public static ActivityItem.Visibility[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ActivityItem.Visibility c : ActivityItem.Visibility.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ActivityItem.Visibility valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getVisibilityCode

public java.lang.String getVisibilityCode()
String value associated with visibility item.

Returns:
String value for visibility item.

findVisibility

private static ActivityItem.Visibility findVisibility(java.lang.String v)
Find visibility item for specified String

Parameters:
tag - String value to find visibility item for
Returns:
visibility item for specified String, null otherwise


JavaDoc