Package com.portal.bas
Class PPermission
java.lang.Object
com.portal.bas.PPermission
- All Implemented Interfaces:
Serializable
PPermission
describes what the logged-on user
can and cannot do. Much of this is handled on the BAS server, but
is is helpful for a UI to know if certain operations cannot be
performed before allowing the user to attempt them.- Version:
- 10
- Author:
- Larry Lynch-Freshner
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetRestrictionsFor
(int opcode) Gets the restrictions on fields returned by the calling opcode.getRestrictionsFor
(String[] fields) Gets the global restrictions for a list of fields.boolean
isCallable
(int opcode) Tests to determine if a specific opcode can be called.boolean
Tests to determine if a functional component can be used.
-
Method Details
-
isCallable
public boolean isCallable(int opcode) Tests to determine if a specific opcode can be called.- Parameters:
opcode
- the opcode to test- Returns:
- True if the opcode can be called; false otherwise.
-
isUsable
Tests to determine if a functional component can be used.- Parameters:
compName
- aString
that contains the component's name- Returns:
- True if the component can be used; false otherwise.
-
getRestrictionsFor
Gets the restrictions on fields returned by the calling opcode.- Parameters:
opcode
- the opcode to test- Returns:
- A
Hashtable
, using a field description as a key and the restriction as the value.
-
getRestrictionsFor
Gets the global restrictions for a list of fields.- Parameters:
fields
- the list of fields to test- Returns:
- A list of that contains the restrictions for each corresponding field.
-