|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A LBCondition represents a location based condition. A location based condition is a set of location based criteria plus related information such as the condition creator, default expiration time, the default evaluation mode, etc. Only when all the criteria in the condition are satisfied, the condition is considered satisfied.
Field Summary | |
static java.lang.String |
MODE_ONCE The evalution mode : once. |
static java.lang.String |
MODE_REPEAT The evalution mode : repeat. |
static java.lang.String |
STATE_ACTIVATED The state of the condition after the condition is activated. |
static java.lang.String |
STATE_NOT_ACTIVATED The state of the condition when the condition is not activated. |
static java.lang.String |
TARGETTYPE_COMM The community target type |
static java.lang.String |
TARGETTYPE_MSID The MSID target type |
static java.lang.String |
TARGETTYPE_USER The user target type |
static java.lang.String |
TYPE_IN The criteria type IN. |
static java.lang.String |
TYPE_OUT The criteria type OUT. |
static java.lang.String |
TYPENAME |
Method Summary | |
void |
addCriteria(java.lang.String target, java.lang.String targetType, java.lang.String criteriaType, long regionId) Add a criteria to a condition. |
void |
delete(boolean force) Delete the condition |
long |
getConditionId() get the object ID of the lbcondition. |
User |
getCreator() Get the user who created the condition. |
LBCriteriaEnumeration |
getCriteria() Get all the criteria in the condition |
java.lang.String |
getDefaultEvalMode() Get the default evaluation mode for the condition. |
java.util.Calendar |
getDefaultExprTime() Get the default expiration time for the condition. |
LocationPrivacyDomain |
getPrivacyDomain() Get the Location Privacy Domain in which the location based condition is created. |
java.lang.String |
getState() get the current state of the lbcondition. |
java.util.Enumeration |
getTargetsDisallowPosition() Get all the targets who currently do not allow the creator of the condition to position them. |
void |
removeCriteria(java.lang.String target, java.lang.String targetType, java.lang.String criteriaType, long regionId) Remove a criteria from a condition. |
void |
setDefaultEvalMode(java.lang.String mode) Set default evaluation mode for the condition. |
void |
setDefaultExprTime(java.util.Calendar expirationTime) Set default expiration time for the condition. |
Field Detail |
public static final java.lang.String MODE_ONCE
public static final java.lang.String MODE_REPEAT
public static final java.lang.String STATE_ACTIVATED
public static final java.lang.String STATE_NOT_ACTIVATED
public static final java.lang.String TARGETTYPE_COMM
public static final java.lang.String TARGETTYPE_MSID
public static final java.lang.String TARGETTYPE_USER
public static final java.lang.String TYPE_IN
public static final java.lang.String TYPE_OUT
public static final java.lang.String TYPENAME
Method Detail |
public void addCriteria(java.lang.String target, java.lang.String targetType, java.lang.String criteriaType, long regionId) throws LBEventException
target
- The person whose position will be checkedtargetType
- The type of the target. If the target type is "user", the target
is id of the user. If the target type is "community", the target
is the id of the community. If the target type is "MSID" the target
is the Mobile Station ID of the target.criteriaType
- The type of the criteira. It can be IN or OUTregionId
- The id of the region with which the target's position will be compared.If
- the condition has already been activated, a LBEventException will be thrown.LBEventException
LBEventException
public void delete(boolean force) throws LBEventException
force
- if force
is false, the activated condition will not be deleted. if force</dode> is true, the condition will be deleted no matter it is activated or not
Throws:
LBEventException
public long getConditionId()
public User getCreator()
public LBCriteriaEnumeration getCriteria() throws LBEventException
LBEventException
LBCriteriaEnumeration
public java.lang.String getDefaultEvalMode()
public java.util.Calendar getDefaultExprTime()
public LocationPrivacyDomain getPrivacyDomain()
LocationPrivacyDomain
public java.lang.String getState() throws LBEventException
LBEventException
public java.util.Enumeration getTargetsDisallowPosition() throws LBEventException
LBEventException
public void removeCriteria(java.lang.String target, java.lang.String targetType, java.lang.String criteriaType, long regionId) throws LBEventException
target
- The person whose position will be checkedtargetType
- The type of the target. If the target type is "user", the target
is id of the user. If the target type is "community", the target
is the id of the community. If the target type is "MSID" the target
is the Mobile Station ID of the target.criteriaType
- The type of the criteira. It can be IN or OUTregionId
- The id of the region with which the target's position will be compared.If
- the condition has already been activated, a LBEventException will be thrown.LBEventException
LBEventException
public void setDefaultEvalMode(java.lang.String mode) throws LBEventException
LBEventException
public void setDefaultExprTime(java.util.Calendar expirationTime) throws LBEventException
expirationTime
-LBEventException
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |