cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use JAVA method getprop() -metaclass "Utilisateurs"

Solved
Highlighted
New Contributor

How to use JAVA method getprop() -metaclass "Utilisateurs"

I would like to extract the value of the property "Identifiant WIndows" (french) of the metaclass "Utilisateur".

 

with vbs Code, it's possible with oUser.GetProp("Identifiant windows") if oUser is an instance of oMegaRoot.GetCollection("Utilisateur").

 

with JAVA, I cannot get the value with :

fist code :

 

app = new MegaApplication();

env = app.getEnvironments().get("myEnvironnement");

I use

env.setCurrentAdministrator("myAdmin"); 

env.setCurrentPassword("myPass");

env.users().get(i).getProp("Identifiant Windows");

result : "" or nothing ?

 

or second code :

 

app = new MegaApplication();

env = app.getEnvironments().get("myEnvironnement");

env.setCurrentAdministrator("myAdmin"); 

env.setCurrentPassword("myPass");

base = env.databases().get("myRepo");

root = base.open();

 

root.getCollection("Users").get(32).getProp("Identifiant Windows")

 

return "" too.

 

Enjoy your help

 

 

 

Tags (1)
1 Reply
New Contributor

Re: How to use JAVA method getprop() -metaclass "Utilisateurs"

 

 

oRoot = env.databases().get("nomdebase").open();

cUser = oRoot.getCollection("Utilisateurs");

 

for...{

 cUser.get(i).getProp("Identifiant Windows");

}

CUser= null;

oRoot.close();

oRoot = null;