@Name(value="nuxeoDriveActions") @Scope(value=PAGE) @Install(precedence=10) public class NuxeoDriveActions extends InputController implements Serializable
Modifier and Type | Field and Description |
---|---|
protected static String |
CURRENT_SYNCHRONIZATION_ROOT |
static String |
DESKTOP_PACKAGE_PREFIX |
static String |
DESKTOP_PACKAGE_URL_LATEST_SEGMENT |
static String |
DMG_EXTENSION |
protected DocumentActions |
documentActions |
protected CoreSession |
documentManager |
protected static String |
IS_UNDER_SYNCHRONIZATION_ROOT |
static String |
MSI_EXTENSION |
protected NavigationContext |
navigationContext |
static String |
NEW_DRIVE_EDIT_URL_PROP_KEY |
static String |
NUXEO_DRIVE_APPLICATION_NAME |
static String |
NXDRIVE_PROTOCOL |
static String |
OSX_PLATFORM |
static String |
PROTOCOL_COMMAND_EDIT |
static String |
SERVER_VERSION_PROP_KEY
Deprecated.
Since 7.10. Use
Environment properties |
static String |
UPDATE_SITE_URL_PROP_KEY
Deprecated.
Use
NuxeoDriveConstants.UPDATE_SITE_URL_PROP_KEY instead |
protected UserCenterViewManager |
userCenterViews |
static String |
WINDOWS_PLATFORM |
actionManager, currentDocument, currentUser, eventManager, facesMessages, resourcesAccessor, typeManager, typesTool
Constructor and Description |
---|
NuxeoDriveActions() |
computeOutcome, extractReferences, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList, setFacesMessage
public static final String NUXEO_DRIVE_APPLICATION_NAME
protected static final String IS_UNDER_SYNCHRONIZATION_ROOT
protected static final String CURRENT_SYNCHRONIZATION_ROOT
public static final String NXDRIVE_PROTOCOL
public static final String PROTOCOL_COMMAND_EDIT
@Deprecated public static final String UPDATE_SITE_URL_PROP_KEY
NuxeoDriveConstants.UPDATE_SITE_URL_PROP_KEY
instead@Deprecated public static final String SERVER_VERSION_PROP_KEY
Environment
propertiespublic static final String NEW_DRIVE_EDIT_URL_PROP_KEY
public static final String DESKTOP_PACKAGE_URL_LATEST_SEGMENT
public static final String DESKTOP_PACKAGE_PREFIX
public static final String MSI_EXTENSION
public static final String DMG_EXTENSION
public static final String WINDOWS_PLATFORM
public static final String OSX_PLATFORM
@In(create=true, required=false) protected transient NavigationContext navigationContext
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true, required=false) protected transient UserCenterViewManager userCenterViews
@In(create=true) protected transient DocumentActions documentActions
public NuxeoDriveActions()
@Factory(value="nuxeoDriveCurrentSynchronizationRoot", scope=EVENT) public DocumentModel getCurrentSynchronizationRoot()
public boolean canEditDocument(DocumentModel doc)
public boolean hasOneDriveToken(Principal user) throws UnsupportedEncodingException
UnsupportedEncodingException
public String getDriveEditURL()
getDriveEditURL(DocumentModel)
public String getDriveEditURL(DocumentModel currentDocument)
NXDRIVE_PROTOCOL
must be handled by a protocol handler configured on the client side (either on the
browser, or on the OS).
NXDRIVE_PROTOCOL
:// PROTOCOL_COMMAND_EDIT
/protocol/server[:port]/webappName/[user/userName/]repo/repoName/nxdocid/docId/filename/fileName[/
downloadUrl/downloadUrl]"public String navigateToUserCenterNuxeoDrive()
@Factory(value="canSynchronizeCurrentDocument") public boolean canSynchronizeCurrentDocument()
@Factory(value="canUnSynchronizeCurrentDocument") public boolean canUnSynchronizeCurrentDocument()
@Factory(value="canNavigateToCurrentSynchronizationRoot") public boolean canNavigateToCurrentSynchronizationRoot()
@Factory(value="currentDocumentUserWorkspace", scope=PAGE) public boolean isCurrentDocumentUserWorkspace()
public String synchronizeCurrentDocument() throws UnsupportedEncodingException
UnsupportedEncodingException
public void unsynchronizeCurrentDocument()
public String navigateToCurrentSynchronizationRoot()
public DocumentModelList getSynchronizationRoots()
public void unsynchronizeRoot(DocumentModel syncRoot)
@Factory(value="nuxeoDriveClientPackages", scope=CONVERSATION) public List<DesktopPackageDefinition> getClientPackages()
@Factory(value="desktopPackageBaseURL", scope=APPLICATION) public Object getDesktopPackageBaseURL()
protected boolean isSyncRootCandidate(DocumentModel doc)
protected FileSystemItem getFileSystemItem(DocumentModel doc)
protected String getUserCenterNuxeoDriveView()
public String updateCurrentDocument()
Copyright © 2018 Nuxeo. All rights reserved.