Sha256: 36e3fd239edc823101f9f57b4856346e208f4bdd166f9f59bbe72166c9724daa
Contents?: true
Size: 708 Bytes
Versions: 54
Compression:
Stored size: 708 Bytes
Contents
module CMIS class Policy < Object attr_reader :policy_text def initialize(raw, repository) super cmis_properties %w( cmis:policyText ) end def apply_to(object, opts = {}) server.execute!({ cmisaction: 'applyPolicy', repositoryId: repository_id, policyId: cmis_object_id, objectId: object.cmis_object_id }, opts) end def remove_from(object, opts = {}) server.execute!({ cmisaction: 'removePolicy', repositoryId: repository_id, policyId: cmis_object_id, objectId: object.cmis_object_id }, opts) end end end
Version data entries
54 entries across 54 versions & 1 rubygems