Class CoolerChannelAccessControl

java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.CoolerChannelAccessControl
All Implemented Interfaces:
Serializable

public class CoolerChannelAccessControl extends AccessControl
An Access Controller for Water Cooler channels.
Since:
1.0
Version:
9.0
Author:
Luke
See Also:
  • Constructor Details

    • CoolerChannelAccessControl

      public CoolerChannelAccessControl(SecurityContext ctx, Channel c)
      Initializes the Access Controller.
      Parameters:
      ctx - the Command Context.
      c - the Channel
  • Method Details

    • updateContext

      public void updateContext(SecurityContext ctx)
      Updates the Security Context verify access with. Since this Access controller may be called many times in succession, it is more efficient to update the security context rather than constantly creating a new CoolerChannelAccessControl object.
      Parameters:
      ctx - the SecurityContext
    • validate

      public void validate()
      Calculates access rights.
      Specified by:
      validate in class AccessControl
    • getCanAccess

      public boolean getCanAccess()
      Returns if the Channel can be accessed.
      Returns:
      TRUE if a thread listing can be retrieved, otherwise FALSE
    • getCanRead

      public boolean getCanRead()
      Returns if the Channel Profile can be read.
      Returns:
      TRUE if the profile can be retrieved, otherwise FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns if the Channel Profile can be edited.
      Returns:
      TRUE if the profile can be edited, otherwise FALSE
    • getCanPost

      public boolean getCanPost()
      Returns if new Threads can be made in this Channel.
      Returns:
      TRUE if new posts can be made, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns if this Channel can be deleted.
      Returns:
      TRUE if it can be deleted, otherwise FALSE