Class: UU::OS::Cast::CastSetAttributes

Inherits:
REST::DTO
  • Object
show all
Defined in:
uu_os_client-0.10.6/lib/uu/os/cast/cast_set_attributes.rb

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) casted_subject_uri

UESURI of the subject (role or group) which is casted to the subject identified by the command main entity. Cannot be nil.



12
13
14
# File 'uu_os_client-0.10.6/lib/uu/os/cast/cast_set_attributes.rb', line 12

def casted_subject_uri
  @casted_subject_uri
end

- (Object) date_to

The informative field describing the date when the cast should expire. Note that there is no business logic behind this field at the moment, so it serves only as a note. When nil is set, the date is not changed.



28
29
30
# File 'uu_os_client-0.10.6/lib/uu/os/cast/cast_set_attributes.rb', line 28

def date_to
  @date_to
end

- (Object) level

The new level of the cast relation. When nil is set the level is not changed.



15
16
17
# File 'uu_os_client-0.10.6/lib/uu/os/cast/cast_set_attributes.rb', line 15

def level
  @level
end

- (Object) primary

Specifies if the cast will be the primary cast to the role. Applicable only for EXECUTIVE cast level. Also main entity has to be a role. When nil is set, the primary cast is not changed. When TRUE value is set, the cast will become the primary executive cast. When FALSEvalue is set, the cast will become the ordinary executive cast and some other executive cast to the same subject will be changed to the primary cast (the oldest one).



23
24
25
# File 'uu_os_client-0.10.6/lib/uu/os/cast/cast_set_attributes.rb', line 23

def primary
  @primary
end

- (Object) state

The new state of the cast. Only ACTIVE casts are involved in the business rules computations. When nil is set, the state is not changed.



32
33
34
# File 'uu_os_client-0.10.6/lib/uu/os/cast/cast_set_attributes.rb', line 32

def state
  @state
end