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 TypeMethodDescriptionvoidaddCategory(ecmwf.web.model.users.Category cat) Adds the category.booleancanRead(ecmwf.web.model.users.Resource r) Can read.booleancanWrite(ecmwf.web.model.users.Resource r) Can write.intCompare to.voiddeleteCategory(ecmwf.web.model.users.Category cat) Delete category.Dump.booleanEquals.booleanGets 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.CategoryGets the category.Gets the common name.Gets the credentials.protected Collection<ecmwf.web.model.users.Category> Gets the deleted categories.ecmwf.web.model.users.UserGets 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.UserDataGets the user data.booleanhasAccess(ecmwf.web.model.users.Resource r) Checks for access.booleanChecks for access.booleanChecks for access.inthashCode()Hash code.booleanChecks for policy.booleanChecks if is anonymous.voidsetActive(boolean b) Sets the active.voidSets the as fallback public.voidsetAuthenticationMethod(int authenticationMethod) Sets the authentication method.voidsetCommonName(String name) Sets the common name.voidSets the credentials.voidSets the last credential check.voidSets the password.voidSets the remote user.voidSets the uid.voidsetUserData(ecmwf.web.model.users.UserData data) Sets the user data.voidSets the user data.Methods inherited from class ecmwf.web.dao.ModelBeanBase
delete, delete, getAttributeValue, getIntId, insert, insert, isNew, save, save, setIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getBeanInterfaceNamein interfaceecmwf.web.model.ModelBean- Specified by:
getBeanInterfaceNamein classecmwf.web.dao.ModelBeanBase
-
getOjbImplementation
Gets the ojb implementation. Gets the ojb implementation.- Specified by:
getOjbImplementationin interfaceOjbImplementedBean- Returns:
- the ojb implementation
-
getId
Gets the id.- Specified by:
getIdin interfaceecmwf.web.model.ModelBean- Overrides:
getIdin classecmwf.web.dao.ModelBeanBase
-
getUid
-
getRemoteUser
Gets the remote user.- Specified by:
getRemoteUserin interfaceecmwf.web.model.users.User
-
setRemoteUser
Sets the remote user.- Specified by:
setRemoteUserin interfaceecmwf.web.model.users.User
-
getCommonName
Gets the common name.- Specified by:
getCommonNamein interfaceecmwf.web.model.users.User
-
getFriendlyName
Gets the friendly name.- Specified by:
getFriendlyNamein interfaceecmwf.web.model.users.User
-
getCategory
public ecmwf.web.model.users.Category getCategory() throws ecmwf.web.model.users.UserExceptionGets the category.- Specified by:
getCategoryin interfaceecmwf.web.model.users.User- Throws:
ecmwf.web.model.users.UserException
-
getCategories
Gets the categories.- Specified by:
getCategoriesin interfaceecmwf.web.model.users.User- Throws:
ecmwf.web.model.users.UserException
-
getAuthenticationMethod
Gets the authentication method.- Specified by:
getAuthenticationMethodin interfaceecmwf.web.model.users.User
-
setAuthenticationMethod
public void setAuthenticationMethod(int authenticationMethod) Sets the authentication method.- Specified by:
setAuthenticationMethodin interfaceecmwf.web.model.users.User
-
setUserData
public void setUserData(ecmwf.web.model.users.UserData data) Sets the user data.- Specified by:
setUserDatain interfaceecmwf.web.model.users.User
-
getUserData
public ecmwf.web.model.users.UserData getUserData()Gets the user data.- Specified by:
getUserDatain interfaceecmwf.web.model.users.User
-
hasAccess
Checks for access.- Specified by:
hasAccessin 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:
hasAccessin interfaceecmwf.web.model.users.User- Throws:
ecmwf.web.model.users.UserException
-
setUserData
Sets the user data. Sets the user data.- Specified by:
setUserDatain interfaceWebUser- Parameters:
s- the new user data
-
getAllowedPackages
-
getCredentials
Gets the credentials.- Specified by:
getCredentialsin interfaceecmwf.web.model.users.User
-
setCredentials
Sets the credentials.- Specified by:
setCredentialsin interfaceecmwf.web.model.users.User
-
getPassword
Gets the password.- Specified by:
getPasswordin interfaceecmwf.web.model.users.User
-
setPassword
Sets the password. Sets the password.- Specified by:
setPasswordin interfaceWebUser- Parameters:
p- the new password
-
getLastCredentialCheck
Gets the last credential check.- Specified by:
getLastCredentialCheckin interfaceecmwf.web.model.users.User
-
setLastCredentialCheck
Sets the last credential check.- Specified by:
setLastCredentialCheckin interfaceecmwf.web.model.users.User
-
compareTo
Compare to.- Specified by:
compareToin interfaceComparable- Specified by:
compareToin interfaceecmwf.web.model.users.User
-
equals
-
hashCode
-
getDuplicate
public ecmwf.web.model.users.User getDuplicate()Gets the duplicate.- Specified by:
getDuplicatein interfaceecmwf.web.model.users.User
-
setAsFallbackPublic
public void setAsFallbackPublic()Sets the as fallback public.- Specified by:
setAsFallbackPublicin interfaceecmwf.web.model.users.User
-
isAnonymous
public boolean isAnonymous()Checks if is anonymous.- Specified by:
isAnonymousin interfaceecmwf.web.model.users.User
-
dump
-
setCommonName
Sets the common name. Sets the common name.- Specified by:
setCommonNamein 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:
deleteCategoryin interfaceWebUser- Parameters:
cat- the c
-
addCategory
public void addCategory(ecmwf.web.model.users.Category cat) Adds the category. Adds the category.- Specified by:
addCategoryin 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:
canReadin 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:
canWritein interfaceecmwf.web.model.users.User- Throws:
ecmwf.web.model.users.UserException
-
getPolicies
Gets the policies.- Specified by:
getPoliciesin interfaceecmwf.web.model.users.User- Throws:
ecmwf.web.model.users.UserException
-
hasPolicy
Checks for policy.- Specified by:
hasPolicyin interfaceecmwf.web.model.users.User- Throws:
ecmwf.web.model.users.UserException
-