org.apache.airavata.common.registry.api.user
Interface User

All Superinterfaces:
Authorizable

public interface User
extends Authorizable

User is a special Authorizable that can be authenticated and impersonated.

See Also:
getCredentials(), #getImpersonation()

Method Summary
 void changePassword(String password)
          Change the password of this user.
 javax.jcr.Credentials getCredentials()
          Returns Credentials for this user.
 boolean isAdmin()
           
 
Methods inherited from interface org.apache.airavata.common.registry.api.user.Authorizable
declaredMemberOf, getID, getPrincipal, getProperty, getPropertyNames, getPropertyNames, hasProperty, isGroup, memberOf, remove, removeProperty, setProperty, setProperty
 

Method Detail

isAdmin

boolean isAdmin()
Returns:
true if the current user represents the administrator.

getCredentials

javax.jcr.Credentials getCredentials()
                                     throws javax.jcr.RepositoryException
Returns Credentials for this user.

Returns:
Credentials for this user.
Throws:
javax.jcr.RepositoryException - If an error occurs.

changePassword

void changePassword(String password)
                    throws javax.jcr.RepositoryException
Change the password of this user.

Parameters:
password - The new password.
Throws:
javax.jcr.RepositoryException - If an error occurs.


Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.