Class: UU::OS::AppPackage::AppPackageCreate
- Inherits:
-
REST::DTO
- Object
- REST::DTO
- UU::OS::AppPackage::AppPackageCreate
- Defined in:
- uu_os_client-0.10.6/lib/uu/os/app_package/app_package_create.rb
Instance Attribute Summary (collapse)
-
- (Object) code
Code of the new app package.
-
- (Object) competent_role_uri
UESURI of the competent role.
-
- (Object) description
Description of the new app package.
-
- (Object) icon_uri
URI of the app package's icon.
-
- (Object) meta_artifact_uri
UESURI of the meta artifact.
-
- (Object) name
Name of the new app package.
-
- (Object) security_level
Security level.
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 app package. 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_client-0.10.6/lib/uu/os/app_package/app_package_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 app package 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.
35 36 37 |
# File 'uu_os_client-0.10.6/lib/uu/os/app_package/app_package_create.rb', line 35 def competent_role_uri @competent_role_uri end |
- (Object) description
Description of the new app package. When null is set, from meta artifact is used if set, otherwise no description is set on the new app package.
29 30 31 |
# File 'uu_os_client-0.10.6/lib/uu/os/app_package/app_package_create.rb', line 29 def description @description end |
- (Object) icon_uri
URI of the app package's icon. When null is set, the app package uses icon
from meta artifact.
Allowed format URI 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}
45 46 47 |
# File 'uu_os_client-0.10.6/lib/uu/os/app_package/app_package_create.rb', line 45 def icon_uri @icon_uri end |
- (Object) meta_artifact_uri
UESURI of the meta artifact. Only a meta artifact with the template class of meta model (not its descendants) can be used. If the rights does not permit to create a new app package from the meta artifact in the specified location, the create command fails.
16 17 18 |
# File 'uu_os_client-0.10.6/lib/uu/os/app_package/app_package_create.rb', line 16 def @meta_artifact_uri end |
- (Object) name
Name of the new app package. When null is set, template name from meta artifact is used if set, otherwise the create command fails.
20 21 22 |
# File 'uu_os_client-0.10.6/lib/uu/os/app_package/app_package_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 template security level is higher than the user's security clearance, the create command fails.
40 41 42 |
# File 'uu_os_client-0.10.6/lib/uu/os/app_package/app_package_create.rb', line 40 def security_level @security_level end |