1/*2 * Copyright 2000-2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.om.profile;
1819import org.apache.jetspeed.portal.PortletSet;
2021/***22Represents a profile, the interface to a PSML resource.2324@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*/2728publicinterfaceProfileextendsProfileLocator29 {
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 */36publicPortletSet getRootSet();
3738/***39 * Gets the psml document attached to this profile40 *41 * @return The PSML document for this profile.42 */43publicPSMLDocument getDocument();
4445/***46 * Sets the psml document attached to this profile47 *48 * @param The PSML document for this profile.49 */50publicvoid setDocument(PSMLDocument document);
5152/***53 * stores the resource by merging and rewriting the psml file54 *55 * @throws ProfileException if an error occurs storing the profile56 */57publicvoid store() throws ProfileException;
5859/***60 * initialize a profile from a locator61 * 62 * @param locator63 */64publicvoid init(ProfileLocator locator);
65 }