Displays and manages dialogs for selecting content to open, copy or upload.
string
, name: string
): string
string
- Name of the action to display in the dialog titlestring
- Name of the item on which the action is being performedstring
- Translated version of the titleNodeAction
, contentEntry: Node
, permission?: string
, excludeSiteContent?: string[]
): Observable
<Node[]>
NodeAction
- Name of the action (eg, "Copy" or "Move") to show in the titleNode
- Item to be copied or movedstring
- (Optional) Permission for the operationstring[]
- (Optional) The site content that should be filtered outObservable
<Node[]>
- Information about files that were copied/movedObservable
<Node[]>
Observable
<Node[]>
- Information about the selected file(s)string
): Observable
<Node[]>
string
- ID of the folder to useObservable
<Node[]>
- Information about the selected file(s)Observable
<Node[]>
Observable
<Node[]>
- Information about the selected file(s)string
): Observable
<Node[]>
string
- ID of the folder to useObservable
<Node[]>
- Information about the selected folder(s)Observable
<Node[]>
Observable
<Node[]>
- Information about the selected folder(s)Node
): Subject
<string>
Node
- Node to lockSubject
<string>
- Error/status message (if any)NodeAction
, contentEntry: Node
, showFilesInResult: boolean
= false
): Observable
<Node[]>
NodeAction
- Name of the action to show in the titleNode
- Item to uploadboolean
- Show files in dialog search resultObservable
<Node[]>
- Information about the chosen file(s)NodeAction
, contentEntry: Node
): Observable
<Node[]>
NodeAction
- Name of the action to show in the titleNode
- Item to uploadObservable
<Node[]>
- Information about the chosen folder(s)The openXXX
methods return an
Observable
that you can subscribe
to in order to get the information from the result:
import { ContentNodeDialogService } from '@adf/content-services'
constructor(private contentDialogService: ContentNodeDialogService){}
yourFunctionOnCopyOrMove(){
this.contentDialogService
.openCopyMoveDialog(actionName, targetNode, neededPermissionForAction)
.subscribe((selections: MinimalNode[]) => {
// place your action here on operation success!
});
}
The openXXXByFolderId
methods let you set the initial folder location of the browser
using a folder ID string. This can be obtained from the id
property of a
MinimalNode
object (returned from a previous
dialog operation, say) or be set to one of the well-known names "-my-" , "-shared-" or
"-root-".
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.