Module: UU::OS::AppMetaModel
- Extended by:
- AppMetaModel
- Included in:
- AppMetaModel
- Defined in:
- uu_os-0.29.16/lib/uu/os/app_meta_model.rb,
uu_os-0.29.16/lib/uu/os/app_meta_model/app_meta_model_create.rb,
uu_os-0.29.16/lib/uu/os/app_meta_model/app_meta_model_attributes.rb,
uu_os-0.29.16/lib/uu/os/app_meta_model/app_meta_model_set_attributes.rb,
uu_os-0.29.16/lib/uu/os/app_meta_model/app_meta_model_get_entry_list.rb,
uu_os-0.29.16/lib/uu/os/app_meta_model/app_meta_model_entry_attributes.rb,
uu_os-0.29.16/lib/uu/os/app_meta_model/app_meta_model_install_app_parameters.rb,
uu_os-0.29.16/lib/uu/os/app_meta_model/app_meta_model_install_shared_meta_model_app_parameters.rb
Defined Under Namespace
Classes: AppMetaModelAttributes, AppMetaModelCreate, AppMetaModelEntryAttributes, AppMetaModelGetEntryList, AppMetaModelInstallAppParameters, AppMetaModelInstallSharedMetaModelAppParameters, AppMetaModelSetAttributes
Constant Summary
- PATH =
Service path
'uu/os/AppMetaModel'
Instance Method Summary (collapse)
-
- (UU::OS::UESURI) create(location_uri, app_meta_model = nil)
Creates a new app meta model.
-
- (AppMetaModelAttributes) get_attributes(app_meta_model_uri)
Returns attributes representing the app meta model specified by the app_meta_model_uri parameter.
-
- (UU::OS::REST::ResultList<AppMetaModel::AppMetaModelGetEntryList, AppMetaModel::AppMetaModelEntryAttributes>) get_entry_list(app_meta_model_uri, criteria = nil)
This command returns a list of entries (artifacts or shortcuts) enlisted in the specified app meta model.
-
- (UU::OS::REST::Future) install(territory_uri, app_parameters = nil)
Command UU::OS::AppMetaModel.install is used to install an application to the Business or Development territory.
-
- (UU::OS::REST::Future) install_shared_meta_model(territory_uri, app_parameters = nil)
Command UU::OS::AppMetaModel.installSharedMetamodel is used only to install a shared meta model to the system and it can not be used for installation to business territory.
-
- (UU::OS::UESURI) set_attributes(app_meta_model_uri, app_meta_model = nil)
Command for setting attributes of an app meta model.
Instance Method Details
- (UU::OS::UESURI) create(location_uri, app_meta_model = nil)
Creates a new app meta model. The command creates a new app meta model in a specified location. At the very least meta artifact must be specified in AppMetaModelCreate DTO. Competent role for the app meta model will be selected as the most suitable according to specified container and meta artifact (executive/authorized role with connected interface), or can be also specified in AppMetaModelCreate DTO.
41 42 43 44 45 46 47 48 49 |
# File 'uu_os-0.29.16/lib/uu/os/app_meta_model.rb', line 41 def create(location_uri, = nil) svc = UU::OS::REST::RemoteClient.new(AppMetaModel) payload = UU::OS::AppMetaModel::AppMetaModelCreate.new().to_json UU::OS::QoS::QoSHandler.auto_retry do res = svc.post('create', location_uri, payload) return UU::OS::UESURI.new(res) end end |
- (AppMetaModelAttributes) get_attributes(app_meta_model_uri)
Returns attributes representing the app meta model specified by the app_meta_model_uri parameter. The command does not change the state of the app meta model in the system.
61 62 63 64 65 66 67 |
# File 'uu_os-0.29.16/lib/uu/os/app_meta_model.rb', line 61 def get_attributes() svc = UU::OS::REST::RemoteClient.new(AppMetaModel) UU::OS::QoS::QoSHandler.auto_retry do res = svc.get('getAttributes', ) return AppMetaModel::AppMetaModelAttributes.new(res) end end |
- (UU::OS::REST::ResultList<AppMetaModel::AppMetaModelGetEntryList, AppMetaModel::AppMetaModelEntryAttributes>) get_entry_list(app_meta_model_uri, criteria = nil)
This command returns a list of entries (artifacts or shortcuts) enlisted in the specified app meta model. Only entries listed exactly in the specified app meta models are considered (so subordinate app meta models are not considered). The command does not return all entries, only a sublist. The list of returned entries could be filtered by the name, code or type of an entry. The list is sorted by the name (and codes in case are equal) of a entry by default, or it can be sorted arbitrarily by any of entry attributes usable for the filtering or these attributes combinations. See the UES query documentation for more information.
115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'uu_os-0.29.16/lib/uu/os/app_meta_model.rb', line 115 def get_entry_list(, criteria = nil) svc = UU::OS::REST::RemoteClient.new(AppMetaModel) dto = AppMetaModel::AppMetaModelGetEntryList.new(criteria) svc.add_parameter('pageIndex', dto.page_index) svc.add_parameter('pageSize', dto.page_size) svc.add_parameter('query', dto.query) svc.add_parameter('recursive', dto.recursive) UU::OS::QoS::QoSHandler.auto_retry do res = svc.get('getEntryList', ) return UU::OS::REST::ResultList.new(AppMetaModel::AppMetaModelGetEntryList, AppMetaModel::AppMetaModelEntryAttributes, res) end end |
- (UU::OS::REST::Future) install(territory_uri, app_parameters = nil)
Command UU::OS::AppMetaModel.install is used to install an application to the Business or Development territory. It also allows to install applications with shared meta model, if the application supports it. In this case, first will be performed the installation to the system territory (or to the location, specified in the parameter devSharedSpaceUri, when installed to Development territory) and then the application will be installed in specified Business territory.
199 200 201 202 203 204 205 206 207 208 |
# File 'uu_os-0.29.16/lib/uu/os/app_meta_model.rb', line 199 def install(territory_uri, app_parameters = nil) svc = UU::OS::REST::RemoteClient.new(AppMetaModel) payload = UU::OS::AppMetaModel::AppMetaModelInstallAppParameters.new(app_parameters).to_json UU::OS::QoS::QoSHandler.auto_retry do res = svc.post('install', territory_uri, payload) uesuri = UU::OS::UESURI.new(res) return UU::OS::REST::Future.new(uesuri) end end |
- (UU::OS::REST::Future) install_shared_meta_model(territory_uri, app_parameters = nil)
Command UU::OS::AppMetaModel.installSharedMetamodel is used only to install a shared meta model to the system and it can not be used for installation to business territory. Parameters devSystemSpaceUri and devAppSpaceUri are not used within this command.
248 249 250 251 252 253 254 255 256 257 |
# File 'uu_os-0.29.16/lib/uu/os/app_meta_model.rb', line 248 def (territory_uri, app_parameters = nil) svc = UU::OS::REST::RemoteClient.new(AppMetaModel) payload = UU::OS::AppMetaModel::AppMetaModelInstallSharedMetaModelAppParameters.new(app_parameters).to_json UU::OS::QoS::QoSHandler.auto_retry do res = svc.post('installSharedMetaModel', territory_uri, payload) uesuri = UU::OS::UESURI.new(res) return UU::OS::REST::Future.new(uesuri) end end |
- (UU::OS::UESURI) set_attributes(app_meta_model_uri, app_meta_model = nil)
Command for setting attributes of an app meta model. The command can't modify references to objects like location, competent role and so on.
86 87 88 89 90 91 92 93 94 |
# File 'uu_os-0.29.16/lib/uu/os/app_meta_model.rb', line 86 def set_attributes(, = nil) svc = UU::OS::REST::RemoteClient.new(AppMetaModel) payload = UU::OS::AppMetaModel::AppMetaModelSetAttributes.new().to_json UU::OS::QoS::QoSHandler.auto_retry do res = svc.post('setAttributes', , payload) return UU::OS::UESURI.new(res) end end |