source: src/main/java/geniusweb/profilesserver/ProfilesFactory.java@ 2

Last change on this file since 2 was 1, checked in by bart, 5 years ago

Initial Release

File size: 1.1 KB
Line 
1package geniusweb.profilesserver;
2
3import java.util.List;
4
5import geniusweb.issuevalue.Domain;
6import geniusweb.profile.Profile;
7import geniusweb.profilesserver.events.ChangeEvent;
8import tudelft.utilities.listener.Listenable;
9
10/**
11 * Profiles factory interface defining the access methods to the server.
12 */
13public interface ProfilesFactory extends Listenable<ChangeEvent> {
14 /**
15 *
16 * @param domainname a simple name (no extensions or so) as specified in the
17 * domain (so no full path or special characters).
18 * @return domain with the given name or null if no such domain exists.
19 */
20 Domain getDomain(String domainname);
21
22 /**
23 * @param simple profilename of the form "domainname/profileX" (no
24 * extendsions).
25 * @return profile with the given name and the given domain, or null if no
26 * such domain or profile exists.
27 *
28 */
29 Profile getProfile(String profilename);
30
31 /**
32 * @return a list of all domain names
33 */
34 List<String> getDomains();
35
36 /**
37 * @param domainname simple name of the domain.
38 * @return all profiles currently known for given domain
39 */
40 List<Profile> getProfiles(String domainname);
41
42}
Note: See TracBrowser for help on using the repository browser.