Interface SpaceApplicationHandler
-
- All Superinterfaces:
org.exoplatform.container.component.ComponentPlugin
public interface SpaceApplicationHandler extends org.exoplatform.container.component.ComponentPluginHandler for working with space applications: install, activate, deactivate, uninstall...- Since:
- Oct 17, 2008
- Author:
- dang.tung, hoatle (hoatlevan at gmail dot com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidactivateApplication(Space space, String appId, String appName)Activates an installed application in a space.voiddeactiveApplication(Space space, String appId)Deactivates an installed application in a space.voiddeInitApp(Space space)De-initializes a space application.StringgetName()Gets name.voidinitApps(Space space, SpaceTemplate spaceTemplate)Initializes home space applications and space applications.voidinstallApplication(Space space, String appId)Installs an application to a space.default voidmoveApplication(Space space, String appId, int transition)voidremoveApplication(Space space, String appId, String appName)Removes an application in a space.voidremoveApplications(Space space)Remove all applications in a space.
-
-
-
Method Detail
-
initApps
void initApps(Space space, SpaceTemplate spaceTemplate) throws SpaceException
Initializes home space applications and space applications.- Parameters:
space-spaceTemplate-- Throws:
SpaceException- Since:
- 1.2.0-GA
-
deInitApp
void deInitApp(Space space) throws SpaceException
De-initializes a space application.- Parameters:
space-- Throws:
SpaceException
-
installApplication
void installApplication(Space space, String appId) throws SpaceException
Installs an application to a space.- Parameters:
space-appId-- Throws:
SpaceException
-
activateApplication
void activateApplication(Space space, String appId, String appName) throws SpaceException
Activates an installed application in a space.- Parameters:
space-appId-- Throws:
SpaceException
-
deactiveApplication
void deactiveApplication(Space space, String appId) throws SpaceException
Deactivates an installed application in a space.- Parameters:
space-appId-- Throws:
SpaceException
-
removeApplication
void removeApplication(Space space, String appId, String appName) throws SpaceException
Removes an application in a space.- Parameters:
space-appId-- Throws:
SpaceException
-
removeApplications
void removeApplications(Space space) throws SpaceException
Remove all applications in a space.- Parameters:
space-- Throws:
SpaceException
-
getName
String getName()
Gets name.- Specified by:
getNamein interfaceorg.exoplatform.container.component.ComponentPlugin- Returns:
-
moveApplication
default void moveApplication(Space space, String appId, int transition) throws Exception
- Parameters:
space- Space to change its locationappId- application identifiertransition- positive number to move up and negative number to move down- Throws:
Exception- when error saving moved node
-
-