Class PdcSubscriptionSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.web.pdcsubscription.control.PdcSubscriptionSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class PdcSubscriptionSessionController extends AbstractComponentSessionController
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description PdcSubscriptionSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Constructor Creates new PdcSubscription Session Controller
-
Method Summary
-
Methods 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 Detail
-
PdcSubscriptionSessionController
public PdcSubscriptionSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Constructor Creates new PdcSubscription Session Controller
-
-
Method Detail
-
getSubscriptionResourceTypeLabel
public String getSubscriptionResourceTypeLabel(SubscriptionResourceType type)
-
getSubscriptionCategories
public List<SubscriptionCategory> getSubscriptionCategories()
-
getSubscriptionCategory
public SubscriptionCategory getSubscriptionCategory(String categoryId)
Gets the Subscription category from its identifier.- Parameters:
categoryId
- the identifier of a subscription category.- Returns:
- a
SubscriptionCategory
instance.
-
getUserSubscriptionsOfCategory
public List<AbstractSubscriptionBean> getUserSubscriptionsOfCategory(String userId, SubscriptionCategory category)
-
deleteUserSubscriptions
public void deleteUserSubscriptions(String[] selectedItems)
-
getUserPDCSubscription
public List<PdcSubscription> getUserPDCSubscription()
-
getUserPDCSubscription
public List<PdcSubscription> getUserPDCSubscription(int userId)
-
getPDCSubsriptionById
public PdcSubscription getPDCSubsriptionById(int id)
-
createPDCSubscription
public void createPDCSubscription(PdcSubscription subscription)
-
updatePDCSubscription
public void updatePDCSubscription(PdcSubscription subscription)
-
removePDCSubscriptionById
public void removePDCSubscriptionById(int id)
-
removeICByPK
public void removeICByPK(int[] ids)
-
getAxisHeader
public AxisHeader getAxisHeader(String axisId) throws PdcException
- Throws:
PdcException
-
getFullPath
public List<Value> getFullPath(String valueId, String treeId) throws PdcException
- Throws:
PdcException
-
getPathCriterias
public List<List<Value>> getPathCriterias(List<? extends Criteria> searchCriterias) throws PdcException
- Throws:
PdcException
-
getCurrentPdcSubscription
public PdcSubscription getCurrentPdcSubscription()
-
setCurrentPdcSubscription
public void setCurrentPdcSubscription(PdcSubscription currentPdcSubscription)
-
createPDCSubscription
public void createPDCSubscription(String name, List<? extends Criteria> criteria)
-
updateCurrentSubscription
public void updateCurrentSubscription(String name, List<? extends Criteria> criteria)
-
setAsCurrentPDCSubscription
public PdcSubscription setAsCurrentPDCSubscription(String subscriptionId)
-
-