Module: UU::OS::AllFromOrganizationalUnitCast
- Extended by:
- AllFromOrganizationalUnitCast
- Included in:
- AllFromOrganizationalUnitCast
- Defined in:
- uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast.rb,
uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_exists.rb,
uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_delete.rb,
uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_create.rb,
uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_attributes.rb,
uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_get_cast_list.rb,
uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_set_attributes.rb,
uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_get_attributes.rb
Overview
Module All From Organizational Unit Cast.
Defined Under Namespace
Classes: AllFromOrganizationalUnitCastAttributes, AllFromOrganizationalUnitCastCreate, AllFromOrganizationalUnitCastDelete, AllFromOrganizationalUnitCastExists, AllFromOrganizationalUnitCastGetAttributes, AllFromOrganizationalUnitCastGetCastList, AllFromOrganizationalUnitCastSetAttributes
Constant Summary
- PATH =
Service path
'uu/os/AllFromOrganizationalUnitCast'
Instance Method Summary (collapse)
-
- (Object) create(organizational_unit_uri, cast = nil)
Casts a subject (specified in the parameter casted_subject_uri) to the group All From Organizational Unit which is derived from specified organizational unit.
-
- (Object) delete(organizational_unit_uri, cast = nil)
Deletes the cast from the system.
-
- (Boolean) exists(organizational_unit_uri, cast)
Checks whether the subject (specified in the parameter casted_subject_uri) is casted to the group All From Organizational Unit which is derived from the specified organizational unit.
-
- (AllFromOrganizationalUnitCastAttributes) get_attributes(organizational_unit_uri, cast)
Returns attributes of subject cast into the group All From Organizational Unit which is derived from specified organizational unit.
-
- (Array) get_cast_list(organizational_unit_uri, criteria = nil)
Returns list of casts accord to the group All From Organizational Unit which is derived from the specified organizational unit and optionally accord to the specified cast level.
-
- (Object) set_attributes(organizational_unit_uri, cast = nil)
Sets basic attributes of the subject cast into the All From Organizational Unit which is derived from the specified organizational unit.
Instance Method Details
- (Object) create(organizational_unit_uri, cast = nil)
Casts a subject (specified in the parameter casted_subject_uri) to the group All From Organizational Unit which is derived from specified organizational unit. Only cast between subject and group All From Organizational Unit from the same organizational unit is supported. Any change of user authorization resulting from the cast modification will take effect approximately after 15 minutes.
33 34 35 36 37 38 39 40 |
# File 'uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast.rb', line 33 def create(organizational_unit_uri, cast = nil) svc = UU::OS::REST::RemoteClient.new(AllFromOrganizationalUnitCast) payload = UU::OS::AllFromOrganizationalUnitCast::AllFromOrganizationalUnitCastCreate.new(cast).to_json UU::OS::QoS::QoSHandler.auto_retry do svc.post('create', organizational_unit_uri, payload) end end |
- (Object) delete(organizational_unit_uri, cast = nil)
Deletes the cast from the system. Any change of user authorization resulting from the cast modification will take effect approximately after 15 minutes.
108 109 110 111 112 113 114 115 |
# File 'uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast.rb', line 108 def delete(organizational_unit_uri, cast = nil) svc = UU::OS::REST::RemoteClient.new(AllFromOrganizationalUnitCast) payload = UU::OS::AllFromOrganizationalUnitCast::AllFromOrganizationalUnitCastDelete.new(cast).to_json UU::OS::QoS::QoSHandler.auto_retry do svc.post('delete', organizational_unit_uri, payload) end end |
- (Boolean) exists(organizational_unit_uri, cast)
Checks whether the subject (specified in the parameter casted_subject_uri) is casted to the group All From Organizational Unit which is derived from the specified organizational unit.
134 135 136 137 138 139 140 141 142 143 |
# File 'uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast.rb', line 134 def exists(organizational_unit_uri, cast) svc = UU::OS::REST::RemoteClient.new(AllFromOrganizationalUnitCast) dto = UU::OS::AllFromOrganizationalUnitCast::AllFromOrganizationalUnitCastExists.new(cast) svc.add_parameter('castedSubjectUri', dto.casted_subject_uri) svc.add_parameter('recursive', dto.recursive) UU::OS::QoS::QoSHandler.auto_retry do res = svc.get('exists', organizational_unit_uri) return (res == 'true') || (res == '"true"') end end |
- (AllFromOrganizationalUnitCastAttributes) get_attributes(organizational_unit_uri, cast)
Returns attributes of subject cast into the group All From Organizational Unit which is derived from specified organizational unit.
50 51 52 53 54 55 56 57 58 |
# File 'uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast.rb', line 50 def get_attributes(organizational_unit_uri, cast) svc = UU::OS::REST::RemoteClient.new(AllFromOrganizationalUnitCast) get_dto = UU::OS::AllFromOrganizationalUnitCast::AllFromOrganizationalUnitCastGetAttributes.new(cast) svc.add_parameter('castedSubjectUri', get_dto.casted_subject_uri) UU::OS::QoS::QoSHandler.auto_retry do res = svc.get('getAttributes', organizational_unit_uri) return AllFromOrganizationalUnitCast::AllFromOrganizationalUnitCastAttributes.new(res) end end |
- (Array) get_cast_list(organizational_unit_uri, criteria = nil)
Returns list of casts accord to the group All From Organizational Unit which is derived from the specified organizational unit and optionally accord to the specified cast level.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast.rb', line 72 def get_cast_list(organizational_unit_uri, criteria = nil) svc = UU::OS::REST::RemoteClient.new(AllFromOrganizationalUnitCast) dto = AllFromOrganizationalUnitCast::AllFromOrganizationalUnitCastGetCastList.new(criteria) svc.add_parameter('pageIndex', dto.page_index) svc.add_parameter('pageSize', dto.page_size) svc.add_parameter('query', dto.query) UU::OS::QoS::QoSHandler.auto_retry do res = svc.get('getCastList', organizational_unit_uri) return UU::OS::REST::ResultList.new(AllFromOrganizationalUnitCast::AllFromOrganizationalUnitCastGetCastList, AllFromOrganizationalUnitCast::AllFromOrganizationalUnitCastAttributes, res) end end |
- (Object) set_attributes(organizational_unit_uri, cast = nil)
Sets basic attributes of the subject cast into the All From Organizational Unit which is derived from the specified organizational unit.
93 94 95 96 97 98 99 100 |
# File 'uu_os_client-0.10.6/lib/uu/os/all_from_organizational_unit_cast.rb', line 93 def set_attributes(organizational_unit_uri, cast = nil) svc = UU::OS::REST::RemoteClient.new(AllFromOrganizationalUnitCast) payload = UU::OS::AllFromOrganizationalUnitCast::AllFromOrganizationalUnitCastSetAttributes.new(cast).to_json UU::OS::QoS::QoSHandler.auto_retry do svc.post('setAttributes', organizational_unit_uri, payload) end end |