Ведение проектных документов

Ведение проектных документов - это настройка "fileshare-list" и "fileshare" предназначена для управления документами, как например, возможность скачать и/или получить ссылку на файл. Для настройки, в представлении атрибута типа “Файл” необходимо указать свойство:

"options": {
             "template": "fileshare-list"
           }
  • fileshare-list - для типа multifile - множественные файлы
  • fileshare - для типа file - один файл

В deploy.json в настройках registry подключаем кастомный файл-аплоадер (который с шарой директории и расширенными настройками):

"modules": {
  "registry": {
    "globals": {
      ...
      "di": {
        ...
        "fileshareController": {
          "module": "applications/viewlib/lib/controllers/api/fileshare",
          "initMethod": "init",
          "initLevel": 0,
          "options": {
            "module": "ion://module",
            "fileStorage": "ion://fileStorage"
          }
        }

Cохранение файлов в облаке

Путь для сохранения файла в облаке настраивается в deploy.json приложения. Для обращения к свойствам объекта используется знак $.

{item.названиеСвойства.свойствоСсылочногоОбъекта}

т.е. используем ${item.} для того чтобы обозначить что это обращение к объекту.

Example:

"modules": {
    "registry": {
      "globals": {
        "storage": {
          "basicObj@project-management": {
            "cloudFile": "/${class}/pm_${attr}/${dddd}/"
          },
          "project@project-management": {
            "cloudFile": "/${item.name} (${item.code})/"
          },
          "eventControl@project-management": {
            "cloudFile": "/${class}/pm_${attr}/${dddd}/"
          },
          "eventOnly@project-management": {
            "cloudFile": "/${class}/pm_${attr}/${dddd}/"
          }
        }
      }
    }
 }

Настройка позволяет задавать любую структуру хранения файлов (линейно/иерархически, коллекцией/один файл)

Функционал шаринга на файлы

Connection

In the view it’s necessary to set the attribute property of the "File"type:

"tags": [
            "share"
          ]

Usage

When you click on the “share” icon, open the control window similar to one in OwnCloud with the following buttons:

  • apply - using the api of cloud storage for the file / directory transfer all the selected parameters :
  • share a link - form a “share” on the file / directory - after applying, return to the field to copy the link
  • allow editing
  • protect with a password- the field for entering password
  • set period of validity - the field for entering data
  • go to storage - open in a new tab the link on the “share” where there are the files/directory
  • close - close the control window of the file

NB: Sharing settings are available for each file, as well as for the entire directory. If the file/directory already has sharing, then when you open the control window, the sharing settings are displayed, and you can change the properties if necessary.

Direct link to file storage

Features

  • download immediately
  • go to nextCloud and edit

Conditions for link storage

Conditions for storing links created in the process of working with files: TO DO the ability to delete all links created in the process of working with a file after some time or as unnecessary.

Access configuration

Settings of users and access rights to OwnCloud storage objects. In some cases, you must specify users and their rights to the storage objects that you create.

You can specify it in the deploy.json file of the project.

Example:

"ownCloud": {
  "module": "core/impl/resource/OwnCloudStorage",
  "options": {
   ...
     "users": [
        {
           "name": "user",
           "permissions": {
              "share": true,
              "create": false,
              "edit": true,
              "delete": false
           }
         }
      ]
   }
}