|
||||||||||
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 ComponentSessionController
public ResourceLocator getIcon()
getIcon
in interface ComponentSessionController
public ResourceLocator getSettings()
getSettings
in interface ComponentSessionController
public 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 ComponentSessionController
public String getLanguage()
getLanguage
in interface ComponentSessionController
public String getFavoriteSpace()
public void setFavoriteSpaceToMainSessionController(String newSpace)
newSpace
- the new user favorite space.public String getLook()
public UserDetail getUserDetail()
getUserDetail
in interface ComponentSessionController
public UserDetail getUserDetail(String userId)
public String getUserId()
getUserId
in interface ComponentSessionController
public String getSpaceLabel()
getSpaceLabel
in interface ComponentSessionController
public String getSpaceId()
getSpaceId
in interface ComponentSessionController
public String getComponentName()
ComponentSessionController
getComponentName
in interface ComponentSessionController
public final String getComponentLabel()
getComponentLabel
in interface ComponentSessionController
public final String getComponentId()
getComponentId
in interface ComponentSessionController
public final String getComponentUrl()
getComponentUrl
in interface ComponentSessionController
public final String getComponentRootName()
protected final void setComponentRootName(String newRootName)
newRootName
- the new root component.public List<Parameter> getComponentParameters()
getComponentParameters
in interface ComponentSessionController
public String getComponentParameterValue(String parameterName)
getComponentParameterValue
in interface ComponentSessionController
parameterName
- the name of the parameter to get.
public String getComponentParameterValue(ComponentInstanceParameterName parameterName)
getComponentParameterValue
in interface ComponentSessionController
parameterName
- the name (centralized) of the parameter to get.
public String[] getUserAvailComponentIds()
getUserAvailComponentIds
in interface ComponentSessionController
public String[] getUserAvailSpaceIds()
getUserAvailSpaceIds
in interface ComponentSessionController
public String[] getUserManageableSpaceIds()
public List<String> getUserManageableGroupIds()
public boolean isGroupManager()
@Deprecated public String[] getUserRoles()
getUserRoles
in interface ComponentSessionController
@Deprecated public String getUserRoleLevel()
getUserRoleLevel
in interface ComponentSessionController
public Collection<SilverpeasRole> getSilverpeasUserRoles()
ComponentSessionController
getSilverpeasUserRoles
in interface ComponentSessionController
public SilverpeasRole getHighestSilverpeasUserRole()
ComponentSessionController
getHighestSilverpeasUserRole
in interface ComponentSessionController
public UserPreferences getPersonalization()
getPersonalization
in interface ComponentSessionController
public 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 ComponentSessionController
public void setAppModeMaintenance(boolean mode)
setAppModeMaintenance
in interface ComponentSessionController
public boolean isSpaceInMaintenance(String spaceId)
isSpaceInMaintenance
in interface ComponentSessionController
public void setSpaceModeMaintenance(String spaceId, boolean mode)
setSpaceModeMaintenance
in interface ComponentSessionController
public 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 ComponentSessionController
ClipboardException
public String getClipboardErrorMessage() throws ClipboardException
getClipboardErrorMessage
in interface ComponentSessionController
ClipboardException
public Exception getClipboardExceptionError() throws ClipboardException
getClipboardExceptionError
in interface ComponentSessionController
ClipboardException
public Collection<ClipboardSelection> getClipboardObjects() throws ClipboardException
getClipboardObjects
in interface ComponentSessionController
ClipboardException
public void addClipboardSelection(ClipboardSelection selection) throws ClipboardException
addClipboardSelection
in interface ComponentSessionController
ClipboardException
public String getClipboardName()
getClipboardName
in interface ComponentSessionController
public Integer getClipboardCount() throws ClipboardException
getClipboardCount
in interface ComponentSessionController
ClipboardException
public void clipboardPasteDone() throws ClipboardException
clipboardPasteDone
in interface ComponentSessionController
ClipboardException
public void setClipboardSelectedElement(int index, boolean selected) throws ClipboardException
setClipboardSelectedElement
in interface ComponentSessionController
ClipboardException
public int getClipboardSize() throws ClipboardException
getClipboardSize
in interface ComponentSessionController
ClipboardException
public void removeClipboardElement(int index) throws ClipboardException
removeClipboardElement
in interface ComponentSessionController
ClipboardException
public void setClipboardError(String messageId, Exception ex) throws ClipboardException
setClipboardError
in interface ComponentSessionController
ClipboardException
protected ComponentAccessController getComponentAccessController()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |