Class: CmisServer::RepositoryService
- Inherits:
-
Object
- Object
- CmisServer::RepositoryService
- Defined in:
- app/services/cmis_server/repository_service.rb
Instance Method Summary collapse
- #create_type(type) ⇒ Object
- #delete_type(type) ⇒ Object
- #get_repositories ⇒ Object
- #get_repository_info ⇒ Object
- #get_type_children ⇒ Object
- #get_type_definition(type_id) ⇒ Object
- #get_type_descendants ⇒ Object
-
#initialize(repository = nil) ⇒ RepositoryService
constructor
A new instance of RepositoryService.
- #update_type(type) ⇒ Object
Constructor Details
#initialize(repository = nil) ⇒ RepositoryService
Returns a new instance of RepositoryService.
4 5 6 |
# File 'app/services/cmis_server/repository_service.rb', line 4 def initialize(repository=nil) @repository=CmisServer::Repository.find(repository) end |
Instance Method Details
#create_type(type) ⇒ Object
30 31 32 |
# File 'app/services/cmis_server/repository_service.rb', line 30 def create_type(type) raise CmisServer::NotSupported.new("create_type not implemented") end |
#delete_type(type) ⇒ Object
38 39 40 |
# File 'app/services/cmis_server/repository_service.rb', line 38 def delete_type(type) raise CmisServer::NotSupported.new("delete_type not implemented") end |
#get_repositories ⇒ Object
8 9 10 |
# File 'app/services/cmis_server/repository_service.rb', line 8 def get_repositories raise CmisServer::NotSupported.new("get_repositories not implemented") end |
#get_repository_info ⇒ Object
12 13 14 |
# File 'app/services/cmis_server/repository_service.rb', line 12 def get_repository_info @repository.infos end |
#get_type_children ⇒ Object
16 17 18 |
# File 'app/services/cmis_server/repository_service.rb', line 16 def get_type_children raise CmisServer::NotSupported.new("get_type_children not implemented") end |
#get_type_definition(type_id) ⇒ Object
24 25 26 27 28 |
# File 'app/services/cmis_server/repository_service.rb', line 24 def get_type_definition(type_id) type = CmisServer::TypeRegistry.get_type(type_id) raise CmisServer::ObjectNotFound.new("Type '#{type_id}' not found") unless type type end |
#get_type_descendants ⇒ Object
20 21 22 |
# File 'app/services/cmis_server/repository_service.rb', line 20 def get_type_descendants raise CmisServer::NotSupported.new("get_type_descendants not implemented") end |
#update_type(type) ⇒ Object
34 35 36 |
# File 'app/services/cmis_server/repository_service.rb', line 34 def update_type(type) raise CmisServer::NotSupported.new("update_type not implemented") end |