com.silverpeas.jobStartPagePeas.control
Class JobStartPagePeasSessionController
java.lang.Object
com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
com.silverpeas.jobStartPagePeas.control.JobStartPagePeasSessionController
- All Implemented Interfaces:
- ComponentSessionController
public class JobStartPagePeasSessionController
- extends AbstractComponentSessionController
Class declaration
- Author:
Method Summary |
String |
addComponentInst(ComponentInst componentInst)
|
String |
addSpaceInst(SpaceInst spaceInst,
String templateName)
|
void |
copyComponent(String id)
Copy component |
void |
copySpace(String id)
|
String |
createSpace()
|
void |
cutComponent(String id)
|
void |
cutSpace(String id)
|
void |
deleteComponentInBin(String componentId)
|
String |
deleteComponentInst(String sInstanceId)
|
String |
deleteSpace(String spaceId)
|
void |
deleteSpaceInBin(String spaceId)
|
WAComponent[] |
getAllComponents()
|
List<Group> |
getAllCurrentGroupInstance()
|
List<Group> |
getAllCurrentGroupSpace(String role)
|
List<UserDetail> |
getAllCurrentUserInstance()
|
List<UserDetail> |
getAllCurrentUserSpace(String role)
|
List<LocalizedComponent> |
getAllLocalizedComponents()
|
List<ProfileInst> |
getAllProfiles(ComponentInst m_FatherComponentInst)
|
Map<String,SpaceTemplate> |
getAllSpaceTemplates()
|
ComponentInst[] |
getBrotherComponents(boolean isNew)
********************* Gestion des composants **************************************** |
SpaceInst[] |
getBrotherSpaces(boolean isNew)
|
WAComponent |
getComponentByName(String name)
|
ComponentInst |
getComponentInst(String sInstanceId)
|
ComponentInst[] |
getComponentsOfSpace(String spaceId)
|
String |
getConfigSpacePosition()
|
Set<String> |
getCopiedComponents()
Get names of all copied components directly or indirectly (case of a space) |
int |
getCurrentSpaceMaintenanceState()
|
ComponentInst[] |
getDestBrotherComponents(String spaceId,
boolean isNew,
String componentId)
|
List<Group> |
getGroupsManagerOfParentSpace()
|
ProfileInst |
getManagedInheritedProfile()
|
String |
getManagedInstanceId()
|
ProfileInst |
getManagedProfile()
|
String |
getManagedProfileHelp(String componentName)
|
DisplaySorted |
getManagedSpace()
|
DisplaySorted[] |
getManagedSpaceComponents()
|
String |
getManagedSpaceId()
|
AllComponentParameters |
getParameters(String componentName)
|
AllComponentParameters |
getParameters(WAComponent component,
boolean creation)
|
ProfileInst |
getProfile(String sProfileId,
String sProfileName,
String sProfileLabel)
|
List<ComponentInstLight> |
getRemovedComponents()
|
List<SpaceInstLight> |
getRemovedSpaces()
********************* Gestion de la corbeille **************************************** |
int |
getScope()
|
SilverpeasTemplate |
getSilverpeasTemplate()
Return the silverpeas template linked to JobStartPage module |
DisplaySorted[] |
getSpaceComponents()
|
String |
getSpaceId()
Gets the unique identifier of the current selected workspace. |
SpaceInst |
getSpaceInstById()
|
SpaceInst |
getSpaceInstById(String idSpace)
|
SpaceInst |
getSpaceInstFromTemplate(String templateName)
|
SpaceLookHelper |
getSpaceLookHelper()
|
String |
getSpaceProfileName(SpaceInst spaceint1)
********************* Gestion des managers d'espaces **************************************** |
DisplaySorted[] |
getSpaces()
|
DisplaySorted[] |
getSubSpaceComponents()
|
String |
getSubSpaceId()
|
DisplaySorted[] |
getSubSpaces()
|
SpaceInst[] |
getUserManageableSpacesIds()
|
List<UserDetail> |
getUsersManagerOfParentSpace()
|
List<Group> |
groupIds2groups(List<String> groupIds)
|
void |
init()
|
void |
initializeComponentSpaceQuota(SpaceInst space)
Initializing component space quota |
void |
initializeDataStorageQuota(SpaceInst space)
Initializing data storage quota |
void |
initUserPanelInstanceForGroupsUsers(String compoURL,
List<String> userIds,
List<String> groupIds)
|
void |
initUserPanelSpaceForGroupsUsers(String compoURL,
String role,
List<String> userIds,
List<String> groupIds)
|
Boolean |
isBackupEnable()
|
boolean |
isComponentManageable(String componentId)
|
boolean |
isInheritanceEnable()
|
boolean |
isJSR168Used()
|
boolean |
isManagedSpaceRoot()
|
Boolean |
isProfileEditable()
|
boolean |
isUserAdmin()
|
void |
moveSpace(String spaceId,
String targetSpaceId)
|
void |
paste(Map<String,String> options)
Paste component(s) copied |
void |
recoverSpaceRights(String spaceId)
|
void |
refreshCurrentSpaceCache()
|
boolean |
removeExternalElementOfSpaceAppearance(String fileName)
|
void |
restoreComponentFromBin(String componentId)
|
void |
restoreSpaceFromBin(String spaceId)
|
void |
setComponentPlace(String idComponentBefore)
|
void |
setCreateSpaceParameters(String name,
String desc,
String ssEspace,
String spaceTemplate,
String language,
String look,
String componentSpaceQuotaMaxCount,
String dataStorageQuotaMaxCount)
|
void |
setManagedInstanceId(String sId)
|
void |
setManagedInstanceId(String sId,
int scope)
|
void |
setManagedProfile(ProfileInst sProfile)
|
void |
setManagedSpaceId(String sId,
boolean isManagedSpaceRoot)
|
void |
setMoveComponentToSpace(ComponentInst component,
String destinationSpaceId,
String idComponentBefore)
|
void |
setScope(int scope)
|
void |
setSpaceId(String spaceUserId)
|
void |
setSpaceMaintenance(String spaceId,
boolean mode)
|
void |
setSpacePlace(String idSpaceBefore)
|
void |
setSubSpaceId(String subSpaceId)
|
String |
updateComponentInst(ComponentInst componentInst)
|
void |
updateInstanceProfile(String[] userIds,
String[] groupIds)
|
void |
updateProfileInstanceDescription(String name,
String desc)
|
void |
updateSpaceAppearance(List<org.apache.commons.fileupload.FileItem> items)
|
String |
updateSpaceInst(SpaceInst spaceInst)
|
void |
updateSpaceManagersDescription(SpaceProfileInst spaceProfileInst)
|
void |
updateSpaceRole(String role,
List<String> userIds,
List<String> groupIds)
|
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, 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 |
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
JobStartPagePeasSessionController
public JobStartPagePeasSessionController(MainSessionController mainSessionCtrl,
ComponentContext componentContext)
init
public void init()
isInheritanceEnable
public boolean isInheritanceEnable()
isJSR168Used
public boolean isJSR168Used()
isUserAdmin
public boolean isUserAdmin()
getSpaceInstById
public SpaceInst getSpaceInstById()
setManagedSpaceId
public void setManagedSpaceId(String sId,
boolean isManagedSpaceRoot)
getManagedSpaceId
public String getManagedSpaceId()
getManagedSpace
public DisplaySorted getManagedSpace()
isManagedSpaceRoot
public boolean isManagedSpaceRoot()
getManagedSpaceComponents
public DisplaySorted[] getManagedSpaceComponents()
setSubSpaceId
public void setSubSpaceId(String subSpaceId)
setSpaceId
public void setSpaceId(String spaceUserId)
getSpaceInstFromTemplate
public SpaceInst getSpaceInstFromTemplate(String templateName)
getAllSpaceTemplates
public Map<String,SpaceTemplate> getAllSpaceTemplates()
getSpaceId
public String getSpaceId()
- Description copied from class:
AbstractComponentSessionController
- Gets the unique identifier of the current selected workspace.
- Specified by:
getSpaceId
in interface ComponentSessionController
- Overrides:
getSpaceId
in class AbstractComponentSessionController
- Returns:
- the space identifier.
getSpaces
public DisplaySorted[] getSpaces()
getSpaceComponents
public DisplaySorted[] getSpaceComponents()
getSubSpaceId
public String getSubSpaceId()
getSubSpaces
public DisplaySorted[] getSubSpaces()
getSubSpaceComponents
public 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()
isComponentManageable
public boolean isComponentManageable(String componentId)
setManagedProfile
public void setManagedProfile(ProfileInst sProfile)
getManagedProfile
public ProfileInst getManagedProfile()
getManagedProfileHelp
public String getManagedProfileHelp(String componentName)
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:
getUserManageableSpacesIds
public SpaceInst[] getUserManageableSpacesIds()
setSpacePlace
public void setSpacePlace(String idSpaceBefore)
getSpaceInstById
public SpaceInst getSpaceInstById(String idSpace)
setCreateSpaceParameters
public void setCreateSpaceParameters(String name,
String desc,
String ssEspace,
String spaceTemplate,
String language,
String look,
String componentSpaceQuotaMaxCount,
String dataStorageQuotaMaxCount)
createSpace
public String createSpace()
addSpaceInst
public String addSpaceInst(SpaceInst spaceInst,
String templateName)
updateSpaceInst
public String updateSpaceInst(SpaceInst spaceInst)
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
initializeComponentSpaceQuota
public void initializeComponentSpaceQuota(SpaceInst space)
- Initializing component space quota
- Parameters:
space
-
initializeDataStorageQuota
public void initializeDataStorageQuota(SpaceInst space)
- Initializing data storage quota
- Parameters:
space
-
deleteSpace
public String deleteSpace(String spaceId)
recoverSpaceRights
public void recoverSpaceRights(String spaceId)
throws AdminException
- Throws:
AdminException
getSpaceProfileName
public String getSpaceProfileName(SpaceInst spaceint1)
- ********************* Gestion des managers d'espaces ****************************************
getAllCurrentGroupSpace
public List<Group> getAllCurrentGroupSpace(String role)
getAllCurrentUserSpace
public List<UserDetail> getAllCurrentUserSpace(String role)
getUsersManagerOfParentSpace
public List<UserDetail> getUsersManagerOfParentSpace()
getGroupsManagerOfParentSpace
public List<Group> getGroupsManagerOfParentSpace()
initUserPanelSpaceForGroupsUsers
public void initUserPanelSpaceForGroupsUsers(String compoURL,
String role,
List<String> userIds,
List<String> groupIds)
throws SelectionException
- Throws:
SelectionException
updateSpaceRole
public void updateSpaceRole(String role,
List<String> userIds,
List<String> groupIds)
updateSpaceManagersDescription
public void updateSpaceManagersDescription(SpaceProfileInst spaceProfileInst)
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 ****************************************
getComponentsOfSpace
public ComponentInst[] getComponentsOfSpace(String spaceId)
setComponentPlace
public void setComponentPlace(String idComponentBefore)
setMoveComponentToSpace
public void setMoveComponentToSpace(ComponentInst component,
String destinationSpaceId,
String idComponentBefore)
throws AdminException
- Throws:
AdminException
getDestBrotherComponents
public ComponentInst[] getDestBrotherComponents(String spaceId,
boolean isNew,
String componentId)
getAllComponents
public WAComponent[] getAllComponents()
getAllLocalizedComponents
public List<LocalizedComponent> getAllLocalizedComponents()
getComponentByName
public WAComponent getComponentByName(String name)
getParameters
public AllComponentParameters getParameters(String componentName)
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)
deleteComponentInst
public String deleteComponentInst(String sInstanceId)
getAllProfiles
public List<ProfileInst> getAllProfiles(ComponentInst m_FatherComponentInst)
getProfile
public ProfileInst getProfile(String sProfileId,
String sProfileName,
String sProfileLabel)
getAllCurrentUserInstance
public List<UserDetail> getAllCurrentUserInstance()
getAllCurrentGroupInstance
public List<Group> getAllCurrentGroupInstance()
groupIds2groups
public List<Group> groupIds2groups(List<String> groupIds)
userIds2users
public List<UserDetail> userIds2users(List<String> userIds)
initUserPanelInstanceForGroupsUsers
public void initUserPanelInstanceForGroupsUsers(String compoURL,
List<String> userIds,
List<String> groupIds)
updateInstanceProfile
public void updateInstanceProfile(String[] userIds,
String[] groupIds)
updateProfileInstanceDescription
public void updateProfileInstanceDescription(String name,
String desc)
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
- Throws:
ClipboardException
JobStartPagePeasException
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
Copyright © 2016 Silverpeas. All Rights Reserved.