org.apache.jetspeed.om.profile
Class BaseProfile

java.lang.Object
  extended byorg.apache.jetspeed.om.profile.BaseProfileLocator
      extended byorg.apache.jetspeed.om.profile.BaseProfile
All Implemented Interfaces:
java.lang.Cloneable, Profile, ProfileLocator, java.io.Serializable
Direct Known Subclasses:
ImportProfile

public class BaseProfile
extends BaseProfileLocator
implements Profile

Provides base functionality within a Registry.

Version:
$Id: BaseProfile.java,v 1.19 2004/02/23 03:05:01 jford Exp $
Author:
David Sean Taylor
See Also:
Serialized Form

Field Summary
protected  PSMLDocument document
           
 
Constructor Summary
BaseProfile()
           
BaseProfile(ProfileLocator locator)
           
 
Method Summary
 java.lang.Object clone()
           
 PSMLDocument getDocument()
          Gets the root set of portlets for this profile object.
 PortletSet getRootSet()
          Gets the root set of portlets for this profile object.
 void init(ProfileLocator locator)
          initialize a profile from a locator
 void setDocument(PSMLDocument document)
          Sets the psml document attached to this profile
 void store()
          stores the resource by merging and rewriting the psml file
 java.lang.String toString()
          provide useful info for ease of debugging
 
Methods inherited from class org.apache.jetspeed.om.profile.BaseProfileLocator
createFromPath, equals, getAnonymous, getCountry, getGroup, getGroupName, getId, getLanguage, getMediaType, getName, getPath, getRole, getRoleName, getUser, getUserName, setAnonymous, setCountry, setGroup, setGroupByName, setLanguage, setMediaType, setName, setRole, setRoleByName, setUser
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.om.profile.ProfileLocator
createFromPath, getAnonymous, getCountry, getGroup, getGroupName, getId, getLanguage, getMediaType, getName, getPath, getRole, getRoleName, getUser, getUserName, setAnonymous, setCountry, setGroup, setGroupByName, setLanguage, setMediaType, setName, setRole, setRoleByName, setUser
 

Field Detail

document

protected PSMLDocument document
Constructor Detail

BaseProfile

public BaseProfile()

BaseProfile

public BaseProfile(ProfileLocator locator)
Method Detail

init

public void init(ProfileLocator locator)
Description copied from interface: Profile
initialize a profile from a locator

Specified by:
init in interface Profile
Parameters:
locator -

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface ProfileLocator
Overrides:
clone in class BaseProfileLocator
Returns:
an instance copy of this object
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()

getRootSet

public PortletSet getRootSet()
Gets the root set of portlets for this profile object.

Specified by:
getRootSet in interface Profile
Returns:
The root portlet set for this profile.

getDocument

public PSMLDocument getDocument()
Gets the root set of portlets for this profile object.

Specified by:
getDocument in interface Profile
Returns:
The root portlet set for this profile.

setDocument

public void setDocument(PSMLDocument document)
Description copied from interface: Profile
Sets the psml document attached to this profile

Specified by:
setDocument in interface Profile

store

public void store()
           throws ProfileException
stores the resource by merging and rewriting the psml file

Specified by:
store in interface Profile
Throws:
ProfileException - if an error occurs storing the profile

toString

public java.lang.String toString()
provide useful info for ease of debugging



Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.