Package org.bedework.calfacade.svc
Class BwAuthUser
java.lang.Object
- All Implemented Interfaces:
Serializable,Comparable<BwAuthUser>,org.bedework.util.logging.Logged
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Make visiblebooleangetPrefs()intinthashCode()booleanbooleanbooleanbooleanstatic BwAuthUsermakeAuthUser(String user, int usertype) Factory method: Create an authuser by specifying all its fieldsvoidsetPrefs(BwAuthUserPrefs val) voidsetUserHref(String val) voidsetUsertype(int val) toString()Methods inherited from class org.bedework.calfacade.base.BwDbentity
addDeletedEntity, afterDeletion, beforeDeletion, beforeSave, beforeUpdate, getByteSize, getDeletedEntities, getSeq, length, setByteSize, setSeqMethods inherited from class org.bedework.calfacade.base.BwUnversionedDbentity
compareTo, getHref, getId, markUnsaved, setHref, setId, toStringSegment, unsavedMethods inherited from class org.bedework.calfacade.base.DumpEntity
dump, dump, getLogger, hasDumpValueMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Field Details
-
userHref
-
prefs
-
-
Constructor Details
-
BwAuthUser
public BwAuthUser()No-arg constructor
-
-
Method Details
-
makeAuthUser
Factory method: Create an authuser by specifying all its fields- Parameters:
user- href representing userusertype- int type of user- Returns:
- auth user object.
-
setUserHref
- Parameters:
val- href
-
getUserHref
- Returns:
- String user entry
-
setPrefs
- Parameters:
val- BwAuthUserPrefs auth prefs
-
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
- Overrides:
equalsin classBwUnversionedDbentity<BwAuthUser>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBwUnversionedDbentity<BwAuthUser>
-
toString
-
clone
Description copied from class:BwUnversionedDbentityMake visible- Overrides:
clonein classBwUnversionedDbentity<BwAuthUser>- Returns:
- Object of class T
-