Class BwAuthUser

All Implemented Interfaces:
Serializable, Comparable<BwAuthUser>, org.bedework.util.logging.Logged

public class BwAuthUser extends BwDbentity<BwAuthUser>
Value object to represent an authorised calendar user - that is a user with some special privilege. This could also be represented by users with roles.
Version:
1.0
Author:
Mike Douglass douglm@rpi.edu
See Also:
  • Field Details

  • Constructor Details

    • BwAuthUser

      public BwAuthUser()
      No-arg constructor
  • Method Details

    • makeAuthUser

      public static BwAuthUser makeAuthUser(String user, int usertype)
      Factory method: Create an authuser by specifying all its fields
      Parameters:
      user - href representing user
      usertype - int type of user
      Returns:
      auth user object.
    • setUserHref

      public void setUserHref(String val)
      Parameters:
      val - href
    • getUserHref

      public String getUserHref()
      Returns:
      String user entry
    • setPrefs

      public void setPrefs(BwAuthUserPrefs val)
      Parameters:
      val - BwAuthUserPrefs auth prefs
    • getPrefs

      public BwAuthUserPrefs getPrefs()
      Returns:
      BwAuthUserPrefs auth prefs
    • setUsertype

      public void setUsertype(int val)
      Parameters:
      val - rights
    • getUsertype

      public int getUsertype()
      Returns:
      int user rights
    • isUnauthorized

      public boolean isUnauthorized()
      Returns:
      boolean true for unauthorized user
    • isPublicEventUser

      public boolean isPublicEventUser()
      Returns:
      boolean true for public event user
    • isContentAdminUser

      public boolean isContentAdminUser()
      Returns:
      boolean true for content admin user
    • isApproverUser

      public boolean isApproverUser()
      Returns:
      boolean true for approver user
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class BwUnversionedDbentity<BwAuthUser>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BwUnversionedDbentity<BwAuthUser>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Description copied from class: BwUnversionedDbentity
      Make visible
      Overrides:
      clone in class BwUnversionedDbentity<BwAuthUser>
      Returns:
      Object of class T