com.trackstudio.secured
Class SecuredUserBean

java.lang.Object
  extended by com.trackstudio.tools.PropertyComparable
      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
protected  boolean allowedByACL
           
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredUserBean(java.lang.String userId, SessionContext sess)
           
SecuredUserBean(UserRelatedInfo user, SessionContext sess)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 java.util.List<java.lang.String> getAllowedChildrenIdOnly()
           
 java.util.List<java.lang.String> getAllowedUserAndChildrenListIdOnly()
           
 java.util.ArrayList<SecuredUserBean> getAncestors()
           
 java.util.ArrayList<SecuredUserAttachmentBean> getAttachments()
           
 boolean getCanView()
           
 java.lang.Integer getChildCount()
           
 java.util.ArrayList<SecuredUserBean> getChildren()
           
 java.lang.Integer getChildrenAllowed()
           
 java.util.ArrayList getChildrenIdOnly()
           
 java.lang.String getCompany()
           
protected  PropertyContainer getContainer()
          Возвращает контейнер свойств
 java.lang.Integer getCountUDF()
           
 java.util.ArrayList<SecuredUserUDFBean> getCurrentUserUDFs()
           
 DateFormatter getDateFormatter()
           
 SecuredTaskBean getDefaultProject()
           
 java.lang.String getDefaultProjectId()
           
 java.lang.String getEmail()
           
 java.util.ArrayList<java.lang.String> getEmailList()
           
 java.util.Calendar getExpireDate()
           
 java.lang.String getExpireDateAsString()
           
 java.util.ArrayList<SecuredUDFValueBean> getFilteredUDFValues()
           
 java.util.ArrayList<SecuredUDFValueBean> getFilterUDFValues()
           
 java.lang.String getId()
           
 java.util.Calendar getLastLogonDate()
           
 java.lang.String getLocale()
           
 java.lang.String getLocaleAsString()
           
 java.lang.String getLogin()
           
 SecuredUserBean getManager()
           
 java.lang.String getManagerId()
           
 java.lang.String getName()
           
 SecuredUserBean getParent()
           
 java.lang.String getParentId()
           
 java.lang.String getPassword()
           
 java.util.Calendar getPasswordChangedDate()
           
 java.lang.String getPasswordHistory()
           
 java.lang.String getPreferences()
           
 SecuredPrstatusBean getPrstatus()
           
 java.lang.String getPrstatusId()
           
 UserBean getSOAP()
           
 java.lang.String getTel()
           
 java.lang.String getTemplate()
           
 java.lang.String getTimezone()
           
 java.lang.String getTimezoneAsString()
           
 java.lang.Integer getTotalChildrenCount()
           
 java.util.ArrayList<SecuredUDFBean> getUDFs()
           
 java.util.HashMap<java.lang.String,SecuredUDFValueBean> getUDFValues()
           
 java.util.ArrayList<SecuredUDFValueBean> getUDFValuesForNewUser()
           
 java.util.ArrayList<SecuredUDFValueBean> getUDFValuesList()
           
 UserRelatedInfo getUser()
           
 java.util.Calendar getUserExpireDate()
           
 boolean hasChildren()
           
 boolean isActive()
           
 boolean isAllowedByACL()
           
 boolean isDelete()
           
 boolean isEnabled()
           
 boolean isExpired()
           
 boolean isOnSight()
           
 java.lang.String toString()
           
 
Methods inherited from class com.trackstudio.secured.Secured
canUpdate, getCanManage, getCanUpdate, getSecure
 
Methods inherited from class com.trackstudio.tools.PropertyComparable
compareTo, compareToIgnoreCase, compareToIgnoreCase, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

allowedByACL

protected boolean allowedByACL
Constructor Detail

SecuredUserBean

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

SecuredUserBean

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

getUser

public UserRelatedInfo getUser()

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()

getEmailList

public java.util.ArrayList<java.lang.String> getEmailList()

getLocale

public java.lang.String getLocale()

getTimezone

public java.lang.String getTimezone()

getTimezoneAsString

public java.lang.String getTimezoneAsString()

getLocaleAsString

public java.lang.String getLocaleAsString()

getUserExpireDate

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

getExpireDate

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

getExpireDateAsString

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

isExpired

public boolean isExpired()
                  throws GranException
Throws:
GranException

getCompany

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

getChildrenAllowed

public java.lang.Integer getChildrenAllowed()

getName

public java.lang.String getName()

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

getContainer

protected PropertyContainer getContainer()
Description copied from class: PropertyComparable
Возвращает контейнер свойств

Specified by:
getContainer in class PropertyComparable
Returns:
контейнер свойств

hasChildren

public boolean hasChildren()
                    throws GranException
Throws:
GranException

getPrstatus

public SecuredPrstatusBean getPrstatus()
                                throws GranException
Throws:
GranException

getManager

public SecuredUserBean getManager()
                           throws GranException
Throws:
GranException

getParent

public SecuredUserBean getParent()
                          throws GranException
Throws:
GranException

getTemplate

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

getPreferences

public java.lang.String getPreferences()

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<SecuredUserBean> getChildren()
                                                 throws GranException
Throws:
GranException

getChildrenIdOnly

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

getAllowedChildrenIdOnly

public java.util.List<java.lang.String> getAllowedChildrenIdOnly()
                                                          throws GranException
Throws:
GranException

getAllowedUserAndChildrenListIdOnly

public java.util.List<java.lang.String> getAllowedUserAndChildrenListIdOnly()
                                                                     throws GranException
Throws:
GranException

getUDFs

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

getUDFValuesForNewUser

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

getUDFValues

public java.util.HashMap<java.lang.String,SecuredUDFValueBean> getUDFValues()
                                                                     throws GranException
Specified by:
getUDFValues in class AbstractBeanWithUdf
Throws:
GranException

getUDFValuesList

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

getFilteredUDFValues

public java.util.ArrayList<SecuredUDFValueBean> 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<SecuredUserUDFBean> getCurrentUserUDFs()
                                                           throws GranException
Throws:
GranException

getDateFormatter

public DateFormatter getDateFormatter()
                               throws GranException
Throws:
GranException

getCountUDF

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

isAllowedByACL

public boolean isAllowedByACL()
                       throws GranException
Specified by:
isAllowedByACL 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

isEnabled

public boolean isEnabled()
                  throws GranException
Throws:
GranException

getPrstatusId

public java.lang.String getPrstatusId()

getPasswordHistory

public java.lang.String getPasswordHistory()

getManagerId

public java.lang.String getManagerId()

getParentId

public java.lang.String getParentId()

getDefaultProjectId

public java.lang.String getDefaultProjectId()

isOnSight

public boolean isOnSight()

getAttachments

public java.util.ArrayList<SecuredUserAttachmentBean> getAttachments()
                                                              throws GranException
Throws:
GranException

getFilterUDFValues

public java.util.ArrayList<SecuredUDFValueBean> getFilterUDFValues()
                                                            throws GranException
Throws:
GranException

getAncestors

public java.util.ArrayList<SecuredUserBean> getAncestors()
                                                  throws GranException
Throws:
GranException

canManage

public boolean canManage()
                  throws GranException
Description copied from class: Secured
Проверяет доступ к бину. Новый улучшеный метод. Нужно проверять доступ как по ACL, так и по Roles

Specified by:
canManage in class Secured
Returns:
TRUE - доступ есть, FALSE - нет
Throws:
GranException - при необходимости

isDelete

public boolean isDelete()
                 throws GranException
Throws:
GranException


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