public class PRestriction extends Object implements Serializable, Cloneable
PRestriction
represents how a given field in an flist might have its
value restricted when used with a specific opcode. Not only might the
field be read or write only, but it may be an Enumeration
(restricted to
specific legal values), have minimum or maximum values, or the user may only be allowed
to see part of it.Modifier and Type | Field and Description |
---|---|
static int |
CHANGABLE_DISCRETE
Constant that flags the field as one that can be changed within one of a set of discrete values.
|
static int |
CHANGABLE_NDISCRETE
Constant that flags the field as one that can be changed within one of a set of indiscrete values.
|
static int |
CHANGABLE_NO
Constant that flags the field as one that cannot be changed.
|
static int |
CHANGABLE_RANGED
Constant that flags the field as one that can be changed within a range.
|
static int |
CHANGABLE_YES
Constant that flags the field as one that can be changed.
|
protected int |
mChangeRes |
protected Number |
mHigh |
protected Number |
mLow |
protected String |
mMask |
protected int |
mViewRes |
static String |
PERM_ACCOUNT_STATUS
maps to /accounttool/account/status
|
static String |
PERM_ACCT_CREATE_ALL |
static String |
PERM_ADD_DEAL |
static String |
PERM_ADJ_CREDIT
maps to /accounttool/adjustment/credit
|
static String |
PERM_ADJ_DEBIT
maps to /accounttool/adjustment/debit
|
static String |
PERM_AR_ACCESS
maps to /accounttool/araccess
|
static String |
PERM_AR_NEGATIVE_ALLOCATE
maps to /accounttool/adjustment/negativeallocate
|
static String |
PERM_BACKDATE |
static String |
PERM_BALANCE_MONITORING_ACCESS
maps to /accounttool/balances/balanceMonitoring
|
static String |
PERM_BILL_ADJUST |
static String |
PERM_BILL_DOM
maps to /accounttool/billDOM - controls changing the billing day of month
This permission is not defined in the database initially.
|
static String |
PERM_BILL_FREQ |
static String |
PERM_BILL_NOW
maps to /accounttool/billnow
|
static String |
PERM_CHARGE
maps to /accounttool/charge
|
static String |
PERM_CHARGE_GROUP_MEMBERS_LINK |
static String |
PERM_CHARGE_GROUP_MEMEBERINFO |
static String |
PERM_CHARGE_GROUP_MODIFY |
static String |
PERM_CHARGE_MEMBERSHIP_PARTICIPATION |
static String |
PERM_CHARGE_MODIFY_PRIORITY |
static String |
PERM_CHARGE_SERVICE_FUTURE |
static String |
PERM_CHARGE_SERVICE_TYPE |
static String |
PERM_CLIENTTOOL_CC |
static String |
PERM_COLLECTIONS_ACTIONHISTORY |
static String |
PERM_COLLECTIONS_AGENT |
static String |
PERM_COLLECTIONS_ASSIGN |
static String |
PERM_COLLECTIONS_CHANGESTATUS |
static String |
PERM_COLLECTIONS_CHARGECC |
static String |
PERM_COLLECTIONS_EXEMPT |
static String |
PERM_COLLECTIONS_INSERT |
static String |
PERM_COLLECTIONS_MANAGER |
static String |
PERM_COLLECTIONS_MASKCARDDETAILS |
static String |
PERM_COLLECTIONS_NEWCARD |
static String |
PERM_COLLECTIONS_PROMISETOPAY |
static String |
PERM_COLLECTIONS_REMOVEEXEMPT |
static String |
PERM_COLLECTIONS_RESCHEDULE |
static String |
PERM_COLLECTIONS_UPDATEPAYMENT |
static String |
PERM_CONTACT |
static String |
PERM_CORRECTIVE_BILL |
static String |
PERM_CREDIT
maps to /accounttool/credit
|
static String |
PERM_CREDITCARD
maps to /accounttool/creditcard
|
static String |
PERM_CREDITLIMIT
maps to /accounttool/creditlimit
|
static String |
PERM_CUSTOMIZE_PRODUCT_OVERRIDE |
static String |
PERM_DEAL_CANCEL
maps to /customercenter/deal/cancel
|
static String |
PERM_DEAL_CUSTOMIZE
maps to /accounttool/deal/customize
|
static String |
PERM_DEAL_HISTORY
maps to /accounttool/deal/history
This permission is not defined in the database initially.
|
static String |
PERM_DEBIT
maps to /accounttool/debit
|
static String |
PERM_DEBITCARD
maps to /accounttool/debitcard
|
static String |
PERM_DEFERRED_ACTION_DELETE |
static String |
PERM_DEFERRED_ACTION_EXECUTE |
static String |
PERM_DISCOUNT_GROUP_MEMBERS_LINK |
static String |
PERM_DISCOUNT_GROUP_MEMEBERINFO |
static String |
PERM_DISCOUNT_GROUP_MODIFY |
static String |
PERM_DISCOUNT_MEMBERSHIP_PARTICIPATION |
static String |
PERM_DISCOUNT_MODIFY_PRIORITY |
static String |
PERM_DISCOUNT_SERVICE_FUTURE |
static String |
PERM_DISCOUNT_SERVICE_TYPE |
static String |
PERM_DISPUTE_OPEN
maps to /accounttool/dispute/open
|
static String |
PERM_DISPUTE_SETTLE
maps to /accounttool/dispute/settle
|
static String |
PERM_EVENT_ADJUST |
static String |
PERM_EVENT_DISPUTE |
static String |
PERM_EVENT_SETTLE |
static String |
PERM_GSM_NUMBER |
static String |
PERM_GSM_SIM |
static String |
PERM_HIERARCHY |
static String |
PERM_ITEM_ADJUST |
static String |
PERM_ITEM_DISPUTE |
static String |
PERM_ITEM_SETTLE |
static String |
PERM_LOGIN_ALL
maps to /accounttool/login/*
|
static String |
PERM_MBI_CREATE |
static String |
PERM_MBI_MOVE |
static String |
PERM_MBI_RENAME |
static String |
PERM_PASS_ALL
maps to /accounttool/password/*
|
static String |
PERM_PASS_CSR |
static String |
PERM_PASS_EMAIL
maps to /accounttool/password/email
|
static String |
PERM_PASS_IP
maps to /accounttool/password/ip
|
static String |
PERM_PAYMENTS_PAYMETHOD |
static String |
PERM_PERFORM_TOPUP |
static String |
PERM_PERM
maps to /accounttool/permissions
|
static String |
PERM_PLANS_PRODUCTDETAILS_CYCLE |
static String |
PERM_PLANS_PRODUCTDETAILS_PURCHASE |
static String |
PERM_PLANS_PRODUCTDETAILS_USAGE |
static String |
PERM_PROD_CANCEL
maps to /accounttool/product/cancel
|
static String |
PERM_PROD_HISTORY
maps to /accounttool/product/history
This permission is not defined in the database initially.
|
static String |
PERM_PROD_MODIFY
maps to /accounttool/product/modify
|
static String |
PERM_PROD_PURCHASE
maps to /accounttool/product/purchase
|
static String |
PERM_PROD_STATUS
maps to /accounttool/product/status
This permission is not defined in the database initially.
|
static String |
PERM_PROFILE_GROUP_MEMEBERINFO |
static String |
PERM_PROFILE_GROUP_MODIFY |
static String |
PERM_PROFILE_SERVICE_FUTURE |
static String |
PERM_PROFILE_SERVICE_TYPE |
static String |
PERM_PROMOTION_ADD |
static String |
PERM_PROMOTION_DELETE |
static String |
PERM_PROMOTION_TABLE |
static String |
PERM_REFUND
maps to /accounttool/refund
|
static String |
PERM_SERVICE_ADJUST |
static String |
PERM_SERVICE_HISTORY
maps to /accounttool/service/history
This permission is not defined in the database initially.
|
static String |
PERM_SERVICE_LOGIN |
static String |
PERM_SERVICE_LOGIN_CSR |
static String |
PERM_SERVICE_STATUS_ALL
maps to /accounttool/service/status
This permission is not defined in the database initially.
|
static String |
PERM_SERVICES_DETAILS_EMAIL |
static String |
PERM_SERVICES_DETAILS_IP |
static String |
PERM_SHARING_CHARGE |
static String |
PERM_SHARING_CHARGE_GLOBAL |
static String |
PERM_SHARING_DISCOUNT |
static String |
PERM_SHARING_PROFILE |
static String |
PERM_SPONSORSHIP |
static String |
PERM_SUBS_PREFERENCE |
static String |
PERM_SUMMARY_CUSTOMERTYPE |
static String |
PERM_SUMMARY_SECURITYCODE1 |
static String |
PERM_SUMMARY_SECURITYCODE2 |
static String |
PERM_TAB_SHARING |
static String |
PERM_WRITEOFF
maps to /accounttool/writeoff
|
static int |
VIEWABLE_MASKED
Constant that flags the field as viewable, but masked.
|
static int |
VIEWABLE_NO
Constant that flags the field as not viewable.
|
static int |
VIEWABLE_YES
Constant that flags the field as viewable.
|
Modifier and Type | Method and Description |
---|---|
int |
getChangeRestriction()
Gets the permitted changeability.
|
Object[] |
getDiscreteValues()
Gets an array of allowed discrete values for the field.
|
Number |
getRangeMaximum()
Gets the maximum value to use for a range of indiscrete values.
|
Number |
getRangeMinimum()
Gets the minimum value to use for a range of indiscrete values.
|
static PRestriction |
getRestriction(String type)
Call this method handing in one of the public PERM_* definitions
above.
|
static PRestriction |
getRestrictionExists(String type)
Call this method handing in one of the public PERM_* definitions
above.
|
static Vector |
getValidApp(String appname)
To get valid App for this user
|
String |
getViewMask()
Gets the view mask, if any is required.
|
int |
getViewRestriction()
Gets the viewable level.
|
String |
toString() |
public static final int VIEWABLE_NO
public static final int VIEWABLE_YES
public static final int VIEWABLE_MASKED
public static final int CHANGABLE_NO
public static final int CHANGABLE_YES
public static final int CHANGABLE_RANGED
public static final int CHANGABLE_DISCRETE
public static final int CHANGABLE_NDISCRETE
public static final String PERM_ADJ_CREDIT
public static final String PERM_ADJ_DEBIT
public static final String PERM_AR_ACCESS
public static final String PERM_AR_NEGATIVE_ALLOCATE
public static final String PERM_BILL_NOW
public static final String PERM_CHARGE
public static final String PERM_CREDIT
public static final String PERM_CREDITCARD
public static final String PERM_DEBITCARD
public static final String PERM_CREDITLIMIT
public static final String PERM_DISPUTE_OPEN
public static final String PERM_DISPUTE_SETTLE
public static final String PERM_DEAL_CUSTOMIZE
public static final String PERM_DEBIT
public static final String PERM_PERM
public static final String PERM_PASS_ALL
public static final String PERM_LOGIN_ALL
public static final String PERM_PASS_IP
public static final String PERM_PASS_EMAIL
public static final String PERM_PROD_CANCEL
public static final String PERM_DEAL_CANCEL
public static final String PERM_PROD_MODIFY
public static final String PERM_PROD_PURCHASE
public static final String PERM_REFUND
public static final String PERM_WRITEOFF
public static final String PERM_ACCOUNT_STATUS
public static final String PERM_BALANCE_MONITORING_ACCESS
public static final String PERM_PROD_HISTORY
public static final String PERM_DEAL_HISTORY
public static final String PERM_SERVICE_HISTORY
public static final String PERM_PROD_STATUS
public static final String PERM_SERVICE_STATUS_ALL
public static final String PERM_BILL_DOM
public static final String PERM_BILL_FREQ
public static final String PERM_ADD_DEAL
public static final String PERM_CLIENTTOOL_CC
public static final String PERM_EVENT_ADJUST
public static final String PERM_EVENT_DISPUTE
public static final String PERM_EVENT_SETTLE
public static final String PERM_ITEM_ADJUST
public static final String PERM_ITEM_DISPUTE
public static final String PERM_ITEM_SETTLE
public static final String PERM_BILL_ADJUST
public static final String PERM_SERVICE_ADJUST
public static final String PERM_MBI_CREATE
public static final String PERM_MBI_MOVE
public static final String PERM_MBI_RENAME
public static final String PERM_TAB_SHARING
public static final String PERM_SHARING_CHARGE
public static final String PERM_SHARING_CHARGE_GLOBAL
public static final String PERM_CHARGE_MODIFY_PRIORITY
public static final String PERM_CHARGE_MEMBERSHIP_PARTICIPATION
public static final String PERM_CHARGE_GROUP_MODIFY
public static final String PERM_CHARGE_GROUP_MEMEBERINFO
public static final String PERM_CHARGE_SERVICE_FUTURE
public static final String PERM_CHARGE_SERVICE_TYPE
public static final String PERM_CHARGE_GROUP_MEMBERS_LINK
public static final String PERM_SHARING_DISCOUNT
public static final String PERM_DISCOUNT_MODIFY_PRIORITY
public static final String PERM_DISCOUNT_MEMBERSHIP_PARTICIPATION
public static final String PERM_DISCOUNT_GROUP_MODIFY
public static final String PERM_DISCOUNT_GROUP_MEMEBERINFO
public static final String PERM_DISCOUNT_SERVICE_FUTURE
public static final String PERM_DISCOUNT_SERVICE_TYPE
public static final String PERM_DISCOUNT_GROUP_MEMBERS_LINK
public static final String PERM_SHARING_PROFILE
public static final String PERM_PROFILE_GROUP_MODIFY
public static final String PERM_PROFILE_GROUP_MEMEBERINFO
public static final String PERM_PROFILE_SERVICE_FUTURE
public static final String PERM_PROFILE_SERVICE_TYPE
public static final String PERM_PERFORM_TOPUP
public static final String PERM_GSM_SIM
public static final String PERM_GSM_NUMBER
public static final String PERM_PASS_CSR
public static final String PERM_SERVICE_LOGIN_CSR
public static final String PERM_SERVICE_LOGIN
public static final String PERM_ACCT_CREATE_ALL
public static final String PERM_PROMOTION_ADD
public static final String PERM_PROMOTION_DELETE
public static final String PERM_PROMOTION_TABLE
public static final String PERM_DEFERRED_ACTION_DELETE
public static final String PERM_DEFERRED_ACTION_EXECUTE
public static final String PERM_CUSTOMIZE_PRODUCT_OVERRIDE
public static final String PERM_BACKDATE
public static final String PERM_HIERARCHY
public static final String PERM_SPONSORSHIP
public static final String PERM_CONTACT
public static final String PERM_COLLECTIONS_MANAGER
public static final String PERM_COLLECTIONS_AGENT
public static final String PERM_COLLECTIONS_ACTIONHISTORY
public static final String PERM_COLLECTIONS_INSERT
public static final String PERM_COLLECTIONS_RESCHEDULE
public static final String PERM_COLLECTIONS_CHARGECC
public static final String PERM_COLLECTIONS_EXEMPT
public static final String PERM_COLLECTIONS_REMOVEEXEMPT
public static final String PERM_COLLECTIONS_CHANGESTATUS
public static final String PERM_COLLECTIONS_ASSIGN
public static final String PERM_COLLECTIONS_PROMISETOPAY
public static final String PERM_COLLECTIONS_NEWCARD
public static final String PERM_COLLECTIONS_MASKCARDDETAILS
public static final String PERM_COLLECTIONS_UPDATEPAYMENT
public static final String PERM_SUMMARY_CUSTOMERTYPE
public static final String PERM_SERVICES_DETAILS_EMAIL
public static final String PERM_SERVICES_DETAILS_IP
public static final String PERM_PLANS_PRODUCTDETAILS_PURCHASE
public static final String PERM_PLANS_PRODUCTDETAILS_CYCLE
public static final String PERM_PLANS_PRODUCTDETAILS_USAGE
public static final String PERM_SUMMARY_SECURITYCODE1
public static final String PERM_SUMMARY_SECURITYCODE2
public static final String PERM_PAYMENTS_PAYMETHOD
public static final String PERM_CORRECTIVE_BILL
public static final String PERM_SUBS_PREFERENCE
protected int mViewRes
protected int mChangeRes
protected String mMask
protected Number mLow
protected Number mHigh
public static PRestriction getRestriction(String type)
public static PRestriction getRestrictionExists(String type)
public int getViewRestriction()
public int getChangeRestriction()
public String getViewMask()
The mask string should be compared to the data character by character. Each space in the mask represents a visible character. Each non-space hides the character and should cause display of that non-space character instead. An exception to this rule is the tilde (~) character, which should hide the underlying character and not display anything in its place, essentially moving all further characters one space to the left.
If the mask string is shorter than the target string, the mask string should be extended by spaces, for example, to show the rest of the target string.
String
to use for masking the view.public Number getRangeMinimum()
public Number getRangeMaximum()
public Object[] getDiscreteValues()
Copyright © 2003, 2023, Oracle and/or its affiliates.