com.silverpeas.jobOrganizationPeas.control
Class JobOrganizationPeasSessionController

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

public class JobOrganizationPeasSessionController
extends AbstractComponentSessionController

Class declaration

Author:
Thierry Leroi

Field Summary
static String ADD_RIGHTS
           
static String REPLACE_RIGHTS
           
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
JobOrganizationPeasSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
          Standard Session Controller Constructeur
 
Method Summary
 void assignRights(String choiceAssignRights, String sourceRightsId, String sourceRightsType, boolean nodeAssignRights)
           
 void backSelectionUserOrGroup()
           
 AdminController getAdminController()
           
 Group getCurrentGroup()
           
 String getCurrentGroupId()
           
 List<String[]> getCurrentProfiles()
           
 String[] getCurrentSpaces()
           
 String getCurrentSuperGroupName()
           
 UserFull getCurrentUser()
           
 String[][] getCurrentUserGroups()
           
 String getCurrentUserId()
           
 String initSelectionRightsUserOrGroup()
           
 String initSelectionUserOrGroup()
           
 boolean isRightCopyReplaceActivated()
           
 void resetCurrentGroup()
           
 void setCurrentGroupId(String groupId)
           
 void setCurrentUserId(String userId)
           
 
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
 

Field Detail

REPLACE_RIGHTS

public static final String REPLACE_RIGHTS
See Also:
Constant Field Values

ADD_RIGHTS

public static final String ADD_RIGHTS
See Also:
Constant Field Values
Constructor Detail

JobOrganizationPeasSessionController

public JobOrganizationPeasSessionController(MainSessionController mainSessionCtrl,
                                            ComponentContext componentContext)
Standard Session Controller Constructeur

Parameters:
mainSessionCtrl - The user's profile
componentContext - The component's profile
See Also:
Method Detail

isRightCopyReplaceActivated

public boolean isRightCopyReplaceActivated()

getAdminController

public AdminController getAdminController()

setCurrentUserId

public void setCurrentUserId(String userId)

setCurrentGroupId

public void setCurrentGroupId(String groupId)

resetCurrentGroup

public void resetCurrentGroup()

getCurrentUserId

public String getCurrentUserId()

getCurrentGroupId

public String getCurrentGroupId()

getCurrentUserGroups

public String[][] getCurrentUserGroups()
Returns:
an array of (id, name, number of users, description).

getCurrentUser

public UserFull getCurrentUser()
Returns:
UserFull

getCurrentGroup

public Group getCurrentGroup()
Returns:
Group

getCurrentSuperGroupName

public String getCurrentSuperGroupName()
Returns:
String

getCurrentSpaces

public String[] getCurrentSpaces()
Returns:
array of space names (manageable by the current group or user)

getCurrentProfiles

public List<String[]> getCurrentProfiles()
Returns:
list of (array[space name, component id, component label, component name, profile name])

initSelectionUserOrGroup

public String initSelectionUserOrGroup()

backSelectionUserOrGroup

public void backSelectionUserOrGroup()

initSelectionRightsUserOrGroup

public String initSelectionRightsUserOrGroup()

assignRights

public void assignRights(String choiceAssignRights,
                         String sourceRightsId,
                         String sourceRightsType,
                         boolean nodeAssignRights)
                  throws JobOrganizationPeasException
Throws:
JobOrganizationPeasException


Copyright © 2016 Silverpeas. All Rights Reserved.