Class DelegatedNewsSessionController
java.lang.Object
org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
org.silverpeas.components.delegatednews.control.DelegatedNewsSessionController
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.mvc.controller.ComponentSessionController,org.silverpeas.core.web.session.SessionCloseable
public class DelegatedNewsSessionController
extends org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
- See Also:
-
Field Summary
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context -
Constructor Summary
ConstructorsConstructorDescriptionDelegatedNewsSessionController(org.silverpeas.core.web.mvc.controller.MainSessionController mainSessionCtrl, org.silverpeas.core.web.mvc.controller.ComponentContext componentContext) Standard Session Controller Constructeur -
Method Summary
Modifier and TypeMethodDescriptionRécupère toutes les actualités déléguées inter Theme Tracker dont l'utilisateur courant a des droitsgetListDelegatedNewsJSON(List<DelegatedNews> listDelegatedNews) Converts the list of Delegated News into its JSON representation.booleanisAdmin()booleanisUser()voidrefuseDelegatedNews(String pubId, String refuseReasonText) Refuse delegated news identified by pubIdvoidupdateDateDelegatedNews(String pubId, Date beginDate, Date endDate) Met à jour les dates de visibilité de l'actualité déléguée passée en paramètrevoidvalidateDelegatedNews(String pubId) Validate delegated news identified by pubIdMethods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardSelectedElement, setComponentRootName, setSpaceModeMaintenance
-
Constructor Details
-
DelegatedNewsSessionController
public DelegatedNewsSessionController(org.silverpeas.core.web.mvc.controller.MainSessionController mainSessionCtrl, org.silverpeas.core.web.mvc.controller.ComponentContext componentContext) Standard Session Controller Constructeur- Parameters:
mainSessionCtrl- The user's profilecomponentContext- The component's profile
-
-
Method Details
-
isUser
public boolean isUser() -
isAdmin
public boolean isAdmin() -
getAllAvailDelegatedNews
Récupère toutes les actualités déléguées inter Theme Tracker dont l'utilisateur courant a des droits- Returns:
- a
List<DelegatedNews>: liste d'actualités déléguées
-
validateDelegatedNews
Validate delegated news identified by pubId- Parameters:
pubId- the delegated news identifier to validate
-
refuseDelegatedNews
Refuse delegated news identified by pubId- Parameters:
pubId- the delegated news identifier to refuserefuseReasonText- the reason why delegated news has been refused
-
updateDateDelegatedNews
Met à jour les dates de visibilité de l'actualité déléguée passée en paramètre -
getListDelegatedNewsJSON
Converts the list of Delegated News into its JSON representation.- Returns:
- a JSON representation of the list of Delegated News (as string)
- Throws:
DelegatedNewsRuntimeException- if an error occurs
-