Class JobStartPagePeasSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.core.web.mvc.controller.AbstractAdminComponentSessionController
-
- org.silverpeas.web.jobstartpage.control.JobStartPagePeasSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class JobStartPagePeasSessionController extends AbstractAdminComponentSessionController
Class declaration- Author:
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAINTENANCE_OFF
static int
MAINTENANCE_ONEPARENT
static int
MAINTENANCE_PLATFORM
static int
MAINTENANCE_THISSPACE
static int
SCOPE_BACKOFFICE
static int
SCOPE_FRONTOFFICE
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description JobStartPagePeasSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
JobStartPagePeasSessionController(MainSessionController controller, ComponentContext context, String localizedMessagesBundleName, String iconFileName, String settingsFileName)
Dedicated for tests
-
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, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setClipboardSelectedElement, setComponentRootName
-
-
-
-
Field Detail
-
SCOPE_BACKOFFICE
public static final int SCOPE_BACKOFFICE
- See Also:
- Constant Field Values
-
SCOPE_FRONTOFFICE
public static final int SCOPE_FRONTOFFICE
- See Also:
- Constant Field Values
-
MAINTENANCE_OFF
public static final int MAINTENANCE_OFF
- See Also:
- Constant Field Values
-
MAINTENANCE_PLATFORM
public static final int MAINTENANCE_PLATFORM
- See Also:
- Constant Field Values
-
MAINTENANCE_ONEPARENT
public static final int MAINTENANCE_ONEPARENT
- See Also:
- Constant Field Values
-
MAINTENANCE_THISSPACE
public static final int MAINTENANCE_THISSPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JobStartPagePeasSessionController
public JobStartPagePeasSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
-
JobStartPagePeasSessionController
public JobStartPagePeasSessionController(MainSessionController controller, ComponentContext context, String localizedMessagesBundleName, String iconFileName, String settingsFileName)
Dedicated for tests
-
-
Method Detail
-
init
public void init(boolean force)
-
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.
-
getSpaceInstById
public SpaceInst getSpaceInstById()
-
setManagedSpaceId
public void setManagedSpaceId(String sId, boolean isManagedSpaceRoot)
-
getManagedSpaceId
public String getManagedSpaceId()
-
getManagedSpace
public DisplaySorted getManagedSpace()
-
getManagedSpace
public DisplaySorted getManagedSpace(String spaceId)
-
isManagedSpaceRoot
public boolean isManagedSpaceRoot()
-
getManagedSpaceComponents
public DisplaySorted[] getManagedSpaceComponents()
-
setSubSpaceId
public void setSubSpaceId(String subSpaceId)
-
setSpaceId
public void setSpaceId(String spaceUserId)
-
getSpaceId
public String getSpaceId()
Description copied from class:AbstractComponentSessionController
Gets the unique identifier of the current selected workspace.- Specified by:
getSpaceId
in interfaceComponentSessionController
- Overrides:
getSpaceId
in classAbstractComponentSessionController
- Returns:
- the space identifier.
-
getSpaces
public Collection<DisplaySorted> getSpaces()
-
getSpaceComponents
public Collection<DisplaySorted> getSpaceComponents()
-
getSubSpaceId
public String getSubSpaceId()
-
getSubSpaces
public Collection<DisplaySorted> getSubSpaces()
-
getSubSpaceComponents
public Collection<DisplaySorted> getSubSpaceComponents()
-
setSpaceMaintenance
public void setSpaceMaintenance(String spaceId, boolean mode)
-
refreshCurrentSpaceCache
public void refreshCurrentSpaceCache()
-
setManagedInstanceId
public void setManagedInstanceId(String sId)
-
setManagedInstanceId
public void setManagedInstanceId(String sId, int scope)
-
getManagedInstanceId
public String getManagedInstanceId()
-
setManagedProfile
public void setManagedProfile(ProfileInst sProfile)
-
getManagedProfile
public ProfileInst getManagedProfile()
-
getManagedInheritedProfile
public ProfileInst getManagedInheritedProfile()
-
isProfileEditable
public Boolean isProfileEditable()
-
isBackupEnable
public Boolean isBackupEnable()
-
getConfigSpacePosition
public String getConfigSpacePosition()
-
getBrotherSpaces
public SpaceInst[] getBrotherSpaces(boolean isNew)
- Parameters:
isNew
-- Returns:
-
setSpacePlace
public void setSpacePlace(String idSpaceBefore)
-
getSpaceLookHelper
public SpaceLookHelper getSpaceLookHelper()
-
removeExternalElementOfSpaceAppearance
public boolean removeExternalElementOfSpaceAppearance(String fileName)
-
updateSpaceAppearance
public void updateSpaceAppearance(List<org.apache.commons.fileupload.FileItem> items) throws Exception
- Throws:
Exception
-
saveSpaceQuota
public void saveSpaceQuota(SpaceInst spaceInst, String componentSpaceQuotaMaxCount, String dataStorageQuotaMaxCount)
-
recoverSpaceRights
public void recoverSpaceRights(String spaceId) throws AdminException
- Throws:
AdminException
-
getCurrentSpaceProfile
public SpaceProfile getCurrentSpaceProfile(String role) throws AdminException
********************* Gestion des managers d'espaces ****************************************- Throws:
AdminException
-
initUserPanelSpaceForGroupsUsers
public void initUserPanelSpaceForGroupsUsers(String compoURL, List<String> userIds, List<String> groupIds) throws SelectionException
- Throws:
SelectionException
-
updateSpaceRole
public void updateSpaceRole(String role, List<String> userIds, List<String> groupIds)
-
getRemovedSpaces
public List<SpaceInstLight> getRemovedSpaces()
********************* Gestion de la corbeille ****************************************
-
getRemovedComponents
public List<ComponentInstLight> getRemovedComponents()
-
restoreSpaceFromBin
public void restoreSpaceFromBin(String spaceId)
-
deleteSpaceInBin
public void deleteSpaceInBin(String spaceId)
-
restoreComponentFromBin
public void restoreComponentFromBin(String componentId)
-
deleteComponentInBin
public void deleteComponentInBin(String componentId)
-
getBrotherComponents
public ComponentInst[] getBrotherComponents(boolean isNew)
********************* Gestion des composants ****************************************
-
setComponentPlace
public void setComponentPlace(String idComponentBefore)
-
getAllLocalizedComponents
public List<LocalizedWAComponent> getAllLocalizedComponents()
-
getComponentByName
public WAComponent getComponentByName(String name)
-
getParameters
public AllComponentParameters getParameters(WAComponent component, boolean creation)
-
addComponentInst
public String addComponentInst(ComponentInst componentInst) throws QuotaException
- Throws:
QuotaException
-
getComponentInst
public ComponentInst getComponentInst(String sInstanceId)
-
updateComponentInst
public String updateComponentInst(ComponentInst componentInst)
-
getAllProfiles
public List<ProfileInst> getAllProfiles(ComponentInst m_FatherComponentInst)
-
getProfile
public ProfileInst getProfile(String sProfileId, String sProfileName, String sProfileLabel)
-
getAllCurrentUserInstance
public List<UserDetail> getAllCurrentUserInstance()
-
userIds2users
public List<UserDetail> userIds2users(List<String> userIds)
-
initUserPanelInstanceForGroupsUsers
public void initUserPanelInstanceForGroupsUsers(String compoURL, List<String> userIds, List<String> groupIds)
-
copyComponent
public void copyComponent(String id) throws ClipboardException
Copy component- Parameters:
id
-- Throws:
RemoteException
ClipboardException
-
cutComponent
public void cutComponent(String id) throws ClipboardException
- Throws:
ClipboardException
-
copySpace
public void copySpace(String id) throws ClipboardException
- Throws:
ClipboardException
-
cutSpace
public void cutSpace(String id) throws ClipboardException
- Throws:
ClipboardException
-
paste
public void paste(Map<String,String> options) throws ClipboardException, JobStartPagePeasException
Paste component(s) copied
-
getCopiedComponents
public Set<String> getCopiedComponents() throws JobStartPagePeasException
Get names of all copied components directly or indirectly (case of a space)- Returns:
- a Set of component names
- Throws:
JobStartPagePeasException
-
moveSpace
public void moveSpace(String spaceId, String targetSpaceId) throws AdminException
- Throws:
AdminException
-
getCurrentSpaceMaintenanceState
public int getCurrentSpaceMaintenanceState()
-
setScope
public void setScope(int scope)
-
getScope
public int getScope()
-
getSilverpeasTemplate
public SilverpeasTemplate getSilverpeasTemplate()
Return the silverpeas template linked to JobStartPage module- Returns:
- a SilverpeasTemplate
-
-