01: /**
02: * $RCSfile$
03: * $Revision: $
04: * $Date: $
05: *
06: * Copyright (C) 2006 Jive Software. All rights reserved.
07: *
08: * This software is published under the terms of the GNU Public License (GPL),
09: * a copy of which is included in this distribution.
10: */package org.jivesoftware.openfire.user;
11:
12: import org.xmpp.packet.JID;
13:
14: /**
15: * Interface to be implemented by components that are capable of returning the name of entities
16: * when running as internal components.
17: *
18: * @author Gaston Dombiak
19: */
20: public interface UserNameProvider {
21:
22: /**
23: * Returns the name of the entity specified by the following JID.
24: *
25: * @param entity JID of the entity to return its name.
26: * @return the name of the entity specified by the following JID.
27: */
28: abstract String getUserName(JID entity);
29: }
|