Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Polish

Pobranie informacji o poziomach uprawnień

Ścieżka do servletu: api/rights/partial

Metoda: GET

Parametry:

  • resourceName      nazwa użytkownika lub grupy użytkowników
  • isGroup                 jeżeli 'true', to parametr 'resourceName' zawiera nazwę grupy, jeśli 'false' to zwiera nazwę użytkownika.

Odpowiedź:

  • Lista uprawnień do procesów (poziom 'system.workflow.processes'), do dokumentów archiwum (poziom 'system.archive.docclasses'), do zestawów dokumentów archiwum (poziom 'system.archive.links').
Note
titleUwaga

Pobierane są uprawnienia z co najmniej podanych poziomów (także niższych), ale nie są pobierane informacje z wyższych poziomów.
Zatem brak informacji o uprawnieniu na którymś poziomie nie oznacza braku uprawnienia w systemie. Ponieważ uprawnienia mogą być nadane na wyższym poziomie np. 'system' co automatycznie daje uprawnienie do niższych poziomów, ale brak o tym bezpośredniej informacji w tabeli 'pm_rights' z której są bezpośrednio pobierane te informacje. Taka jest specyfika uprawnień PlusWorkflow.

Code Block
languagexml
titlePrzykład odpowiedzi
[
	{
	"section": "docclasses",
		"details":[
			"zalaczniki"
		]
	},

	{
	"section": "links",
		"details":[
			"zestaw1"
		]
	},

	{
	"section": "processes",
		"details":[
			"Proces Rekrutacji i Zatrudnienia"
		]
	}
]
English

Get information about permission levels

Path to servlet:: api/rights/partial

Method: GET

Parameters

  • resourceName      resourceName the name of the user or user group
  • isGroup               isGroup if 'true', the parameter 'resourceName' contains the group name, if 'false' it contains the user name.

Answer:

  • List of permissions to processes (level 'system.workflow.processes'), to archive documents (level 'system.archive.docclasses'), to archive document sets (level 'system.archive.links')
Note
titleNote

Permissions from at least the specified levels (including lower levels) are retrieved, but information from higher levels is not retrieved.

Thus, the absence of information about a permission at any level does not mean that there is no permission in the system. Because permissions can be given at a higher level, e.g. 'system' which automatically gives permission to lower levels, but there is no direct information about it in the 'pm_rights' table from which this information is directly retrieved. This is the nature of PlusWorkflow permissions.

Code Block
languagexml
titleexample answer
[
	{
	"section": "docclasses",
		"details":[
			"attachments"
		]
	},

	{
	"section": "links",
		"details":[
			"set1"
		]
	},

	{
	"section": "processes",
		"details":[
			"Recruitment and Hiring Process"
		]
	}
]