Class: UU::OS::Company::CompanyCreate Deprecated

Inherits:
REST::DTO
  • Object
show all
Defined in:
uu_os-0.29.16/lib/uu/os/company/company_create.rb

Overview

Deprecated.

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 company. When null 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.



25
26
27
# File 'uu_os-0.29.16/lib/uu/os/company/company_create.rb', line 25

def code
  @code
end

- (Object) competent_role_uri

UESURI of the competent role. When null is set, the executive role from authorization is used. If no role is authorized to create the new company into specified container, the create command fails. If the selected role does not have connected the role interface with the selected meta artifact, the create command fails. If the selected role does not belong to one of superior organizational units, the create command fails.



37
38
39
# File 'uu_os-0.29.16/lib/uu/os/company/company_create.rb', line 37

def competent_role_uri
  @competent_role_uri
end

- (Object) description

Description of the new company. When null is set, description from meta artifact is used if set, otherwise no description is set on the new company.



29
30
31
# File 'uu_os-0.29.16/lib/uu/os/company/company_create.rb', line 29

def description
  @description
end

- (Object) icon_uri

URI of the company's icon. When null is set, the company uses icon from meta artifact.

<code



46
47
48
# File 'uu_os-0.29.16/lib/uu/os/company/company_create.rb', line 46

def icon_uri
  @icon_uri
end

- (Object) meta_artifact_uri

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



16
17
18
# File 'uu_os-0.29.16/lib/uu/os/company/company_create.rb', line 16

def meta_artifact_uri
  @meta_artifact_uri
end

- (Object) name

Name of the new company. When null is set, name from meta artifact is used if set, otherwise the create command fails.



20
21
22
# File 'uu_os-0.29.16/lib/uu/os/company/company_create.rb', line 20

def name
  @name
end

- (Object) security_level

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



42
43
44
# File 'uu_os-0.29.16/lib/uu/os/company/company_create.rb', line 42

def security_level
  @security_level
end