public class CloudDriveUIService extends Object implements org.picocontainer.Startable
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECT_CLOUD_DRIVE_ACTION |
protected Set<String> |
defaultMenuActions |
protected static String |
DMS_SYSTEM_WORKSPACE |
protected org.exoplatform.clouddrive.CloudDriveService |
driveService |
protected static String |
ECD_BUTTONS |
protected static String |
ECD_DEFAULT_BUTTONS |
protected static String |
ECD_USER_BUTTONS |
protected static String |
EXO_BUTTONS |
protected org.exoplatform.services.jcr.RepositoryService |
jcrService |
protected org.exoplatform.services.cms.views.ManageViewService |
manageView |
protected org.exoplatform.webui.ext.UIExtensionManager |
uiExtensions |
protected List<String> |
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin) |
protected String |
capitalize(String text) |
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) |
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)
public void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
protected Set<String> getDefaultActions() throws Exception
Exceptionprotected List<String> getAllActions() throws Exception
Exceptionprotected void readViewActions(javax.jcr.Node node,
String buttons,
StringBuilder actionsStr)
throws javax.jcr.RepositoryException
node - Nodebuttons - StringactionsStr - StringBuilderjavax.jcr.RepositoryExceptionprotected void splitViewActions(javax.jcr.Node node,
String buttons,
StringBuilder cdActions,
StringBuilder otherActions)
throws javax.jcr.RepositoryException
node - Nodebuttons - StringactionsStr - StringBuilderjavax.jcr.RepositoryExceptionprotected void prepareViews()
throws Exception
restoreViews() ). If
no saved actions, then defaults will be added from configuration.Exceptionprotected void restoreViews()
throws Exception
Exceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2003–2016 eXo Platform SAS. All rights reserved.