AnsweredAssumed Answered

To access properties provide during user creation

Question asked by rama.honge on Oct 14, 2009
Latest reply on Oct 14, 2009 by zaizi
Hi,

During user creation, i've added some additional properties (location, department) to be filled(made necessary changes in model and beans to set the new properties).

I wanted to use/get these properties auto populated when uploading a document. I've done it for author property. by overriding the getAuthor() method in AddContentDialog.java.


public String getAuthor()
   {
      FacesContext fc = FacesContext.getCurrentInstance();
      NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
      this.author = navigator.getCurrentUser().getUserName();
     
      return this.author;
   }

Any inputs on how to get the properties entered during user creation while uploading a document. I need to show these properties when document is uploaded.

Outcomes