Class: UU::OS::AccessRole::AccessRoleCreate Deprecated

Inherits:
REST::DTO
  • Object
show all
Defined in:
uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb

Overview

Instance Attribute Summary (collapse)

Method Summary

Methods inherited from REST::DTO

#initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from UU::OS::REST::DTO

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class UU::OS::REST::DTO

Instance Attribute Details

- (Object) code

Code of the new access role. When nil is set, the code is generated automatically using the system sequence. The code must be unique in the given territory, otherwise the create command fails.



31
32
33
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 31

def code
  @code
end

- (Object) competent_role_uri

UESURI of the competent role. When nil is set, the executive role from authorization is used. If no role is authorized to create the access role into specified container, the create command fails. If the selected role doesn't have connected the access role interface with the selected meta artifact, the create command fails. If the selected role doesn't belong to the same organizational unit as anew role or if it doesn't belong to one of superior organizational units, the create command fails.



43
44
45
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 43

def competent_role_uri
  @competent_role_uri
end

- (Object) description

Description of the new access role. When nil is set, description from metaartifact is used if set, otherwise no description is set on the new access role.



35
36
37
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 35

def description
  @description
end

- (Object) first_name

First name of the new access role. When nil is set, the create command fails.



23
24
25
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 23

def first_name
  @first_name
end

- (Object) grant_all_from_organizational_unit

Specifies if the access role will be included among All roles from organizational unit. When true or nil is set, the access role will be included, otherwise it will not be included among All roles from organizational unit.



71
72
73
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 71

def grant_all_from_organizational_unit
  @grant_all_from_organizational_unit
end

- (Object) icon_uri

UESURI of the access role's icon. When nil is set, the access role uses icon from meta artifact.

Examples:

Allowed format UESURI of icon:

ues:#{system}:#{ues_v5.core_v1.codetable_v1.base_v1.CodeTable_Icons}:#{CODE_OF_ICON}

For example:

ues:#{system}:#{ues_v5.core_v1.codetable_v1.base_v1.CodeTable_Icons}:#{ART_077}


66
67
68
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 66

def icon_uri
  @icon_uri
end

- (Object) meta_artifact_uri

UESURI of the meta artifact. Only a meta artifact with the template class of an Access role (not its descendants) can be used. If the rights does not permit to create a new access role from the metaartifact in the specified location, the create command fails.



17
18
19
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 17

def meta_artifact_uri
  @meta_artifact_uri
end

- (Object) searchable_in_territory

Specifies if it is possible to search the new access role in its territory. When nil is set, SearchableInTerritory from meta artifact is used if set, otherwise the create command fails.



57
58
59
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 57

def searchable_in_territory
  @searchable_in_territory
end

- (Object) security_clearance

Security clearance of the new access role. When nil is set, the value NO_CONFIDENTIALITY is used.



52
53
54
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 52

def security_clearance
  @security_clearance
end

- (Object) security_level

Security level. When nil is set, security level is taken from the metaartifact default security level. If the meta artifact template security level is higher than the user's security clearance, the create command fails.



48
49
50
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 48

def security_level
  @security_level
end

- (Object) surname

Surname of the new access role. When nil is set, the create command fails.



26
27
28
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 26

def surname
  @surname
end

- (Object) universe_id

Universe identifier of the user. When nil is set, the create command fails.



20
21
22
# File 'uu_os_client-0.10.6/lib/uu/os/access_role/access_role_create.rb', line 20

def universe_id
  @universe_id
end