edu.mit.stellar.directory
Interface PersonFactory


public interface PersonFactory

A class implementing the PersonFactory interface is a factory for objects implementing the Person interface.

See Also:
Person

Method Summary
 Person getPerson(java.lang.String userUid)
          Returns an object implementing the Person interface, for accessing information about the Person identified by the given userUid, using the default locale.
 Person getPerson(java.lang.String userUid, java.util.Locale locale)
          Returns an object implementing the Person interface, for accessing information about the Person identified by the given userUid, with properties returned in the specified locale when possible.
 

Method Detail

getPerson

public Person getPerson(java.lang.String userUid)
Returns an object implementing the Person interface, for accessing information about the Person identified by the given userUid, using the default locale. Each Factory governs users within its authority domain (e.g. institution).

Parameters:
userUid - - a String containing the userUid (user unique id) of the Person whose information is to be requested. This is a to be treated as an opaque string and not exposed to ordinary users. Though it will often be human readable and appear as an email address, it should not be used directly, but instead the username should be obtained from the Person object.
Returns:
an object implementing the Person interface
See Also:
Person

getPerson

public Person getPerson(java.lang.String userUid,
                        java.util.Locale locale)
Returns an object implementing the Person interface, for accessing information about the Person identified by the given userUid, with properties returned in the specified locale when possible.

Parameters:
userUid - - a String containing the userUid of the Person (site, context) whose information is to be requested
locale - - the locale which is to be used for localization of properties returned.
Returns:
an object implementing the Person interface
See Also:
Person


Copyright 2006-2006 MIT AMPS. All Rights Reserved.