Package com.portal.bas
Class PRestriction
java.lang.Object
com.portal.bas.PRestriction
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
PSettableRestriction
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.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant that flags the field as one that can be changed within one of a set of discrete values.static final intConstant that flags the field as one that can be changed within one of a set of indiscrete values.static final intConstant that flags the field as one that cannot be changed.static final intConstant that flags the field as one that can be changed within a range.static final intConstant that flags the field as one that can be changed.protected intprotected Numberprotected Numberprotected Stringprotected intstatic final Stringmaps to /accounttool/account/statusstatic final Stringstatic final Stringstatic final Stringmaps to /accounttool/adjustment/creditstatic final Stringmaps to /accounttool/adjustment/debitstatic final Stringmaps to /accounttool/araccessstatic final Stringmaps to /accounttool/adjustment/negativeallocatestatic final Stringstatic final Stringmaps to /accounttool/balances/balanceMonitoringstatic final Stringstatic final Stringmaps to /accounttool/billDOM - controls changing the billing day of month This permission is not defined in the database initially.static final Stringstatic final Stringmaps to /accounttool/billnowstatic final Stringmaps to /accounttool/chargestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringmaps to /accounttool/creditstatic final Stringmaps to /accounttool/creditcardstatic final Stringmaps to /accounttool/creditlimitstatic final Stringstatic final Stringmaps to /customercenter/deal/cancelstatic final Stringmaps to /accounttool/deal/customizestatic final Stringmaps to /accounttool/deal/history This permission is not defined in the database initially.static final Stringmaps to /accounttool/debitstatic final Stringmaps to /accounttool/debitcardstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringmaps to /accounttool/dispute/openstatic final Stringmaps to /accounttool/dispute/settlestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringmaps to /accounttool/login/*static final Stringstatic final Stringstatic final Stringstatic final Stringmaps to /accounttool/password/*static final Stringstatic final Stringmaps to /accounttool/password/emailstatic final Stringmaps to /accounttool/password/ipstatic final Stringstatic final Stringstatic final Stringmaps to /accounttool/permissionsstatic final Stringstatic final Stringstatic final Stringstatic final Stringmaps to /accounttool/product/cancelstatic final Stringmaps to /accounttool/product/history This permission is not defined in the database initially.static final Stringmaps to /accounttool/product/modifystatic final Stringmaps to /accounttool/product/purchasestatic final Stringmaps to /accounttool/product/status This permission is not defined in the database initially.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringmaps to /accounttool/refundstatic final Stringstatic final Stringmaps to /accounttool/service/history This permission is not defined in the database initially.static final Stringstatic final Stringstatic final Stringmaps to /accounttool/service/status This permission is not defined in the database initially.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringmaps to /accounttool/writeoffstatic final intConstant that flags the field as viewable, but masked.static final intConstant that flags the field as not viewable.static final intConstant that flags the field as viewable. -
Method Summary
Modifier and TypeMethodDescriptionintGets the permitted changeability.Object[]Gets an array of allowed discrete values for the field.Gets the maximum value to use for a range of indiscrete values.Gets the minimum value to use for a range of indiscrete values.static PRestrictiongetRestriction(String type) Call this method handing in one of the public PERM_* definitions above.static PRestrictiongetRestrictionExists(String type) Call this method handing in one of the public PERM_* definitions above.static VectorgetValidApp(String appname) To get valid App for this userGets the view mask, if any is required.intGets the viewable level.toString()
-
Field Details
-
VIEWABLE_NO
public static final int VIEWABLE_NOConstant that flags the field as not viewable.- See Also:
-
VIEWABLE_YES
public static final int VIEWABLE_YESConstant that flags the field as viewable.- See Also:
-
VIEWABLE_MASKED
public static final int VIEWABLE_MASKEDConstant that flags the field as viewable, but masked.- See Also:
-
CHANGABLE_NO
public static final int CHANGABLE_NOConstant that flags the field as one that cannot be changed.- See Also:
-
CHANGABLE_YES
public static final int CHANGABLE_YESConstant that flags the field as one that can be changed.- See Also:
-
CHANGABLE_RANGED
public static final int CHANGABLE_RANGEDConstant that flags the field as one that can be changed within a range.- See Also:
-
CHANGABLE_DISCRETE
public static final int CHANGABLE_DISCRETEConstant that flags the field as one that can be changed within one of a set of discrete values.- See Also:
-
CHANGABLE_NDISCRETE
public static final int CHANGABLE_NDISCRETEConstant that flags the field as one that can be changed within one of a set of indiscrete values.- See Also:
-
PERM_ADJ_CREDIT
maps to /accounttool/adjustment/credit- See Also:
-
PERM_ADJ_DEBIT
maps to /accounttool/adjustment/debit- See Also:
-
PERM_AR_ACCESS
maps to /accounttool/araccess- See Also:
-
PERM_AR_NEGATIVE_ALLOCATE
maps to /accounttool/adjustment/negativeallocate- See Also:
-
PERM_BILL_NOW
maps to /accounttool/billnow- See Also:
-
PERM_CHARGE
maps to /accounttool/charge- See Also:
-
PERM_CREDIT
maps to /accounttool/credit- See Also:
-
PERM_CREDITCARD
maps to /accounttool/creditcard- See Also:
-
PERM_DEBITCARD
maps to /accounttool/debitcard- See Also:
-
PERM_CREDITLIMIT
maps to /accounttool/creditlimit- See Also:
-
PERM_DISPUTE_OPEN
maps to /accounttool/dispute/open- See Also:
-
PERM_DISPUTE_SETTLE
maps to /accounttool/dispute/settle- See Also:
-
PERM_DEAL_CUSTOMIZE
maps to /accounttool/deal/customize- See Also:
-
PERM_DEBIT
maps to /accounttool/debit- See Also:
-
PERM_PERM
maps to /accounttool/permissions- See Also:
-
PERM_PASS_ALL
maps to /accounttool/password/*- See Also:
-
PERM_LOGIN_ALL
maps to /accounttool/login/*- See Also:
-
PERM_PASS_IP
maps to /accounttool/password/ip- See Also:
-
PERM_PASS_EMAIL
maps to /accounttool/password/email- See Also:
-
PERM_PROD_CANCEL
maps to /accounttool/product/cancel- See Also:
-
PERM_DEAL_CANCEL
maps to /customercenter/deal/cancel- See Also:
-
PERM_PROD_MODIFY
maps to /accounttool/product/modify- See Also:
-
PERM_PROD_PURCHASE
maps to /accounttool/product/purchase- See Also:
-
PERM_REFUND
maps to /accounttool/refund- See Also:
-
PERM_WRITEOFF
maps to /accounttool/writeoff- See Also:
-
PERM_ACCOUNT_STATUS
maps to /accounttool/account/status- See Also:
-
PERM_BALANCE_MONITORING_ACCESS
maps to /accounttool/balances/balanceMonitoring- See Also:
-
PERM_PROD_HISTORY
maps to /accounttool/product/history This permission is not defined in the database initially. Not setting it for a CSR means this functionality is accessible.- See Also:
-
PERM_DEAL_HISTORY
maps to /accounttool/deal/history This permission is not defined in the database initially. Not setting it for a CSR means this functionality is accessible.- See Also:
-
PERM_SERVICE_HISTORY
maps to /accounttool/service/history This permission is not defined in the database initially. Not setting it for a CSR means this functionality is accessible.- See Also:
-
PERM_PROD_STATUS
maps to /accounttool/product/status This permission is not defined in the database initially. Not setting it for a CSR means this functionality is accessible.- See Also:
-
PERM_SERVICE_STATUS_ALL
maps to /accounttool/service/status This permission is not defined in the database initially. Not setting it for a CSR means this functionality is accessible.- See Also:
-
PERM_BILL_DOM
maps to /accounttool/billDOM - controls changing the billing day of month This permission is not defined in the database initially. Not setting it for a CSR means this functionality is accessible.- See Also:
-
PERM_BILL_FREQ
- See Also:
-
PERM_ADD_DEAL
- See Also:
-
PERM_CLIENTTOOL_CC
- See Also:
-
PERM_EVENT_ADJUST
- See Also:
-
PERM_EVENT_DISPUTE
- See Also:
-
PERM_EVENT_SETTLE
- See Also:
-
PERM_ITEM_ADJUST
- See Also:
-
PERM_ITEM_DISPUTE
- See Also:
-
PERM_ITEM_SETTLE
- See Also:
-
PERM_BILL_ADJUST
- See Also:
-
PERM_SERVICE_ADJUST
- See Also:
-
PERM_MBI_CREATE
- See Also:
-
PERM_MBI_MOVE
- See Also:
-
PERM_MBI_RENAME
- See Also:
-
PERM_TAB_SHARING
- See Also:
-
PERM_SHARING_CHARGE
- See Also:
-
PERM_SHARING_CHARGE_GLOBAL
- See Also:
-
PERM_CHARGE_MODIFY_PRIORITY
- See Also:
-
PERM_CHARGE_MEMBERSHIP_PARTICIPATION
- See Also:
-
PERM_CHARGE_GROUP_MODIFY
- See Also:
-
PERM_CHARGE_GROUP_MEMEBERINFO
- See Also:
-
PERM_CHARGE_SERVICE_FUTURE
- See Also:
-
PERM_CHARGE_SERVICE_TYPE
- See Also:
-
PERM_CHARGE_GROUP_MEMBERS_LINK
- See Also:
-
PERM_SHARING_DISCOUNT
- See Also:
-
PERM_DISCOUNT_MODIFY_PRIORITY
- See Also:
-
PERM_DISCOUNT_MEMBERSHIP_PARTICIPATION
- See Also:
-
PERM_DISCOUNT_GROUP_MODIFY
- See Also:
-
PERM_DISCOUNT_GROUP_MEMEBERINFO
- See Also:
-
PERM_DISCOUNT_SERVICE_FUTURE
- See Also:
-
PERM_DISCOUNT_SERVICE_TYPE
- See Also:
-
PERM_DISCOUNT_GROUP_MEMBERS_LINK
- See Also:
-
PERM_SHARING_PROFILE
- See Also:
-
PERM_PROFILE_GROUP_MODIFY
- See Also:
-
PERM_PROFILE_GROUP_MEMEBERINFO
- See Also:
-
PERM_PROFILE_SERVICE_FUTURE
- See Also:
-
PERM_PROFILE_SERVICE_TYPE
- See Also:
-
PERM_PERFORM_TOPUP
- See Also:
-
PERM_GSM_SIM
- See Also:
-
PERM_GSM_NUMBER
- See Also:
-
PERM_PASS_CSR
- See Also:
-
PERM_SERVICE_LOGIN_CSR
- See Also:
-
PERM_SERVICE_LOGIN
- See Also:
-
PERM_ACCT_CREATE_ALL
- See Also:
-
PERM_PROMOTION_ADD
- See Also:
-
PERM_PROMOTION_DELETE
- See Also:
-
PERM_PROMOTION_TABLE
- See Also:
-
PERM_DEFERRED_ACTION_DELETE
- See Also:
-
PERM_DEFERRED_ACTION_EXECUTE
- See Also:
-
PERM_CUSTOMIZE_PRODUCT_OVERRIDE
- See Also:
-
PERM_BACKDATE
- See Also:
-
PERM_HIERARCHY
- See Also:
-
PERM_SPONSORSHIP
- See Also:
-
PERM_CONTACT
- See Also:
-
PERM_COLLECTIONS_MANAGER
- See Also:
-
PERM_COLLECTIONS_AGENT
- See Also:
-
PERM_COLLECTIONS_ACTIONHISTORY
- See Also:
-
PERM_COLLECTIONS_INSERT
- See Also:
-
PERM_COLLECTIONS_RESCHEDULE
- See Also:
-
PERM_COLLECTIONS_CHARGECC
- See Also:
-
PERM_COLLECTIONS_EXEMPT
- See Also:
-
PERM_COLLECTIONS_REMOVEEXEMPT
- See Also:
-
PERM_COLLECTIONS_CHANGESTATUS
- See Also:
-
PERM_COLLECTIONS_ASSIGN
- See Also:
-
PERM_COLLECTIONS_PROMISETOPAY
- See Also:
-
PERM_COLLECTIONS_NEWCARD
- See Also:
-
PERM_COLLECTIONS_MASKCARDDETAILS
- See Also:
-
PERM_COLLECTIONS_UPDATEPAYMENT
- See Also:
-
PERM_SUMMARY_CUSTOMERTYPE
- See Also:
-
PERM_SERVICES_DETAILS_EMAIL
- See Also:
-
PERM_SERVICES_DETAILS_IP
- See Also:
-
PERM_PLANS_PRODUCTDETAILS_PURCHASE
- See Also:
-
PERM_PLANS_PRODUCTDETAILS_CYCLE
- See Also:
-
PERM_PLANS_PRODUCTDETAILS_USAGE
- See Also:
-
PERM_SUMMARY_SECURITYCODE1
- See Also:
-
PERM_SUMMARY_SECURITYCODE2
- See Also:
-
PERM_PAYMENTS_PAYMETHOD
- See Also:
-
PERM_CORRECTIVE_BILL
- See Also:
-
PERM_SUBS_PREFERENCE
- See Also:
-
mViewRes
protected int mViewRes -
mChangeRes
protected int mChangeRes -
mMask
-
mLow
-
mHigh
-
-
Method Details
-
getRestriction
Call this method handing in one of the public PERM_* definitions above. You will get the PRestriction for that permission setting if one is defined for the currently logged in user.
If no permission string is defined for the requested type, a PRestriction object with VIEWABLE_NO / CHANGABLE_NO will be returned.- Returns:
- The PRestriction object for the currently logged in user
-
getRestrictionExists
Call this method handing in one of the public PERM_* definitions above. You will get the PRestriction for that permission setting if one is defined for the currently logged in user.
If no permission string is defined for the requested type, null will be returned.- Returns:
- The PRestriction object for the currently logged in user; null if the given permission is not defined.
-
getViewRestriction
public int getViewRestriction()Gets the viewable level. The value returned is yes, no, or yes-masked.- Returns:
- VIEWABLE_NO, VIEWABLE_YES, or VIEWABLE_MASKED.
-
getChangeRestriction
public int getChangeRestriction()Gets the permitted changeability. The returned permissions include yes, no, yes-within a range, or yes-one of a set of discrete values.- Returns:
- CHANGABLE_NO, CHANGABLE_YES, CHANGABLE_RANGED, or CHANGABLE_DISCRETE.
-
getViewMask
Gets the view mask, if any is required. Can be null (no mask).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.
- Returns:
- The
Stringto use for masking the view.
-
getRangeMinimum
Gets the minimum value to use for a range of indiscrete values.- Returns:
- The minimum indiscrete value.
-
getRangeMaximum
Gets the maximum value to use for a range of indiscrete values.- Returns:
- The maximum indiscrete value.
-
getDiscreteValues
Gets an array of allowed discrete values for the field. The object type matches the field's value type.- Returns:
- An array of objects, each an allowed discrete value.
-
toString
-
getValidApp
To get valid App for this user- Parameters:
appname-- Returns:
-