Changes for page Delete Folder(s)
Last modified by Erik Bakker on 2023/01/31 10:14
From version 19.1
edited by Erik Bakker
on 2022/05/01 14:14
on 2022/05/01 14:14
Change comment:
There is no comment for this version
To version 25.1
edited by Erik Bakker
on 2022/05/02 09:25
on 2022/05/02 09:25
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - REST - Fire&Forget1 +Delete Folder(s) - Content
-
... ... @@ -1,38 +1,26 @@ 1 1 {{container}} 2 2 {{container layoutStyle="columns"}} 3 -(((**~1. How to use** 3 +(((== About == 4 +With the help of this store item, you can delete folders from a specific directory. This process is triggered with the help of a Groovy script that looks for folders that adhere to certain criteria (in this case that the folder name is a date) 4 4 5 - Withthis storecomponent, you can easily setup a connectionto a REST endpoint using various authentication mechanisms without caring about the response.6 +== Documentation == 6 6 8 +==== 1. How to use==== 7 7 8 -**2. Keynotes & restrictions** 10 +Once activated this Groovy script will automatically delete all folders that pass the criteria. In the store item the criteria are as follows: 11 +a. The folder name is a date (formatted as yyyy-MM-dd) 12 +b. The folder is older than X days (X is configurable) 9 9 10 - a.Notethatyouneed toselectthevalidauthenticationbased on the requirement of the external system.14 +==== 2. Keynotes & restrictions==== 11 11 16 +a. Note that you should think about how long you want to retain the files within the folders and when to throw away the folder 17 +b. Best practice is to use a separate flow that governs the deletion of folders within the directory 12 12 13 - **3. License Information**19 +==== 3. License Information==== 14 14 Part of the standard license agreement as agreed upon when using the store for the first time. 15 15 16 - 17 -**4. Relevant eMagiz Academy Microlearnings** 18 - 19 -[[https:~~/~~/emagiz.github.io/docs/microlearning/intermediate-rest-webservice-connectivity-index>>url:https://emagiz.github.io/docs/microlearning/intermediate-rest-webservice-connectivity-index]] 20 - 21 - 22 22 Would you please consult the privacy policy of eMagiz at the following link: [[https:~~/~~/www.emagiz.com/privacy-policy/?>>url:https://www.emagiz.com/privacy-policy/?]]))) 23 23 24 - 25 - 26 -((((% border="2" cellpadding="10" cellspacing="10" style="width:292px" %) 27 -|=(% style="width: 45px;" %)#|=(% style="width: 241px;" %)Option 28 -|(% style="width:45px" %) a|(% style="width:241px" %) OAuth 2.0 - Authorization Code 29 -|(% style="width:45px" %) b|(% style="width:241px" %) REST - Basic Auth 30 -|(% style="width:45px" %) c|(% style="width:241px" %) REST - Client Certificate 31 -|(% style="width:45px" %) d|(% style="width:241px" %) REST - Header Mapper 32 -|(% style="width:45px" %) e|(% style="width:241px" %) OAuth 2.0 - Client Credentials 33 -|(% style="width:45px" %) f|(% style="width:241px" %) REST - SSL 34 -|(% style="width:45px" %) g|(% style="width:241px" %) Dynamic Token 35 -|(% style="width:45px" %) h|(% style="width:241px" %) No Authentication (Fire & Forget) 36 -))) 24 +((())) 37 37 {{/container}} 38 38 {{/container}}
- XWiki.StyleSheetExtension[0]
-
- Caching policy
-
... ... @@ -1,1 +1,0 @@ 1 -long - Code
-
... ... @@ -1,6 +1,0 @@ 1 -div.container-columns div.first-column { 2 - width:65%; 3 -} 4 -div.container-columns div.last-column { 5 - width:35%; 6 -} - Content Type
-
... ... @@ -1,1 +1,0 @@ 1 -CSS - Name
-
... ... @@ -1,1 +1,0 @@ 1 -Container Sizing - Use this extension
-
... ... @@ -1,1 +1,0 @@ 1 -currentPage