com.stratelia.silverpeas.pdcPeas.control
Class PdcSessionController

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.stratelia.silverpeas.pdcPeas.control.PdcSessionController
All Implemented Interfaces:
ComponentSessionController

public class PdcSessionController
extends AbstractComponentSessionController


Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
PdcSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext, String multilangBundle, String iconBundle)
          Constructor declaration
 
Method Summary
 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 value
 List<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 value
 List getInheritedManagers(Value value)
          get the inherited managers of the specified value
 List getManagers()
          get the managers for the current value
 List getManagers(String axisId, String valueId)
          get the managers of the specified value
 int getNbMaxAxis()
           
 List<AxisHeader> getPrimaryAxis()
           
 List<String> getRights()
          retourne un tableau des valeurs où l'utilisateur courant possède des droits
 List<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 courante
 int 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 value
 void setValuesToPdcAddAPosteriori(String values)
           
 int updateAxis(AxisHeader axisHeader)
           
 void updateManager()
          récupère le résultat du UserPanel
 int updateValue(Value value)
           
 List<UserDetail> userIds2Users(List<String> userIds)
           
 
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdcSessionController

public PdcSessionController(MainSessionController mainSessionCtrl,
                            ComponentContext componentContext,
                            String multilangBundle,
                            String iconBundle)
Constructor declaration

Parameters:
mainSessionCtrl -
componentContext -
See Also:
Method Detail

getComponentList

public ArrayList<String> getComponentList()

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

Parameters:
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

Parameters:
Value -
Returns:
ArrayList ( ArrayList UserDetail, ArrayList Group )
Throws:
PdcException - , SQLException
SQLException

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 - , SQLException
SQLException

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:
ArrayList - usersId
ArrayList - groupsId
Throws:
PdcException
SQLException

eraseManagers

public void eraseManagers()
                   throws PdcException,
                          SQLException
delete permissions on current value

Throws:
PdcException
SQLException

groupIds2Groups

public List<Group> groupIds2Groups(List<String> groupIds)

userIds2Users

public List<UserDetail> userIds2Users(List<String> userIds)


Copyright © 2016 Silverpeas. All Rights Reserved.