Class: UU::OS::Content::ChangeLog
- Inherits:
-
ContentClient
- Object
- ContentClient
- UU::OS::Content::ChangeLog
- Defined in:
- lib/uu/os/content/change_log.rb
Class Method Summary collapse
-
.get_version_list(sheet_uri, query = nil) ⇒ Object
#get_version_list convenience self-instantiating shortcut.
-
.restore_change(sheet_uri, parameters = nil) ⇒ Object
#restore_change convenience self-instantiating shortcut.
-
.restore_version(sheet_uri, parameters = nil) ⇒ Object
#restore_version convenience self-instantiating shortcut.
-
.set_version_attributes(sheet_uri, attributes = nil) ⇒ Object
#set_version_attributes convenience self-instantiating shortcut.
Instance Method Summary collapse
-
#get_version_list(sheet_uri, query = nil) ⇒ Array<Hash>
Returns the list with objects containing the attributes of the sheet changes.
-
#initialize(session) ⇒ ChangeLog
constructor
A new instance of ChangeLog.
-
#restore_change(sheet_uri, parameters = nil) ⇒ Object
Copies the version data of the given component and sets is as the actual component data.
-
#restore_version(sheet_uri, parameters = nil) ⇒ Object
Copies the given version as the actual version and sets its data as the sheet content.
-
#set_version_attributes(sheet_uri, attributes = nil) ⇒ Object
Modifies the attributes of the given content version.
Constructor Details
Class Method Details
.get_version_list(sheet_uri, query = nil) ⇒ Object
#get_version_list convenience self-instantiating shortcut
34 35 36 37 |
# File 'lib/uu/os/content/change_log.rb', line 34 def self.get_version_list(sheet_uri, query = nil) session = UU::OS::Security::Session.current_session self.new(session).get_version_list(sheet_uri, query) end |
.restore_change(sheet_uri, parameters = nil) ⇒ Object
#restore_change convenience self-instantiating shortcut
97 98 99 100 |
# File 'lib/uu/os/content/change_log.rb', line 97 def self.restore_change(sheet_uri, parameters = nil) session = UU::OS::Security::Session.current_session self.new(session).restore_change(sheet_uri, parameters) end |
.restore_version(sheet_uri, parameters = nil) ⇒ Object
#restore_version convenience self-instantiating shortcut
77 78 79 80 |
# File 'lib/uu/os/content/change_log.rb', line 77 def self.restore_version(sheet_uri, parameters = nil) session = UU::OS::Security::Session.current_session self.new(session).restore_version(sheet_uri, parameters) end |
.set_version_attributes(sheet_uri, attributes = nil) ⇒ Object
#set_version_attributes convenience self-instantiating shortcut
57 58 59 60 |
# File 'lib/uu/os/content/change_log.rb', line 57 def self.set_version_attributes(sheet_uri, attributes = nil) session = UU::OS::Security::Session.current_session self.new(session).set_version_attributes(sheet_uri, attributes) end |
Instance Method Details
#get_version_list(sheet_uri, query = nil) ⇒ Array<Hash>
Returns the list with objects containing the attributes of the sheet changes.
29 30 31 |
# File 'lib/uu/os/content/change_log.rb', line 29 def get_version_list(sheet_uri, query = nil) transform(@cmd.invoke("ChangeLog/getVersionList", sheet_uri, prepare_params(query))) end |
#restore_change(sheet_uri, parameters = nil) ⇒ Object
Copies the version data of the given component and sets is as the actual component data.
91 92 93 94 |
# File 'lib/uu/os/content/change_log.rb', line 91 def restore_change(sheet_uri, parameters = nil) @cmd.invoke("ChangeLog/restoreChange", sheet_uri, prepare_params(parameters)) return nil end |
#restore_version(sheet_uri, parameters = nil) ⇒ Object
Copies the given version as the actual version and sets its data as the sheet content.
71 72 73 74 |
# File 'lib/uu/os/content/change_log.rb', line 71 def restore_version(sheet_uri, parameters = nil) @cmd.invoke("ChangeLog/restoreVersion", sheet_uri, prepare_params(parameters)) return nil end |
#set_version_attributes(sheet_uri, attributes = nil) ⇒ Object
Modifies the attributes of the given content version.
51 52 53 54 |
# File 'lib/uu/os/content/change_log.rb', line 51 def set_version_attributes(sheet_uri, attributes = nil) @cmd.invoke("ChangeLog/setVersionAttributes", sheet_uri, prepare_params(attributes)) return nil end |