|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
public class AbstractComponentSessionController
Base class for all component session controller.
| Field Summary | |
|---|---|
static String |
CHARACTER_ENCODING
The default character encoded supported by Silverpeas. |
protected ComponentContext |
context
|
| Constructor Summary | |
|---|---|
AbstractComponentSessionController(MainSessionController controller,
ComponentContext context)
Constructor declaration |
|
AbstractComponentSessionController(MainSessionController controller,
ComponentContext context,
String resourceFileName)
Constructor declaration |
|
AbstractComponentSessionController(MainSessionController controller,
ComponentContext context,
String multilangFileName,
String iconFileName)
|
|
AbstractComponentSessionController(MainSessionController controller,
ComponentContext context,
String multilangFileName,
String iconFileName,
String settingsFileName)
|
|
AbstractComponentSessionController(MainSessionController controller,
String spaceId,
String componentId)
Constructor declaration |
|
| Method Summary | |
|---|---|
void |
addClipboardSelection(ClipboardSelection selection)
|
void |
clipboardPasteDone()
|
void |
close()
|
AlertUser |
getAlertUser()
|
Integer |
getClipboardCount()
|
String |
getClipboardErrorMessage()
|
Exception |
getClipboardExceptionError()
|
String |
getClipboardName()
|
Collection<ClipboardSelection> |
getClipboardObjects()
|
Collection<ClipboardSelection> |
getClipboardSelectedObjects()
|
int |
getClipboardSize()
|
protected ComponentAccessController |
getComponentAccessController()
|
String |
getComponentId()
Return the unique identifier of the current component. |
String |
getComponentLabel()
Gets the label of the current used component (as known by the user). |
String |
getComponentName()
Return the name of the component (as specified in the xmlComponent) |
List<Parameter> |
getComponentParameters()
Gets the parameters for the current component instance. |
String |
getComponentParameterValue(ComponentInstanceParameterName parameterName)
Gets the value of the specified current component's parameter. |
String |
getComponentParameterValue(String parameterName)
Gets the value of the specified current component's parameter. |
String |
getComponentRootName()
return the component Root name : i.e. |
String |
getComponentUrl()
Gets the URL at which is located the current selected component. |
String |
getFavoriteSpace()
|
GenericPanel |
getGenericPanel(String panelKey)
|
SilverpeasRole |
getHighestSilverpeasUserRole()
Gets the highest role the user has on the component. |
ResourceLocator |
getIcon()
|
String |
getLanguage()
Gets the main language of the user. |
List<GlobalSilverContent> |
getLastResults()
|
String |
getLook()
Gets the identifier of the user website look. |
ResourceLocator |
getMultilang()
|
OrganisationController |
getOrganisationController()
Method declaration |
UserPreferences |
getPersonalization()
|
String |
getRSSUrl()
|
Selection |
getSelection()
|
String |
getServerNameAndPort()
|
ResourceLocator |
getSettings()
|
Collection<SilverpeasRole> |
getSilverpeasUserRoles()
Gets the roles the user has on the component. |
String |
getSpaceId()
Gets the unique identifier of the current selected workspace. |
String |
getSpaceLabel()
Gets the space label (as known by the user). |
String |
getString(String resName)
Method declaration |
SubscriptionContext |
getSubscriptionContext()
|
protected String |
getUrlEncodedParameter(String param)
Gets the URL encoded representation of the specified parameter. |
UserAccessLevel |
getUserAccessLevel()
|
String[] |
getUserAvailComponentIds()
Gets the user's available components. |
String[] |
getUserAvailSpaceIds()
Gets the user's available workspace. |
UserDetail |
getUserDetail()
Gets details on the connected current user. |
UserDetail |
getUserDetail(String userId)
|
String |
getUserId()
Gets the unique identifier of the current connected user. |
List<String> |
getUserManageableGroupIds()
|
String[] |
getUserManageableSpaceIds()
|
String |
getUserRoleLevel()
Deprecated. |
String[] |
getUserRoles()
Deprecated. |
boolean |
isAppInMaintenance()
|
boolean |
isGroupManager()
|
boolean |
isPasswordChangeAllowed()
|
boolean |
isSpaceInMaintenance(String spaceId)
|
void |
removeClipboardElement(int index)
|
void |
setAppModeMaintenance(boolean mode)
|
void |
setClipboardError(String messageId,
Exception ex)
|
void |
setClipboardSelectedElement(int index,
boolean selected)
|
protected void |
setComponentRootName(String newRootName)
Sets the component root name : i.e. |
void |
setFavoriteSpaceToMainSessionController(String newSpace)
The utilization of this method is allowed only for PersonalizationSessionController |
void |
setGenericPanel(String panelKey,
GenericPanel panel)
|
void |
setIconFileName(String iconFileName)
Sets the icon file by its name. |
void |
setLastResults(List<GlobalSilverContent> results)
|
void |
setMultilangFileName(String multilangFileName)
Method declaration |
void |
setResourceFileName(String resourceFileName)
Method declaration |
void |
setSpaceModeMaintenance(String spaceId,
boolean mode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CHARACTER_ENCODING
protected ComponentContext context
| Constructor Detail |
|---|
public AbstractComponentSessionController(MainSessionController controller,
String spaceId,
String componentId)
controller - spaceId - componentId -
public AbstractComponentSessionController(MainSessionController controller,
ComponentContext context)
controller - context -
public AbstractComponentSessionController(MainSessionController controller,
ComponentContext context,
String resourceFileName)
controller - context - resourceFileName -
public AbstractComponentSessionController(MainSessionController controller,
ComponentContext context,
String multilangFileName,
String iconFileName)
public AbstractComponentSessionController(MainSessionController controller,
ComponentContext context,
String multilangFileName,
String iconFileName,
String settingsFileName)
| Method Detail |
|---|
public ResourceLocator getMultilang()
getMultilang in interface ComponentSessionControllerpublic ResourceLocator getIcon()
getIcon in interface ComponentSessionControllerpublic ResourceLocator getSettings()
getSettings in interface ComponentSessionControllerpublic final void setMultilangFileName(String multilangFileName)
multilangFileName - public final void setIconFileName(String iconFileName)
iconFileName - the name of the icon file.public final void setResourceFileName(String resourceFileName)
resourceFileName - public String getString(String resName)
resName -
public OrganisationController getOrganisationController()
getOrganisationController in interface ComponentSessionControllerpublic String getLanguage()
getLanguage in interface ComponentSessionControllerpublic String getFavoriteSpace()
public void setFavoriteSpaceToMainSessionController(String newSpace)
newSpace - the new user favorite space.public String getLook()
public UserDetail getUserDetail()
getUserDetail in interface ComponentSessionControllerpublic UserDetail getUserDetail(String userId)
public String getUserId()
getUserId in interface ComponentSessionControllerpublic String getSpaceLabel()
getSpaceLabel in interface ComponentSessionControllerpublic String getSpaceId()
getSpaceId in interface ComponentSessionControllerpublic String getComponentName()
ComponentSessionController
getComponentName in interface ComponentSessionControllerpublic final String getComponentLabel()
getComponentLabel in interface ComponentSessionControllerpublic final String getComponentId()
getComponentId in interface ComponentSessionControllerpublic final String getComponentUrl()
getComponentUrl in interface ComponentSessionControllerpublic final String getComponentRootName()
protected final void setComponentRootName(String newRootName)
newRootName - the new root component.public List<Parameter> getComponentParameters()
getComponentParameters in interface ComponentSessionControllerpublic String getComponentParameterValue(String parameterName)
getComponentParameterValue in interface ComponentSessionControllerparameterName - the name of the parameter to get.
public String getComponentParameterValue(ComponentInstanceParameterName parameterName)
getComponentParameterValue in interface ComponentSessionControllerparameterName - the name (centralized) of the parameter to get.
public String[] getUserAvailComponentIds()
getUserAvailComponentIds in interface ComponentSessionControllerpublic String[] getUserAvailSpaceIds()
getUserAvailSpaceIds in interface ComponentSessionControllerpublic String[] getUserManageableSpaceIds()
public List<String> getUserManageableGroupIds()
public boolean isGroupManager()
@Deprecated public String[] getUserRoles()
getUserRoles in interface ComponentSessionController@Deprecated public String getUserRoleLevel()
getUserRoleLevel in interface ComponentSessionControllerpublic Collection<SilverpeasRole> getSilverpeasUserRoles()
ComponentSessionController
getSilverpeasUserRoles in interface ComponentSessionControllerpublic SilverpeasRole getHighestSilverpeasUserRole()
ComponentSessionController
getHighestSilverpeasUserRole in interface ComponentSessionControllerpublic UserPreferences getPersonalization()
getPersonalization in interface ComponentSessionControllerpublic UserAccessLevel getUserAccessLevel()
public void setGenericPanel(String panelKey,
GenericPanel panel)
public GenericPanel getGenericPanel(String panelKey)
public Selection getSelection()
public SubscriptionContext getSubscriptionContext()
public AlertUser getAlertUser()
public boolean isAppInMaintenance()
isAppInMaintenance in interface ComponentSessionControllerpublic void setAppModeMaintenance(boolean mode)
setAppModeMaintenance in interface ComponentSessionControllerpublic boolean isSpaceInMaintenance(String spaceId)
isSpaceInMaintenance in interface ComponentSessionController
public void setSpaceModeMaintenance(String spaceId,
boolean mode)
setSpaceModeMaintenance in interface ComponentSessionControllerpublic String getServerNameAndPort()
public List<GlobalSilverContent> getLastResults()
public void setLastResults(List<GlobalSilverContent> results)
public void close()
public boolean isPasswordChangeAllowed()
public String getRSSUrl()
protected String getUrlEncodedParameter(String param)
param - the parameter.
public Collection<ClipboardSelection> getClipboardSelectedObjects()
throws ClipboardException
getClipboardSelectedObjects in interface ComponentSessionControllerClipboardException
public String getClipboardErrorMessage()
throws ClipboardException
getClipboardErrorMessage in interface ComponentSessionControllerClipboardException
public Exception getClipboardExceptionError()
throws ClipboardException
getClipboardExceptionError in interface ComponentSessionControllerClipboardException
public Collection<ClipboardSelection> getClipboardObjects()
throws ClipboardException
getClipboardObjects in interface ComponentSessionControllerClipboardException
public void addClipboardSelection(ClipboardSelection selection)
throws ClipboardException
addClipboardSelection in interface ComponentSessionControllerClipboardExceptionpublic String getClipboardName()
getClipboardName in interface ComponentSessionController
public Integer getClipboardCount()
throws ClipboardException
getClipboardCount in interface ComponentSessionControllerClipboardException
public void clipboardPasteDone()
throws ClipboardException
clipboardPasteDone in interface ComponentSessionControllerClipboardException
public void setClipboardSelectedElement(int index,
boolean selected)
throws ClipboardException
setClipboardSelectedElement in interface ComponentSessionControllerClipboardException
public int getClipboardSize()
throws ClipboardException
getClipboardSize in interface ComponentSessionControllerClipboardException
public void removeClipboardElement(int index)
throws ClipboardException
removeClipboardElement in interface ComponentSessionControllerClipboardException
public void setClipboardError(String messageId,
Exception ex)
throws ClipboardException
setClipboardError in interface ComponentSessionControllerClipboardExceptionprotected ComponentAccessController getComponentAccessController()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||