Smack + openfire - Can I check if the current user is an administrator or not? / How to check the current user data?

Is it possible to check whether the current user is an administrator or not / How to check the current user information? (Java smack + openfire on Android)?
When I try to create a user on the openfire admin web page. There is an option:
Administrator? (Gives the administrator access to Openfire)
Can I find out if the current user has administrator access to Openfire? (I mean in smack, how to verify that the current user is an OpenFire administrator)

+3
source share
1 answer

,

 account = Connection.getAccountManager();
 Collection<String> attrs = account.getAccountAttributes();
 //inspect the values in attrs, should contain the type of account

Ok.. .

? → , , . admin / , , .. , .

, ,

/ → → ( )

. ( ) , . Is Administrator?: .

+4
source

All Articles