Rev | Line | |
---|
[1] | 1 | package geniusweb.profilesserver;
|
---|
| 2 |
|
---|
| 3 | import java.util.List;
|
---|
| 4 |
|
---|
| 5 | import geniusweb.issuevalue.Domain;
|
---|
| 6 | import geniusweb.profile.Profile;
|
---|
| 7 | import geniusweb.profilesserver.events.ChangeEvent;
|
---|
| 8 | import tudelft.utilities.listener.Listenable;
|
---|
| 9 |
|
---|
| 10 | /**
|
---|
| 11 | * Profiles factory interface defining the access methods to the server.
|
---|
| 12 | */
|
---|
| 13 | public 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.