public class CloudDriveUIService extends Object implements org.picocontainer.Startable
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECT_CLOUD_DRIVE_ACTION
The Constant CONNECT_CLOUD_DRIVE_ACTION.
|
protected Set<String> |
defaultMenuActions
The default menu actions.
|
protected static String |
DMS_SYSTEM_WORKSPACE
The Constant DMS_SYSTEM_WORKSPACE.
|
protected org.exoplatform.clouddrive.CloudDriveService |
driveService
The drive service.
|
protected static String |
ECD_BUTTONS
The Constant ECD_BUTTONS.
|
protected static String |
ECD_DEFAULT_BUTTONS
The Constant ECD_DEFAULT_BUTTONS.
|
protected static String |
ECD_USER_BUTTONS
The Constant ECD_USER_BUTTONS.
|
protected static String |
EXO_BUTTONS
The Constant EXO_BUTTONS.
|
protected org.exoplatform.services.jcr.RepositoryService |
jcrService
The jcr service.
|
protected org.exoplatform.services.cms.views.ManageViewService |
manageView
The manage view.
|
protected org.exoplatform.webui.ext.UIExtensionManager |
uiExtensions
The ui extensions.
|
protected List<String> |
VIEWS
The views.
|
| Constructor and Description |
|---|
CloudDriveUIService(org.exoplatform.services.jcr.RepositoryService repoService,
org.exoplatform.clouddrive.CloudDriveService driveService,
org.exoplatform.webui.ext.UIExtensionManager uiExtensions,
org.exoplatform.services.cms.views.ManageViewService manageView)
Instantiates a new cloud drive UI service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds the plugin.
|
protected String |
capitalize(String text)
Capitalize.
|
protected List<String> |
getAllActions()
All Cloud Drive actions registered in the system.
|
protected Set<String> |
getDefaultActions()
List of Cloud Drive actions configured to apper in menu by default.
|
protected void |
prepareViews()
Add Cloud Drive actions to ECMS actions menu if they are not already there.
|
protected void |
readViewActions(javax.jcr.Node node,
String buttons,
StringBuilder actionsStr)
Read all buttons actions from given node, in buttons property, to given
string builder.
|
protected void |
restoreViews()
Remove Cloud Drive actions from ECMS actions menu and store them in
dedicated property.
|
protected void |
splitViewActions(javax.jcr.Node node,
String buttons,
StringBuilder cdActions,
StringBuilder otherActions)
Split buttons actions on Cloud Drive's and other from given node, in
buttons property, to given string builder.
|
void |
start() |
void |
stop() |
protected String |
uncapitalize(String text)
Uncapitalize.
|
protected static final String DMS_SYSTEM_WORKSPACE
protected static final String EXO_BUTTONS
protected static final String ECD_USER_BUTTONS
protected static final String ECD_BUTTONS
protected static final String ECD_DEFAULT_BUTTONS
public static final String CONNECT_CLOUD_DRIVE_ACTION
protected final org.exoplatform.services.jcr.RepositoryService jcrService
protected final org.exoplatform.services.cms.views.ManageViewService manageView
protected final org.exoplatform.clouddrive.CloudDriveService driveService
protected final org.exoplatform.webui.ext.UIExtensionManager uiExtensions
public CloudDriveUIService(org.exoplatform.services.jcr.RepositoryService repoService,
org.exoplatform.clouddrive.CloudDriveService driveService,
org.exoplatform.webui.ext.UIExtensionManager uiExtensions,
org.exoplatform.services.cms.views.ManageViewService manageView)
repoService - the repo servicedriveService - the drive serviceuiExtensions - the ui extensionsmanageView - the manage viewpublic void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
plugin - the pluginprotected Set<String> getDefaultActions() throws Exception
Exception - the exceptionprotected List<String> getAllActions() throws Exception
Exception - the exceptionprotected void readViewActions(javax.jcr.Node node,
String buttons,
StringBuilder actionsStr)
throws javax.jcr.RepositoryException
node - Nodebuttons - StringactionsStr - StringBuilderjavax.jcr.RepositoryException - the repository exceptionprotected void splitViewActions(javax.jcr.Node node,
String buttons,
StringBuilder cdActions,
StringBuilder otherActions)
throws javax.jcr.RepositoryException
node - Nodebuttons - StringcdActions - the cd actionsotherActions - the other actionsjavax.jcr.RepositoryException - the repository exceptionprotected void prepareViews()
throws Exception
restoreViews() ). If no saved
actions, then defaults will be added from configuration.Exception - the exceptionprotected void restoreViews()
throws Exception
Exception - the exceptionprotected String capitalize(String text)
text - the textprotected String uncapitalize(String text)
text - the textpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2003–2020 eXo Platform SAS. All rights reserved.