Class: ManageCollaborators

ManageCollaborators()

Handles actions to delete or change permissions of the collaborators for a file entry.

Constructor

new ManageCollaborators()

Source:

Members

(static) expandedCollaboratorId :String

Id of the expanded collaborator
Type:
  • String
Source:

actionUrl :String

Uri to send the manage collaborators fetch request.
Type:
  • String
Source:

spritemap :String

Path to images.
Type:
  • String
Source:

Methods

(protected) _checkExpirationDate(expirationDate) → {Bool}

Checks if the date is after today.
Parameters:
Name Type Description
expirationDate String
Source:
Returns:
returns true if the expiration date is after today, false in other case.
Type
Bool

(protected) _closeDialog()

Closes the dialog.
Source:

_findExpirationDateError() → {Boolean}

Looks if there is a collaborator with an invalid expiration date.
Source:
Returns:
If a collaborator has an invalid expiration date
Type
Boolean

_getCollaborator(collaboratorId) → {Object}

Finds a collaborator by his id
Parameters:
Name Type Description
collaboratorId String The id of a collaborator
Source:
Returns:
Collaborator
Type
Object

_getTooltipDate(expirationDate) → {String}

Get the formatted date that has to be shown in the tooltip.
Parameters:
Name Type Description
expirationDate Date [description]
Source:
Returns:
[description]
Type
String

(protected) _handleBlurExpirationDate(event)

Gets the selected expiration date.
Parameters:
Name Type Description
event Event
Source:

(protected) _handleCancelButtonClick()

Closes the dialog.
Source:

(protected) _handleChangePermission(event)

Gets the new permission key for the selected collaborator.
Parameters:
Name Type Description
event Event
Source:

(protected) _handleChangeShareable(event)

Get shareable permissions
Parameters:
Name Type Description
event Event
Source:

(protected) _handleDeleteCollaborator(event)

Deletes the collaborator.
Parameters:
Name Type Description
event Event
Source:

(protected) _handleEnableDisableExpirationDate(event)

Enable and disable the expiration date field
Parameters:
Name Type Description
event Event
Source:

(protected) _handleExpandCollaborator(event)

Expand configuration for sharing permissions and expiration
Parameters:
Name Type Description
event Event
Source:

(protected) _handleSaveButtonClick()

Sends a request to the server to update permissions or delete collaborators.
Source:

(protected) _removeExpirationDateError()

Cleans the error.
Source:

attached()

Source: