Class PPermission

java.lang.Object
com.portal.bas.PPermission
All Implemented Interfaces:
Serializable

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.
Version:
10
Author:
Larry Lynch-Freshner
See Also:
  • 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

      public boolean isUsable(String compName)
      Tests to determine if a functional component can be used.
      Parameters:
      compName - a String that contains the component's name
      Returns:
      True if the component can be used; false otherwise.
    • getRestrictionsFor

      public Hashtable getRestrictionsFor(int opcode)
      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

      public PRestriction[] getRestrictionsFor(String[] fields)
      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.