public class PPermission extends Object implements 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.Modifier and Type | Method and Description |
---|---|
Hashtable |
getRestrictionsFor(int opcode)
Gets the restrictions on fields returned by the calling opcode.
|
PRestriction[] |
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 |
isUsable(String compName)
Tests to determine if a functional component can be used.
|
public boolean isCallable(int opcode)
opcode
- the opcode to testpublic boolean isUsable(String compName)
compName
- a String
that contains the component's namepublic Hashtable getRestrictionsFor(int opcode)
opcode
- the opcode to testHashtable
, using a field description as a key
and the restriction as the value.public PRestriction[] getRestrictionsFor(String[] fields)
fields
- the list of fields to testCopyright © 2003, 2023, Oracle and/or its affiliates.