com.trackstudio.secured
Class SecuredUserBean

java.lang.Object
  extended by com.trackstudio.secured.Secured
      extended by com.trackstudio.secured.AbstractBeanWithUdf
          extended by com.trackstudio.secured.SecuredUserBean
All Implemented Interfaces:
java.lang.Comparable

public class SecuredUserBean
extends AbstractBeanWithUdf

Bean which represents user


Field Summary
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Constructor Summary
SecuredUserBean(java.lang.String userId, SessionContext sess)
           
SecuredUserBean(UserCacheItem user, SessionContext sess)
           
 
Method Summary
 boolean canUpdate()
           
 boolean canView()
           
 int compareTo(java.lang.Object o)
           
 java.util.List getAllowedChildrenIdOnly()
           
 java.util.List getAllowedUserAndChildrenListIdOnly()
           
 boolean getCanUpdate()
           
 boolean getCanView()
           
 java.lang.Integer getChildAllowed()
           
 java.lang.Integer getChildCount()
           
 java.util.ArrayList getChildren()
           
 java.util.ArrayList getChildrenIdOnly()
           
 java.lang.String getCompany()
           
 java.lang.Integer getCountUDF()
           
 java.util.ArrayList getCurrentUserUDFs()
           
 DateFormatter getDateFormatter()
           
 SecuredTaskBean getDefaultProject()
           
 java.lang.String getDefaultProjectId()
           
 java.lang.String getEmail()
           
 SecuredEmailTypeBean getEmailType()
           
 java.lang.String getEmailTypeId()
           
 java.lang.String getEncodeName()
           
 java.util.Calendar getExpireDate()
           
 java.util.ArrayList getFilteredUDFValues()
           
 java.lang.String getId()
           
 java.util.Calendar getLastLogonDate()
           
 java.lang.String getLocale()
           
 java.lang.String getLogin()
           
 SecuredUserBean getManager()
           
 java.lang.String getManagerId()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 java.util.Calendar getPasswordChangedDate()
           
 java.lang.String getPasswordHistory()
           
 SecuredPrstatusBean getPrstatus()
           
 java.lang.String getPrstatusId()
           
 java.lang.Integer getShowTreeMode()
           
 UserBean getSOAP()
           
 java.lang.String getTel()
           
 java.lang.String getTimezone()
           
 java.lang.Integer getTotalChildrenCount()
           
 java.util.ArrayList getUDFs()
           
 java.util.HashMap getUDFValues()
           
 java.util.ArrayList getUDFValuesForNewUser()
           
 java.util.ArrayList getUDFValuesList()
           
 java.util.Calendar getUserExpireDate()
           
 boolean hasChildren()
           
 boolean isActive()
           
 boolean isAllowed()
           
 boolean isExpired()
           
 boolean isHelp()
           
 boolean isHtmlEditor()
           
 boolean isOnSight()
           
 java.lang.String toString()
           
 
Methods inherited from class com.trackstudio.secured.Secured
compare, equals, getSecure, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecuredUserBean

public SecuredUserBean(UserCacheItem user,
                       SessionContext sess)
                throws GranException
Throws:
GranException

SecuredUserBean

public SecuredUserBean(java.lang.String userId,
                       SessionContext sess)
                throws GranException
Throws:
GranException
Method Detail

getLogin

public java.lang.String getLogin()

getPassword

public java.lang.String getPassword()

getTel

public java.lang.String getTel()
                        throws GranException
Throws:
GranException

getEmail

public java.lang.String getEmail()

getLocale

public java.lang.String getLocale()

getTimezone

public java.lang.String getTimezone()

getUserExpireDate

public java.util.Calendar getUserExpireDate()
                                     throws GranException
Throws:
GranException

getExpireDate

public java.util.Calendar getExpireDate()
                                 throws GranException
Throws:
GranException

isExpired

public boolean isExpired()
                  throws GranException
Throws:
GranException

getCompany

public java.lang.String getCompany()
                            throws GranException
Throws:
GranException

getChildAllowed

public java.lang.Integer getChildAllowed()

getName

public java.lang.String getName()

getEncodeName

public java.lang.String getEncodeName()

getId

public java.lang.String getId()
Specified by:
getId in class Secured

getChildCount

public java.lang.Integer getChildCount()
                                throws GranException
Throws:
GranException

getTotalChildrenCount

public java.lang.Integer getTotalChildrenCount()
                                        throws GranException
Throws:
GranException

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
Specified by:
compareTo in class Secured

hasChildren

public boolean hasChildren()
                    throws GranException
Throws:
GranException

getPrstatus

public SecuredPrstatusBean getPrstatus()
                                throws GranException
Throws:
GranException

getManager

public SecuredUserBean getManager()
                           throws GranException
Throws:
GranException

getEmailType

public SecuredEmailTypeBean getEmailType()
                                  throws GranException
Throws:
GranException

getDefaultProject

public SecuredTaskBean getDefaultProject()
                                  throws GranException
Throws:
GranException

getLastLogonDate

public java.util.Calendar getLastLogonDate()
                                    throws GranException
Throws:
GranException

getPasswordChangedDate

public java.util.Calendar getPasswordChangedDate()
                                          throws GranException
Throws:
GranException

getChildren

public java.util.ArrayList getChildren()
                                throws GranException
Throws:
GranException

getChildrenIdOnly

public java.util.ArrayList getChildrenIdOnly()
                                      throws GranException
Throws:
GranException

getAllowedChildrenIdOnly

public java.util.List getAllowedChildrenIdOnly()
                                        throws GranException
Throws:
GranException

getAllowedUserAndChildrenListIdOnly

public java.util.List getAllowedUserAndChildrenListIdOnly()
                                                   throws GranException
Throws:
GranException

getUDFs

public java.util.ArrayList getUDFs()
                            throws GranException
Throws:
GranException

getUDFValuesForNewUser

public java.util.ArrayList getUDFValuesForNewUser()
                                           throws GranException
Throws:
GranException

getUDFValues

public java.util.HashMap getUDFValues()
                               throws GranException
Specified by:
getUDFValues in class AbstractBeanWithUdf
Throws:
GranException

getUDFValuesList

public java.util.ArrayList getUDFValuesList()
                                     throws GranException
Specified by:
getUDFValuesList in class AbstractBeanWithUdf
Throws:
GranException

getFilteredUDFValues

public java.util.ArrayList getFilteredUDFValues()
                                         throws GranException
Specified by:
getFilteredUDFValues in class AbstractBeanWithUdf
Throws:
GranException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getCurrentUserUDFs

public java.util.ArrayList getCurrentUserUDFs()
                                       throws GranException
Throws:
GranException

getDateFormatter

public DateFormatter getDateFormatter()
                               throws GranException
Throws:
GranException

getCountUDF

public java.lang.Integer getCountUDF()
                              throws GranException
Throws:
GranException

canUpdate

public boolean canUpdate()
                  throws GranException
Specified by:
canUpdate in class Secured
Throws:
GranException

getCanUpdate

public boolean getCanUpdate()
                     throws GranException
Overrides:
getCanUpdate in class Secured
Throws:
GranException

canView

public boolean canView()
                throws GranException
Specified by:
canView in class Secured
Throws:
GranException

getCanView

public boolean getCanView()
                   throws GranException
Throws:
GranException

getSOAP

public UserBean getSOAP()
                 throws GranException
Throws:
GranException

isActive

public boolean isActive()
                 throws GranException
Throws:
GranException

isHelp

public boolean isHelp()
               throws GranException
Throws:
GranException

isHtmlEditor

public boolean isHtmlEditor()
                     throws GranException
Throws:
GranException

getShowTreeMode

public java.lang.Integer getShowTreeMode()
                                  throws GranException
Throws:
GranException

getPrstatusId

public java.lang.String getPrstatusId()

getPasswordHistory

public java.lang.String getPasswordHistory()

getManagerId

public java.lang.String getManagerId()

getEmailTypeId

public java.lang.String getEmailTypeId()

getDefaultProjectId

public java.lang.String getDefaultProjectId()

isAllowed

public boolean isAllowed()

isOnSight

public boolean isOnSight()


Copyright © 2002-2008 TrackStudio, Ltd. All Rights Reserved.