Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.mp.privacy
Class LocationPrivacyGrantee

java.lang.Object
  extended byoracle.panama.mp.privacy.LocationPrivacyGrantee

All Implemented Interfaces:
java.io.Serializable

public class LocationPrivacyGrantee
extends java.lang.Object
implements java.io.Serializable

This class represents a privacy grantee, which might be a user, a community, or the set of all users.

See Also:
Serialized Form

Field Summary
static java.lang.String ALLUSER_GRANTEE
A constant representing all users.
static java.lang.String COMMUNITY_GRANTEE
A constant representing a grantee of type COMMUNITY.
static java.lang.String USER_GRANTEE
A constant representing a grantee of type USER.

Constructor Summary
LocationPrivacyGrantee()
Constructor.
LocationPrivacyGrantee(Community grantee)
Constructor.
LocationPrivacyGrantee(ModelObject grantee)
Constructor
LocationPrivacyGrantee(User grantee)
Constructor.

Method Summary
ModelObject getGrantee()
This returns the grantee.
java.lang.String getGranteeType()
This returns the grantee type (USER_GRANTEE, COMMUNITY_GRANTEE, ALLUSER_GRANTEE)
java.lang.String toString()
Returns the string representation of this object

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

ALLUSER_GRANTEE

public static final java.lang.String ALLUSER_GRANTEE
A constant representing all users.
See Also:
Constant Field Values

COMMUNITY_GRANTEE

public static final java.lang.String COMMUNITY_GRANTEE
A constant representing a grantee of type COMMUNITY.
See Also:
Constant Field Values

USER_GRANTEE

public static final java.lang.String USER_GRANTEE
A constant representing a grantee of type USER.
See Also:
Constant Field Values

Constructor Detail

LocationPrivacyGrantee

public LocationPrivacyGrantee()
Constructor. In this case, all users become grantees.

LocationPrivacyGrantee

public LocationPrivacyGrantee(Community grantee)
Constructor. In this case, a community becomes grantee.
Parameters:
grantee - a Community object representing the grantee

LocationPrivacyGrantee

public LocationPrivacyGrantee(ModelObject grantee)
Constructor

LocationPrivacyGrantee

public LocationPrivacyGrantee(User grantee)
Constructor. In this case, a user becomes grantee.
Parameters:
grantee - a User object representing the grantee

Method Detail

getGrantee

public ModelObject getGrantee()
This returns the grantee.
Returns:
a ModelObject representing the grantee

getGranteeType

public java.lang.String getGranteeType()
This returns the grantee type (USER_GRANTEE, COMMUNITY_GRANTEE, ALLUSER_GRANTEE)
Returns:
a String representing the grantee type

toString

public java.lang.String toString()
Returns the string representation of this object
Returns:
the string representation of this object

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.