|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.clouddrive.ecms.CloudDriveUIService
public class CloudDriveUIService
Add ImportCloudDocument button in ListView. We're doing this by hack of already stored DMS navigation.
| Field Summary | |
|---|---|
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_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 Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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 List<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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
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
protected final Set<String> defaultMenuActions
protected final List<String> VIEWS
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
protected List<String> getDefaultActions()
throws Exception
Exception
protected List<String> getAllActions()
throws Exception
Exception
protected void readViewActions(javax.jcr.Node node,
String buttons,
StringBuilder actionsStr)
throws javax.jcr.RepositoryException
node - Nodebuttons - StringactionsStr - StringBuilder
javax.jcr.RepositoryException
protected void splitViewActions(javax.jcr.Node node,
String buttons,
StringBuilder cdActions,
StringBuilder otherActions)
throws javax.jcr.RepositoryException
node - Nodebuttons - StringactionsStr - StringBuilder
javax.jcr.RepositoryException
protected void prepareViews()
throws Exception
restoreViews() ). If
no saved actions, then defaults will be added from configuration.
Exception
protected void restoreViews()
throws Exception
Exceptionprotected String capitalize(String text)
protected String uncapitalize(String text)
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||