Class PrincipalInfo

java.lang.Object
org.bedework.calfacade.svc.PrincipalInfo
All Implemented Interfaces:
Serializable, org.bedework.access.Access.AccessCb

public abstract class PrincipalInfo extends Object implements org.bedework.access.Access.AccessCb, Serializable
Provide information about the current principal and given principals.
Author:
Mike Douglass douglm rpi.edu
See Also:
  • Field Details

    • superUser

      protected boolean superUser
    • subscriptionsOnly

      protected boolean subscriptionsOnly
    • principal

      protected BwPrincipal principal
    • calendarHomePath

      protected String calendarHomePath
    • authPrincipal

      protected BwPrincipal authPrincipal
    • maxAllowedPrivs

      protected org.bedework.access.PrivilegeSet maxAllowedPrivs
  • Constructor Details

    • PrincipalInfo

      public PrincipalInfo(BwPrincipal principal, BwPrincipal authPrincipal, org.bedework.access.PrivilegeSet maxAllowedPrivs, boolean subscriptionsOnly)
      Parameters:
      principal - the principal
      authPrincipal - the authenticated principal
      maxAllowedPrivs - - used to filter access - e.g. force read only in public client
      subscriptionsOnly - - true if this user is limited to internal subscriptions
  • Method Details

    • getMaximumAllowedPrivs

      public org.bedework.access.PrivilegeSet getMaximumAllowedPrivs()
      Returns:
      max privs or null for no max
    • getPrincipal

      public abstract org.bedework.access.AccessPrincipal getPrincipal(String href) throws CalFacadeException
      Parameters:
      href - principal href
      Returns:
      AccessPrincipal or null for not valid
      Throws:
      CalFacadeException
    • getCalendarHomePath

      public String getCalendarHomePath()
      Returns:
      the path for calendar home for the current principal, e.g. /user/douglm
    • getCalendarHomePath

      public String getCalendarHomePath(org.bedework.access.AccessPrincipal pr)
      Parameters:
      pr - the principal
      Returns:
      the path for calendar home for the given principal, e.g. /user/douglm
    • getSuperUser

      public boolean getSuperUser()
      Returns:
      boolean
    • getSubscriptionsOnly

      public boolean getSubscriptionsOnly()
    • getPrincipal

      public BwPrincipal getPrincipal()
      Returns:
      current principal
    • getAuthPrincipal

      public BwPrincipal getAuthPrincipal()
      Returns:
      principal we authenticated as