Exemplo n.º 1
0
 public getRepositoryInfoResponse GetRepositoryInfo(getRepositoryInfoRequest request)
 {
     var repository = new Kooboo.CMS.Content.Models.Repository(request.repositoryId).AsActual();
     if (repository != null)
     {
         var repositoryInfo = ToRepositoryInfo(repository);
         return new getRepositoryInfoResponse(repositoryInfo);
     }
     else
     {
         throw new FaultException<cmisFaultType>(ModelHelper.CreateFault(enumServiceException.objectNotFound));
     }
 }
Exemplo n.º 2
0
 public getRepositoryInfoResponse GetRepositoryInfo(getRepositoryInfoRequest request)
 {
     var site = ModelHelper.GetSite(request.repositoryId);
     if (site != null)
     {
         var repositoryInfo = ToRepositoryInfo(site);
         return new getRepositoryInfoResponse(repositoryInfo);
     }
     else
     {
         throw new FaultException<cmisFaultType>(ModelHelper.CreateFault(enumServiceException.objectNotFound));
     }
 }