Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.mp.privacy
Class LocationPrivacyGrantee

java.lang.Object
  |
  +--oracle.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
           
static java.lang.String COMMUNITY_GRANTEE
           
static java.lang.String USER_GRANTEE
           

 

Constructor Summary
LocationPrivacyGrantee()
          Constructor.
LocationPrivacyGrantee(Community grantee)
          Constructor.
LocationPrivacyGrantee(ModelObject grantee)
           
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()
           

 

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

 

Field Detail

USER_GRANTEE

public static final java.lang.String USER_GRANTEE
See Also:
Constant Field Values

COMMUNITY_GRANTEE

public static final java.lang.String COMMUNITY_GRANTEE
See Also:
Constant Field Values

ALLUSER_GRANTEE

public static final java.lang.String ALLUSER_GRANTEE
See Also:
Constant Field Values
Constructor Detail

LocationPrivacyGrantee

public LocationPrivacyGrantee(ModelObject grantee)

LocationPrivacyGrantee

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

LocationPrivacyGrantee

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

LocationPrivacyGrantee

public LocationPrivacyGrantee()
Constructor. In this case, all users become grantees.
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()
Overrides:
toString in class java.lang.Object

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.