Exemplo n.º 1
0
 internal Attachments(IListDataService listDataService, IListItemDataService listItemDataService, IAttachmentsService attachmentsService, ICacheService cacheService)
 {
     this.listDataService     = listDataService;
     this.listItemDataService = listItemDataService;
     this.attachmentsService  = attachmentsService;
     this.cacheService        = cacheService;
 }
 public SPListService(ICredentialsManager credentials, IListDataService listDataService, IListItemService listItemService, IListItemDataService listItemDataService)
 {
     this.credentials         = credentials;
     this.listDataService     = listDataService;
     this.listItemDataService = listItemDataService;
     this.listItemService     = listItemService;
 }
        public static Guid GetItemUniqueId(this IListItemDataService listItemDataService, string token, Guid listId)
        {
            if (string.IsNullOrEmpty(token))
            {
                return(Guid.Empty);
            }

            ItemBase listItem;

            // Try get item by incremental id
            int lookupId;

            if (int.TryParse(token, out lookupId) &&
                (listItem = listItemDataService.Get(lookupId, listId)) != null)
            {
                return(listItem.UniqueId);
            }

            // Try get item by contentKey
            if ((listItem = listItemDataService.Get(token, listId)) != null)
            {
                return(listItem.UniqueId);
            }

            return(Guid.Empty);
        }
 internal SharePointUrls(IListUrls listUrls, IListItemUrls listItemUrls, ILibraryUrls libraryUrls, IDocumentUrls documentUrls, IListDataService listDataService, IListItemDataService listItemDataService)
 {
     this.listUrls            = listUrls;
     this.listItemUrls        = listItemUrls;
     this.libraryUrls         = libraryUrls;
     this.documentUrls        = documentUrls;
     this.listDataService     = listDataService;
     this.listItemDataService = listItemDataService;
 }
Exemplo n.º 5
0
 public SPFolderService(ICredentialsManager credentials, IListItemDataService listItemDataService)
 {
     this.credentials         = credentials;
     this.listItemDataService = listItemDataService;
 }