RSE
Release 2.0

org.eclipse.rse.core.model
Interface ISystemProfile

All Superinterfaces:
IPropertySetContainer, IRSEModelObject, IRSEPersistableContainer

public interface ISystemProfile
extends IRSEModelObject

A system profile holds definitions for hosts (connections), filter pools, filters, and filter strings. It is the unit of persistence for those definitions. Individual hosts and filter pool definitions always reside in a profile and the profile itself is the entity that is saved and restored.

Profiles may be active or inactive. An active profile contributes its definitions to RSE. When made inactive, it those definition are no longer available for use.


Field Summary
 
Fields inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer
NO_CHILDREN
 
Method Summary
 IHost createHost(IRSESystemType systemType, String connectionName, String hostName, String description)
          Convenience method for create a new connection within this profile.
 ISystemFilterPool[] getFilterPools()
          Return all filter pools for this profile
 ISystemFilterPool[] getFilterPools(ISubSystemConfiguration ssf)
          Return all filter pools for this profile, scoped by a given subsystem factory
 IHost[] getHosts()
          Return all connections for this profile
 String getName()
           
 IRSEPersistenceProvider getPersistenceProvider()
          Each profile is persisted by a persistence provider.
 ISystemProfileManager getProfileManager()
          Get the in-memory pointer back to the parent system profile manager
 boolean isActive()
          Return true if this profile is currently active.
 boolean isDefaultPrivate()
           
 void setActive(boolean flag)
          Activates or deactivates a profile.
 void setDefaultPrivate(boolean value)
           
 void setName(String value)
           
 void setPersistenceProvider(IRSEPersistenceProvider provider)
          Sets the persistence provider for the use of this profile.
 void setProfileManager(ISystemProfileManager mgr)
          Set the in-memory pointer back to the parent system profile manager
 
Methods inherited from interface org.eclipse.rse.core.model.IRSEModelObject
getDescription
 
Methods inherited from interface org.eclipse.rse.core.model.IPropertySetContainer
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet
 
Methods inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer
commit, getPersistableChildren, getPersistableParent, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored
 

Method Detail

setProfileManager

void setProfileManager(ISystemProfileManager mgr)
Set the in-memory pointer back to the parent system profile manager


getProfileManager

ISystemProfileManager getProfileManager()
Get the in-memory pointer back to the parent system profile manager


createHost

IHost createHost(IRSESystemType systemType,
                 String connectionName,
                 String hostName,
                 String description)
                 throws Exception
Convenience method for create a new connection within this profile. Shortcut for ISystemRegistry.createHost(IRSESystemType,String,String,String)

Throws:
Exception

getName

String getName()
Specified by:
getName in interface IRSEModelObject
Returns:
The value of the Name attribute

setName

void setName(String value)
Parameters:
value - The new value of the Name attribute

isDefaultPrivate

boolean isDefaultPrivate()
Returns:
The value of the DefaultPrivate attribute Is this profile created automatically, and is it the profile that is unique for this developer?

setDefaultPrivate

void setDefaultPrivate(boolean value)
Parameters:
value - The new value of the DefaultPrivate attribute

getHosts

IHost[] getHosts()
Return all connections for this profile


getFilterPools

ISystemFilterPool[] getFilterPools()
Return all filter pools for this profile


getFilterPools

ISystemFilterPool[] getFilterPools(ISubSystemConfiguration ssf)
Return all filter pools for this profile, scoped by a given subsystem factory


isActive

boolean isActive()
Return true if this profile is currently active. An active profile is one that whose connections and filter pools are available for use by RSE. A profile may be loaded but be inactive. The active state of a profile is remembered from session to session.


setActive

void setActive(boolean flag)
Activates or deactivates a profile. If the profile is already in the requested state, this will do nothing.

Parameters:
flag - true to activate the profile, false to deactivate it.
See Also:
isActive()

getPersistenceProvider

IRSEPersistenceProvider getPersistenceProvider()
Each profile is persisted by a persistence provider. This returns the instance of the persistence provider used for this profile. New profiles will use the default persistence provider unless one is set by some other means.

Returns:
The persistence provider used for saving and restoring this profile.

setPersistenceProvider

void setPersistenceProvider(IRSEPersistenceProvider provider)
Sets the persistence provider for the use of this profile. If this is not called then this profile will be persisted by the default persistence provider. This will typically be set by either a persistence persistence provider when restoring a profile or by a migration utility when converting profiles from one form to another.

Parameters:
provider - the persistence provider to use when saving this profile.

RSE
Release 2.0

Copyright (c) IBM Corporation and others 2000, 2007. All Rights Reserved.