Package org.silverpeas.web.pdc.control
Class PdcSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.web.pdc.control.PdcSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class PdcSessionController 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 PdcSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext, String multilangBundle, String iconBundle)
Constructor declaration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
createAxis(AxisHeader axisHeader)
int
createDaughterValue(Value value)
void
deleteAxis(String axisId)
String
deleteValue(String valueId)
void
deleteValueAndSubtree(String valueId)
void
eraseManagers()
delete permissions on current valueList<AxisHeader>
getAxis()
Axis
getAxisDetail(String axisId)
List<String>
getAxisManageables()
Value
getAxisValue(String valueId)
Value
getAxisValue(String valueId, boolean setAsCurrentValue)
ArrayList<String>
getComponentList()
Axis
getCurrentAxis()
String
getCurrentLanguage()
Value
getCurrentValue()
String
getCurrentView()
List
getFullPath(String valueId)
Returns the full path of the valueList
getInheritedManagers(Value value)
get the inherited managers of the specified valueList
getManagers()
get the managers for the current valueList
getManagers(String axisId, String valueId)
get the managers of the specified valueint
getNbMaxAxis()
List<AxisHeader>
getPrimaryAxis()
List<String>
getRights()
retourne un tableau des valeurs où l'utilisateur courant possède des droitsList<AxisHeader>
getSecondaryAxis()
Value
getValue(String axisId, String valueId)
String
getValuesToPdcAddAPosteriori()
List<Group>
groupIds2Groups(List<String> groupIds)
String
initUserPanelForPdcManager()
Initialise le UserPanel avec les permissions déjà existantes pour la valeur couranteint
insertMotherValue(Value value)
boolean
isAxisManager()
boolean
isAxisManager(String axisId)
boolean
isCreationAllowed()
boolean
isInheritedManager()
boolean
isManager(String axisId, String valueId)
boolean
isPDCAdmin()
boolean
isValueManager()
boolean
isValueManager(String axisId, String valueId)
int
moveCurrentValueToNewFatherId(String newFatherId, int orderNumber)
void
resetCurrentValue()
void
setCurrentLanguage(String language)
void
setCurrentView(String view)
void
setManagers(List userIds, List groupIds)
update permissions on current valuevoid
setValuesToPdcAddAPosteriori(String values)
int
updateAxis(AxisHeader axisHeader)
void
updateManager()
récupère le résultat du UserPanelint
updateValue(Value value)
List<UserDetail>
userIds2Users(List<String> userIds)
-
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
-
PdcSessionController
public PdcSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext, String multilangBundle, String iconBundle)
Constructor declaration- Parameters:
mainSessionCtrl
-componentContext
-
-
-
Method Detail
-
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)
-
-