com.trackstudio.secured
Class SecuredUserBean
java.lang.Object
com.trackstudio.tools.PropertyComparable
com.trackstudio.secured.Secured
com.trackstudio.secured.AbstractBeanWithUdf
com.trackstudio.secured.SecuredUserBean
- All Implemented Interfaces:
- java.lang.Comparable
public class SecuredUserBean
- extends AbstractBeanWithUdf
Bean which represents user
Fields inherited from class com.trackstudio.secured.Secured |
sc |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
allowedByACL
protected boolean allowedByACL
SecuredUserBean
public SecuredUserBean(UserRelatedInfo user,
SessionContext sess)
throws GranException
- Throws:
GranException
SecuredUserBean
public SecuredUserBean(java.lang.String userId,
SessionContext sess)
throws GranException
- Throws:
GranException
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.