1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.om.profile;
18
19 import org.apache.jetspeed.portal.PortletSet;
20
21 /***
22 Represents a profile, the interface to a PSML resource.
23
24 @author <a href="mailto:david@bluesunrise.com">David Sean Taylor</a>
25 @version $Id: Profile.java,v 1.11 2004/02/23 03:05:01 jford Exp $
26 */
27
28 public interface Profile extends ProfileLocator
29 {
30 /***
31 * Gets the root set of portlets for this profile object.
32 *
33 * @deprecated Will be removed with refactoring of profiler service.
34 * @return The root portlet set for this profile.
35 */
36 public PortletSet getRootSet();
37
38 /***
39 * Gets the psml document attached to this profile
40 *
41 * @return The PSML document for this profile.
42 */
43 public PSMLDocument getDocument();
44
45 /***
46 * Sets the psml document attached to this profile
47 *
48 * @param The PSML document for this profile.
49 */
50 public void setDocument(PSMLDocument document);
51
52 /***
53 * stores the resource by merging and rewriting the psml file
54 *
55 * @throws ProfileException if an error occurs storing the profile
56 */
57 public void store() throws ProfileException;
58
59 /***
60 * initialize a profile from a locator
61 *
62 * @param locator
63 */
64 public void init(ProfileLocator locator);
65 }