Package org.silverpeas.web.pdc.control
Class PdcSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.core.web.mvc.controller.AbstractAdminComponentSessionController
-
- org.silverpeas.web.pdc.control.PdcSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class PdcSessionController extends AbstractAdminComponentSessionController
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description PdcSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext, String multilangBundle, String iconBundle)
Constructor declaration
-
Method Summary
-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractAdminComponentSessionController
checkAccessGranted, checkAccessGranted, checkAdminAccessOnly, isAccessGranted, isUserAdmin, setAppModeMaintenance, setSpaceModeMaintenance, throwForbiddenError
-
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, setClipboardSelectedElement, setComponentRootName
-
-
-
-
Constructor Detail
-
PdcSessionController
public PdcSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext, String multilangBundle, String iconBundle)
Constructor declaration- Parameters:
mainSessionCtrl
-componentContext
-
-
-
Method Detail
-
isAccessGranted
public boolean isAccessGranted()
Description copied from class:AbstractAdminComponentSessionController
Used mainly byAbstractAdminComponentSessionController.checkAccessGranted()
.Each implementation can precise or change this default implementation.
- Overrides:
isAccessGranted
in classAbstractAdminComponentSessionController
- Returns:
- true if access granted, false otherwise.
-
isPDCAdmin
public boolean isPDCAdmin()
-
setCurrentLanguage
public void setCurrentLanguage(String language)
-
getCurrentLanguage
public String getCurrentLanguage()
-
setCurrentView
public void setCurrentView(String view)
-
getCurrentView
public String getCurrentView()
-
getCurrentAxis
public Axis getCurrentAxis()
-
getCurrentValue
public Value getCurrentValue()
-
resetCurrentValue
public void resetCurrentValue()
-
getNbMaxAxis
public int getNbMaxAxis() throws PdcException
- Throws:
PdcException
-
getPrimaryAxis
public List<AxisHeader> getPrimaryAxis() throws PdcException
- Throws:
PdcException
-
getSecondaryAxis
public List<AxisHeader> getSecondaryAxis() throws PdcException
- Throws:
PdcException
-
getAxis
public List<AxisHeader> getAxis() throws PdcException
- Throws:
PdcException
-
isCreationAllowed
public boolean isCreationAllowed() throws PdcException
- Throws:
PdcException
-
createAxis
public int createAxis(AxisHeader axisHeader) throws PdcException
- Throws:
PdcException
-
updateAxis
public int updateAxis(AxisHeader axisHeader) throws PdcException
- Throws:
PdcException
-
deleteAxis
public void deleteAxis(String axisId) throws PdcException
- Throws:
PdcException
-
getAxisDetail
public Axis getAxisDetail(String axisId) throws PdcException
- Throws:
PdcException
-
getAxisValue
public Value getAxisValue(String valueId) throws PdcException
- Throws:
PdcException
-
getAxisValue
public Value getAxisValue(String valueId, boolean setAsCurrentValue) throws PdcException
- Throws:
PdcException
-
setValuesToPdcAddAPosteriori
public void setValuesToPdcAddAPosteriori(String values)
-
getValuesToPdcAddAPosteriori
public String getValuesToPdcAddAPosteriori()
-
insertMotherValue
public int insertMotherValue(Value value) throws PdcException
- Throws:
PdcException
-
moveCurrentValueToNewFatherId
public int moveCurrentValueToNewFatherId(String newFatherId, int orderNumber) throws PdcException
- Throws:
PdcException
-
createDaughterValue
public int createDaughterValue(Value value) throws PdcException
- Throws:
PdcException
-
updateValue
public int updateValue(Value value) throws PdcException
- Throws:
PdcException
-
deleteValueAndSubtree
public void deleteValueAndSubtree(String valueId) throws PdcException
- Throws:
PdcException
-
deleteValue
public String deleteValue(String valueId) throws PdcException
- Throws:
PdcException
-
getFullPath
public List getFullPath(String valueId) throws PdcException
Returns the full path of the value- Parameters:
valueId
- - the id of the selected value (valueId is not empty)- Returns:
- the complet path
- Throws:
PdcException
-
initUserPanelForPdcManager
public String initUserPanelForPdcManager() throws RemoteException, PdcException, SQLException
Initialise le UserPanel avec les permissions déjà existantes pour la valeur courante- Returns:
- l'URL du panel
- Throws:
RemoteException
PdcException
SQLException
-
updateManager
public void updateManager() throws PdcException, SQLException
récupère le résultat du UserPanel- Throws:
PdcException
SQLException
-
getValue
public Value getValue(String axisId, String valueId) throws PdcException
- Throws:
PdcException
-
getManagers
public List getManagers() throws PdcException, SQLException
get the managers for the current value- Returns:
- ArrayList ( ArrayList UserDetail, ArrayList Group )
- Throws:
PdcException
SQLException
-
getManagers
public List getManagers(String axisId, String valueId) throws PdcException, SQLException
get the managers of the specified value- Returns:
- ArrayList ( ArrayList UserDetail, ArrayList Group )
- Throws:
PdcException
SQLException
-
getInheritedManagers
public List getInheritedManagers(Value value) throws PdcException, SQLException
get the inherited managers of the specified value- Returns:
- ArrayList ( ArrayList UserDetail, ArrayList Group )
- Throws:
PdcException
- , SQLExceptionSQLException
-
getRights
public List<String> getRights() throws PdcException, SQLException
retourne un tableau des valeurs où l'utilisateur courant possède des droits- Returns:
- ArrayList ( valueid )
- Throws:
PdcException
- , SQLExceptionSQLException
-
isValueManager
public boolean isValueManager() throws PdcException, SQLException
- Throws:
PdcException
SQLException
-
isAxisManager
public boolean isAxisManager() throws PdcException, SQLException
- Throws:
PdcException
SQLException
-
isAxisManager
public boolean isAxisManager(String axisId) throws PdcException, SQLException
- Throws:
PdcException
SQLException
-
isValueManager
public boolean isValueManager(String axisId, String valueId) throws PdcException, SQLException
- Throws:
PdcException
SQLException
-
isManager
public boolean isManager(String axisId, String valueId) throws PdcException, SQLException
- Throws:
PdcException
SQLException
-
isInheritedManager
public boolean isInheritedManager() throws PdcException, SQLException
- Throws:
PdcException
SQLException
-
getAxisManageables
public List<String> getAxisManageables() throws PdcException, SQLException
- Throws:
PdcException
SQLException
-
setManagers
public void setManagers(List userIds, List groupIds) throws PdcException, SQLException
update permissions on current value- Parameters:
userIds
-groupIds
-- Throws:
PdcException
SQLException
-
eraseManagers
public void eraseManagers() throws PdcException, SQLException
delete permissions on current value- Throws:
PdcException
SQLException
-
userIds2Users
public List<UserDetail> userIds2Users(List<String> userIds)
-
-