Class AdminPersonalWebDelegate
- java.lang.Object
-
- org.silverpeas.core.webapi.admin.delegate.AdminPersonalWebDelegate
-
public class AdminPersonalWebDelegate extends Object
- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WAComponent
discardComponent(String componentName)
Deletes from the user's personal space the instantiation of the requested componentString
getComponentLabel(SilverpeasComponent component)
Gets the WAComponent labelstatic AdminPersonalWebDelegate
getInstance(User user, UserPreferences userPreference, LookWebDelegate lookDelegate)
Easy way to instance the look service provider.Collection<WAComponent>
getNotUsedComponents()
Collection<ComponentInst>
getUsedComponents()
Collection<AbstractTool>
getUsedTools()
ComponentInst
useComponent(String componentName)
Instantiates the requested component in the user's personal space
-
-
-
Method Detail
-
getComponentLabel
public String getComponentLabel(SilverpeasComponent component)
Gets the WAComponent label- Parameters:
component
-- Returns:
- the component label
-
getNotUsedComponents
public Collection<WAComponent> getNotUsedComponents()
- Returns:
- all components that can be handled in personnal space but not used yet.
-
getUsedComponents
public Collection<ComponentInst> getUsedComponents()
- Returns:
- used components instanciated in the user personal space.
-
getUsedTools
public Collection<AbstractTool> getUsedTools()
- Returns:
- used tools in the user personal space.
-
useComponent
public ComponentInst useComponent(String componentName) throws Exception
Instantiates the requested component in the user's personal space- Parameters:
componentName
- the WAComponent name- Returns:
- the instantiated component
- Throws:
Exception
-
discardComponent
public WAComponent discardComponent(String componentName) throws Exception
Deletes from the user's personal space the instantiation of the requested component- Parameters:
componentName
- the WAComponent name- Returns:
- the WAComponent
- Throws:
Exception
-
getInstance
public static AdminPersonalWebDelegate getInstance(User user, UserPreferences userPreference, LookWebDelegate lookDelegate)
Easy way to instance the look service provider.- Parameters:
user
- the user detailuserPreference
- the user preferencelookDelegate
- a delegate of the Web look é@return a delegate
-
-