Class UserBean
java.lang.Object
ecmwf.web.dao.ModelBeanBase
ecmwf.ecpds.master.plugin.http.dao.users.UserBean
- All Implemented Interfaces:
OjbImplementedBean
,WebUser
,ecmwf.web.model.ModelBean
,ecmwf.web.model.users.User
,Cloneable
,Comparable
,Principal
The Class UserBean.
-
Field Summary
Fields inherited from interface ecmwf.web.model.users.User
ANONYMOUS, CERTIFICATE, DOMAIN, DOMAIN_DATA, HTTP, HTTPS, IP_ADDRESS, SESSION_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCategory
(ecmwf.web.model.users.Category cat) Adds the category.boolean
canRead
(ecmwf.web.model.users.Resource r) Can read.boolean
canWrite
(ecmwf.web.model.users.Resource r) Can write.int
Compare to.void
deleteCategory
(ecmwf.web.model.users.Category cat) Delete category.Dump.boolean
Equals.boolean
Gets the active.protected Collection
<ecmwf.web.model.users.Category> Gets the added categories.Collection
<?> Gets the allowed packages.Gets the authentication method.Gets the bean interface name.Collection
<?> Gets the categories.ecmwf.web.model.users.Category
Gets the category.Gets the common name.Gets the credentials.protected Collection
<ecmwf.web.model.users.Category> Gets the deleted categories.ecmwf.web.model.users.User
Gets the duplicate.Gets the friendly name.getId()
Gets the id.Gets the last credential check.getName()
Gets the name.Gets the ojb implementation.Gets the password.Collection
<?> Gets the policies.Gets the remote user.getUid()
Gets the uid.ecmwf.web.model.users.UserData
Gets the user data.boolean
hasAccess
(ecmwf.web.model.users.Resource r) Checks for access.boolean
Checks for access.boolean
Checks for access.int
hashCode()
Hash code.boolean
Checks for policy.boolean
Checks if is anonymous.void
setActive
(boolean b) Sets the active.void
Sets the as fallback public.void
setAuthenticationMethod
(int authenticationMethod) Sets the authentication method.void
setCommonName
(String name) Sets the common name.void
Sets the credentials.void
Sets the last credential check.void
Sets the password.void
Sets the remote user.void
Sets the uid.void
setUserData
(ecmwf.web.model.users.UserData data) Sets the user data.void
Sets the user data.Methods inherited from class ecmwf.web.dao.ModelBeanBase
delete, delete, getAttributeValue, getIntId, insert, insert, isNew, save, save, setId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ecmwf.web.model.ModelBean
delete, delete, getAttributeValue, getIntId, insert, insert, isNew, save, save
-
Constructor Details
-
UserBean
-
-
Method Details
-
getBeanInterfaceName
Gets the bean interface name.- Specified by:
getBeanInterfaceName
in interfaceecmwf.web.model.ModelBean
- Specified by:
getBeanInterfaceName
in classecmwf.web.dao.ModelBeanBase
-
getOjbImplementation
Gets the ojb implementation. Gets the ojb implementation.- Specified by:
getOjbImplementation
in interfaceOjbImplementedBean
- Returns:
- the ojb implementation
-
getId
Gets the id.- Specified by:
getId
in interfaceecmwf.web.model.ModelBean
- Overrides:
getId
in classecmwf.web.dao.ModelBeanBase
-
getUid
-
getRemoteUser
Gets the remote user.- Specified by:
getRemoteUser
in interfaceecmwf.web.model.users.User
-
setRemoteUser
Sets the remote user.- Specified by:
setRemoteUser
in interfaceecmwf.web.model.users.User
-
getCommonName
Gets the common name.- Specified by:
getCommonName
in interfaceecmwf.web.model.users.User
-
getFriendlyName
Gets the friendly name.- Specified by:
getFriendlyName
in interfaceecmwf.web.model.users.User
-
getCategory
public ecmwf.web.model.users.Category getCategory() throws ecmwf.web.model.users.UserExceptionGets the category.- Specified by:
getCategory
in interfaceecmwf.web.model.users.User
- Throws:
ecmwf.web.model.users.UserException
-
getCategories
Gets the categories.- Specified by:
getCategories
in interfaceecmwf.web.model.users.User
- Throws:
ecmwf.web.model.users.UserException
-
getAuthenticationMethod
Gets the authentication method.- Specified by:
getAuthenticationMethod
in interfaceecmwf.web.model.users.User
-
setAuthenticationMethod
public void setAuthenticationMethod(int authenticationMethod) Sets the authentication method.- Specified by:
setAuthenticationMethod
in interfaceecmwf.web.model.users.User
-
setUserData
public void setUserData(ecmwf.web.model.users.UserData data) Sets the user data.- Specified by:
setUserData
in interfaceecmwf.web.model.users.User
-
getUserData
public ecmwf.web.model.users.UserData getUserData()Gets the user data.- Specified by:
getUserData
in interfaceecmwf.web.model.users.User
-
hasAccess
Checks for access.- Specified by:
hasAccess
in interfaceecmwf.web.model.users.User
- Throws:
ecmwf.web.model.users.UserException
-
hasAccess
-
hasAccess
public boolean hasAccess(ecmwf.web.model.users.Resource r) throws ecmwf.web.model.users.UserException Checks for access.- Specified by:
hasAccess
in interfaceecmwf.web.model.users.User
- Throws:
ecmwf.web.model.users.UserException
-
setUserData
Sets the user data. Sets the user data.- Specified by:
setUserData
in interfaceWebUser
- Parameters:
s
- the new user data
-
getAllowedPackages
-
getCredentials
Gets the credentials.- Specified by:
getCredentials
in interfaceecmwf.web.model.users.User
-
setCredentials
Sets the credentials.- Specified by:
setCredentials
in interfaceecmwf.web.model.users.User
-
getPassword
Gets the password.- Specified by:
getPassword
in interfaceecmwf.web.model.users.User
-
setPassword
Sets the password. Sets the password.- Specified by:
setPassword
in interfaceWebUser
- Parameters:
p
- the new password
-
getLastCredentialCheck
Gets the last credential check.- Specified by:
getLastCredentialCheck
in interfaceecmwf.web.model.users.User
-
setLastCredentialCheck
Sets the last credential check.- Specified by:
setLastCredentialCheck
in interfaceecmwf.web.model.users.User
-
compareTo
Compare to.- Specified by:
compareTo
in interfaceComparable
- Specified by:
compareTo
in interfaceecmwf.web.model.users.User
-
equals
-
hashCode
-
getDuplicate
public ecmwf.web.model.users.User getDuplicate()Gets the duplicate.- Specified by:
getDuplicate
in interfaceecmwf.web.model.users.User
-
setAsFallbackPublic
public void setAsFallbackPublic()Sets the as fallback public.- Specified by:
setAsFallbackPublic
in interfaceecmwf.web.model.users.User
-
isAnonymous
public boolean isAnonymous()Checks if is anonymous.- Specified by:
isAnonymous
in interfaceecmwf.web.model.users.User
-
dump
-
setCommonName
Sets the common name. Sets the common name.- Specified by:
setCommonName
in interfaceWebUser
- Parameters:
name
- the new common name
-
getName
-
setUid
-
deleteCategory
public void deleteCategory(ecmwf.web.model.users.Category cat) Delete category. Delete category.- Specified by:
deleteCategory
in interfaceWebUser
- Parameters:
cat
- the c
-
addCategory
public void addCategory(ecmwf.web.model.users.Category cat) Adds the category. Adds the category.- Specified by:
addCategory
in interfaceWebUser
- Parameters:
cat
- the c
-
getActive
-
setActive
-
getAddedCategories
Gets the added categories.- Returns:
- the added categories
-
getDeletedCategories
Gets the deleted categories.- Returns:
- the deleted categories
-
canRead
public boolean canRead(ecmwf.web.model.users.Resource r) throws ecmwf.web.model.users.UserException Can read.- Specified by:
canRead
in interfaceecmwf.web.model.users.User
- Throws:
ecmwf.web.model.users.UserException
-
canWrite
public boolean canWrite(ecmwf.web.model.users.Resource r) throws ecmwf.web.model.users.UserException Can write.- Specified by:
canWrite
in interfaceecmwf.web.model.users.User
- Throws:
ecmwf.web.model.users.UserException
-
getPolicies
Gets the policies.- Specified by:
getPolicies
in interfaceecmwf.web.model.users.User
- Throws:
ecmwf.web.model.users.UserException
-
hasPolicy
Checks for policy.- Specified by:
hasPolicy
in interfaceecmwf.web.model.users.User
- Throws:
ecmwf.web.model.users.UserException
-