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

public class UserBean extends ecmwf.web.dao.ModelBeanBase implements WebUser, OjbImplementedBean
The Class UserBean.
  • Constructor Details

    • UserBean

      protected UserBean(WebUser user)
      Instantiates a new user bean.
      Parameters:
      user - the user
  • Method Details

    • getBeanInterfaceName

      public String getBeanInterfaceName()
      Gets the bean interface name.
      Specified by:
      getBeanInterfaceName in interface ecmwf.web.model.ModelBean
      Specified by:
      getBeanInterfaceName in class ecmwf.web.dao.ModelBeanBase
    • getOjbImplementation

      public DataBaseObject getOjbImplementation()
      Gets the ojb implementation. Gets the ojb implementation.
      Specified by:
      getOjbImplementation in interface OjbImplementedBean
      Returns:
      the ojb implementation
    • getId

      public String getId()
      Gets the id.
      Specified by:
      getId in interface ecmwf.web.model.ModelBean
      Overrides:
      getId in class ecmwf.web.dao.ModelBeanBase
    • getUid

      public String getUid()
      Gets the uid.
      Specified by:
      getUid in interface ecmwf.web.model.users.User
    • getRemoteUser

      public String getRemoteUser()
      Gets the remote user.
      Specified by:
      getRemoteUser in interface ecmwf.web.model.users.User
    • setRemoteUser

      public void setRemoteUser(String v)
      Sets the remote user.
      Specified by:
      setRemoteUser in interface ecmwf.web.model.users.User
    • getCommonName

      public String getCommonName()
      Gets the common name.
      Specified by:
      getCommonName in interface ecmwf.web.model.users.User
    • getFriendlyName

      public String getFriendlyName()
      Gets the friendly name.
      Specified by:
      getFriendlyName in interface ecmwf.web.model.users.User
    • getCategory

      public ecmwf.web.model.users.Category getCategory() throws ecmwf.web.model.users.UserException
      Gets the category.
      Specified by:
      getCategory in interface ecmwf.web.model.users.User
      Throws:
      ecmwf.web.model.users.UserException
    • getCategories

      public Collection<?> getCategories() throws ecmwf.web.model.users.UserException
      Gets the categories.
      Specified by:
      getCategories in interface ecmwf.web.model.users.User
      Throws:
      ecmwf.web.model.users.UserException
    • getAuthenticationMethod

      public String getAuthenticationMethod()
      Gets the authentication method.
      Specified by:
      getAuthenticationMethod in interface ecmwf.web.model.users.User
    • setAuthenticationMethod

      public void setAuthenticationMethod(int authenticationMethod)
      Sets the authentication method.
      Specified by:
      setAuthenticationMethod in interface ecmwf.web.model.users.User
    • setUserData

      public void setUserData(ecmwf.web.model.users.UserData data)
      Sets the user data.
      Specified by:
      setUserData in interface ecmwf.web.model.users.User
    • getUserData

      public ecmwf.web.model.users.UserData getUserData()
      Gets the user data.
      Specified by:
      getUserData in interface ecmwf.web.model.users.User
    • hasAccess

      public boolean hasAccess(String path) throws ecmwf.web.model.users.UserException
      Checks for access.
      Specified by:
      hasAccess in interface ecmwf.web.model.users.User
      Throws:
      ecmwf.web.model.users.UserException
    • hasAccess

      public boolean hasAccess(String host, String path) throws ecmwf.web.model.users.UserException
      Checks for access.
      Specified by:
      hasAccess in interface ecmwf.web.model.users.User
      Throws:
      ecmwf.web.model.users.UserException
    • hasAccess

      public boolean hasAccess(ecmwf.web.model.users.Resource r) throws ecmwf.web.model.users.UserException
      Checks for access.
      Specified by:
      hasAccess in interface ecmwf.web.model.users.User
      Throws:
      ecmwf.web.model.users.UserException
    • setUserData

      public void setUserData(String s)
      Sets the user data. Sets the user data.
      Specified by:
      setUserData in interface WebUser
      Parameters:
      s - the new user data
    • getAllowedPackages

      public Collection<?> getAllowedPackages()
      Gets the allowed packages.
      Returns:
      the allowed packages
    • getCredentials

      public Object getCredentials()
      Gets the credentials.
      Specified by:
      getCredentials in interface ecmwf.web.model.users.User
    • setCredentials

      public void setCredentials(Object o)
      Sets the credentials.
      Specified by:
      setCredentials in interface ecmwf.web.model.users.User
    • getPassword

      public String getPassword()
      Gets the password.
      Specified by:
      getPassword in interface ecmwf.web.model.users.User
    • setPassword

      public void setPassword(String p)
      Sets the password. Sets the password.
      Specified by:
      setPassword in interface WebUser
      Parameters:
      p - the new password
    • getLastCredentialCheck

      public Date getLastCredentialCheck()
      Gets the last credential check.
      Specified by:
      getLastCredentialCheck in interface ecmwf.web.model.users.User
    • setLastCredentialCheck

      public void setLastCredentialCheck(Date d)
      Sets the last credential check.
      Specified by:
      setLastCredentialCheck in interface ecmwf.web.model.users.User
    • compareTo

      public int compareTo(Object o)
      Compare to.
      Specified by:
      compareTo in interface Comparable
      Specified by:
      compareTo in interface ecmwf.web.model.users.User
    • equals

      public boolean equals(Object o)
      Equals.
      Specified by:
      equals in interface Principal
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Hash code.
      Specified by:
      hashCode in interface Principal
      Overrides:
      hashCode in class Object
    • getDuplicate

      public ecmwf.web.model.users.User getDuplicate()
      Gets the duplicate.
      Specified by:
      getDuplicate in interface ecmwf.web.model.users.User
    • setAsFallbackPublic

      public void setAsFallbackPublic()
      Sets the as fallback public.
      Specified by:
      setAsFallbackPublic in interface ecmwf.web.model.users.User
    • isAnonymous

      public boolean isAnonymous()
      Checks if is anonymous.
      Specified by:
      isAnonymous in interface ecmwf.web.model.users.User
    • dump

      public String dump(String format)
      Dump.
      Specified by:
      dump in interface ecmwf.web.model.users.User
    • setCommonName

      public void setCommonName(String name)
      Sets the common name. Sets the common name.
      Specified by:
      setCommonName in interface WebUser
      Parameters:
      name - the new common name
    • getName

      public String getName()
      Gets the name.
      Specified by:
      getName in interface Principal
    • setUid

      public void setUid(String uid)
      Sets the uid. Sets the uid.
      Specified by:
      setUid in interface WebUser
      Parameters:
      uid - the new uid
    • deleteCategory

      public void deleteCategory(ecmwf.web.model.users.Category cat)
      Delete category. Delete category.
      Specified by:
      deleteCategory in interface WebUser
      Parameters:
      cat - the c
    • addCategory

      public void addCategory(ecmwf.web.model.users.Category cat)
      Adds the category. Adds the category.
      Specified by:
      addCategory in interface WebUser
      Parameters:
      cat - the c
    • getActive

      public boolean getActive()
      Gets the active. Gets the active.
      Specified by:
      getActive in interface WebUser
      Returns:
      the active
    • setActive

      public void setActive(boolean b)
      Sets the active. Sets the active.
      Specified by:
      setActive in interface WebUser
      Parameters:
      b - the new active
    • getAddedCategories

      protected Collection<ecmwf.web.model.users.Category> getAddedCategories()
      Gets the added categories.
      Returns:
      the added categories
    • getDeletedCategories

      protected Collection<ecmwf.web.model.users.Category> 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 interface ecmwf.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 interface ecmwf.web.model.users.User
      Throws:
      ecmwf.web.model.users.UserException
    • getPolicies

      public Collection<?> getPolicies() throws ecmwf.web.model.users.UserException
      Gets the policies.
      Specified by:
      getPolicies in interface ecmwf.web.model.users.User
      Throws:
      ecmwf.web.model.users.UserException
    • hasPolicy

      public boolean hasPolicy(String name) throws ecmwf.web.model.users.UserException
      Checks for policy.
      Specified by:
      hasPolicy in interface ecmwf.web.model.users.User
      Throws:
      ecmwf.web.model.users.UserException