Class: UU::OS::RoleInterface::RoleInterfaceCreate

Inherits:
UU::OS::REST::DTO show all
Defined in:
uu_os_client-0.10.6/lib/uu/os/role_interface/role_interface_create.rb

Instance Attribute Summary (collapse)

Method Summary

Methods inherited from UU::OS::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 role interface. When null is set, the code isgenerated automatically using the system sequence. The code mustbe unique in the given territory, otherwise the create commandfails.



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

def code
  @code
end

- (Object) competent_role_uri

UESURI of the competent role. When null is set, the executive role fromauthorization is used. If no role is authorized to create the newrole interface into specified container, the create command fails.If the selected role doesn't have connected the role interfacewith the selected meta artifact, the create command fails.



33
34
35
# File 'uu_os_client-0.10.6/lib/uu/os/role_interface/role_interface_create.rb', line 33

def competent_role_uri
  @competent_role_uri
end

- (Object) description

Description of the new role interface. When null is set, from meta artifactis used if set, otherwise no description is set on the new roleinterface.



27
28
29
# File 'uu_os_client-0.10.6/lib/uu/os/role_interface/role_interface_create.rb', line 27

def description
  @description
end

- (Object) icon_uri

URI of the role interface's icon. When null is set, the meta modeluses icon from meta artifact.

Allowed formatURI 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}



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

def icon_uri
  @icon_uri
end

- (Object) meta_artifact_uri

UESURI of the meta artifact. Only a meta artifact with the templateclass of role interface can be used. If the rights does not permitto create a new role interface from the meta artifact in thespecified location, the create command fails.



14
15
16
# File 'uu_os_client-0.10.6/lib/uu/os/role_interface/role_interface_create.rb', line 14

def meta_artifact_uri
  @meta_artifact_uri
end

- (Object) name

Name of the new role interface. When null is set, template name frommeta artifact is used if set, otherwise the create command fails.



18
19
20
# File 'uu_os_client-0.10.6/lib/uu/os/role_interface/role_interface_create.rb', line 18

def name
  @name
end

- (Object) security_level

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



38
39
40
# File 'uu_os_client-0.10.6/lib/uu/os/role_interface/role_interface_create.rb', line 38

def security_level
  @security_level
end