Class: UU::OS::AppMetaModel::AppMetaModelCreate

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

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) app_box_uri

UESURI of appbox from which was the app meta model created.



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

def app_box_uri
  @app_box_uri
end

- (Object) code

Code of the new organizational unit. 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.



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

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 new organizational unit into specified container, the create command fails. If the selected role doesn't have connected the role interface with the selected meta artifact, the create command fails. If the selected role doesn't belong to one of superior organizational units, the create command fails.



40
41
42
# File 'uu_os_client-0.10.6/lib/uu/os/app_meta_model/app_meta_model_create.rb', line 40

def competent_role_uri
  @competent_role_uri
end

- (Object) description

Description of the new organizational unit. When nil is set, tDescription from meta artifact is used if set, otherwise no description is set on the new organizational unit.



32
33
34
# File 'uu_os_client-0.10.6/lib/uu/os/app_meta_model/app_meta_model_create.rb', line 32

def description
  @description
end

- (Object) icon_uri

URI of the organizational unit's icon. When nil is set, the organizational unit uses icon from meta artifact.

Allowed formatURI of icon: ues:#system:#.CodeTable_Icons:#CODE_OF_ICON

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



51
52
53
# File 'uu_os_client-0.10.6/lib/uu/os/app_meta_model/app_meta_model_create.rb', line 51

def icon_uri
  @icon_uri
end

- (Object) meta_artifact_uri

UESURI of the meta artifact. Only a meta artifact with the template class of Organizational Unit (not its descendants) can be used. If the rights does not permit to create a new organizational unit from the meta artifact in the specified location, the create command fails.



15
16
17
# File 'uu_os_client-0.10.6/lib/uu/os/app_meta_model/app_meta_model_create.rb', line 15

def meta_artifact_uri
  @meta_artifact_uri
end

- (Object) name

Name of the new organizational unit. When nil is set, tName from meta artifact is used if set, otherwise the create command fails.



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

def name
  @name
end

- (Object) security_level

Security level. When nil is set, security level is taken from the meta artifact tSecurityLevel. If the meta artifact tSecurityLevel is higher than theuser's security clearance, the create command fails.



45
46
47
# File 'uu_os_client-0.10.6/lib/uu/os/app_meta_model/app_meta_model_create.rb', line 45

def security_level
  @security_level
end