cancel
Showing results for 
Search instead for 
Did you mean: 

To access properties provide during user creation

rama_honge
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

zaizi
Champ in-the-making
Champ in-the-making

String customProperty = (String)this.getNodeService().getProperty(navigator.getPerson(), CUSTOM_PROPERTY_QNAME);