Module: UU::OS::AllFromOrganizationalUnitCast Deprecated
- Extended by:
- AllFromOrganizationalUnitCast
- Included in:
- AllFromOrganizationalUnitCast
- Defined in:
- uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast.rb,
uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_exists.rb,
uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_delete.rb,
uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_create.rb,
uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_attributes.rb,
uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_get_cast_list.rb,
uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_set_attributes.rb,
uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast/all_from_organizational_unit_cast_get_attributes.rb
Overview
All From OU will not be used in the new authorization (v4).
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 according to the group All From Organizational Unit which is derived from the specified organizational unit.
-
- (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.
40 41 42 43 44 45 46 47 |
# File 'uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast.rb', line 40 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.
138 139 140 141 142 143 144 145 |
# File 'uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast.rb', line 138 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.
165 166 167 168 169 170 171 172 173 174 |
# File 'uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast.rb', line 165 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.
64 65 66 67 68 69 70 71 72 |
# File 'uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast.rb', line 64 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 according to the group All From Organizational Unit which is derived from the specified organizational unit. The result list can be filtered and ordered by the following attributes: level, dateFrom, state, castedSubjectName, castedSubjectCode, castedSubjectEntityTypeUri. The list is sorted by the date of creation of casts (dateFrom) by default.
89 90 91 92 93 94 95 96 97 98 99 |
# File 'uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast.rb', line 89 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.
118 119 120 121 122 123 124 125 |
# File 'uu_os-0.29.16/lib/uu/os/all_from_organizational_unit_cast.rb', line 118 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 |