OLD | NEW |
1 package com.google.enterprise.adaptor.sharepoint; | 1 package com.google.enterprise.adaptor.sharepoint; |
2 | 2 |
3 import com.google.enterprise.adaptor.Acl; | 3 import com.google.enterprise.adaptor.Acl; |
4 import static org.junit.Assert.*; | 4 import static org.junit.Assert.*; |
5 | 5 |
6 | 6 |
7 import com.google.enterprise.adaptor.Config; | 7 import com.google.enterprise.adaptor.Config; |
8 import com.google.enterprise.adaptor.DocId; | 8 import com.google.enterprise.adaptor.DocId; |
9 import com.google.enterprise.adaptor.GroupPrincipal; | 9 import com.google.enterprise.adaptor.GroupPrincipal; |
10 | 10 |
11 import com.google.enterprise.adaptor.sharepoint.SharePointUserProfileAdaptor.Use
rProfileServiceClient; | 11 import com.google.enterprise.adaptor.sharepoint.SharePointUserProfileAdaptor.Use
rProfileServiceClient; |
12 import com.google.enterprise.adaptor.sharepoint.SharePointUserProfileAdaptor.Use
rProfileServiceFactory; | 12 import com.google.enterprise.adaptor.sharepoint.SharePointUserProfileAdaptor.Use
rProfileServiceFactory; |
13 import com.google.enterprise.adaptor.sharepoint.SharePointUserProfileAdaptor.Use
rProfileServiceWS; | 13 import com.google.enterprise.adaptor.sharepoint.SharePointUserProfileAdaptor.Use
rProfileServiceWS; |
14 import com.microsoft.schemas.sharepoint.soap.Authentication.AuthenticationMode; | 14 import com.microsoft.schemas.sharepoint.soap.authentication.AuthenticationMode; |
15 import com.microsoft.schemas.sharepoint.soap.Authentication.AuthenticationSoap; | 15 import com.microsoft.schemas.sharepoint.soap.authentication.AuthenticationSoap; |
16 import com.microsoft.schemas.sharepoint.soap.Authentication.LoginResult; | 16 import com.microsoft.schemas.sharepoint.soap.authentication.LoginResult; |
17 | 17 |
18 import com.microsoft.webservices.sharepointportalserver.userprofilechangeservice
.ArrayOfUserProfileChangeData; | 18 import com.microsoft.webservices.sharepointportalserver.userprofilechangeservice
.ArrayOfUserProfileChangeData; |
19 import com.microsoft.webservices.sharepointportalserver.userprofilechangeservice
.UserProfileChangeData; | 19 import com.microsoft.webservices.sharepointportalserver.userprofilechangeservice
.UserProfileChangeData; |
20 import com.microsoft.webservices.sharepointportalserver.userprofilechangeservice
.UserProfileChangeDataContainer; | 20 import com.microsoft.webservices.sharepointportalserver.userprofilechangeservice
.UserProfileChangeDataContainer; |
21 import com.microsoft.webservices.sharepointportalserver.userprofilechangeservice
.UserProfileChangeQuery; | 21 import com.microsoft.webservices.sharepointportalserver.userprofilechangeservice
.UserProfileChangeQuery; |
22 import com.microsoft.webservices.sharepointportalserver.userprofileservice.Array
OfContactData; | 22 import com.microsoft.webservices.sharepointportalserver.userprofileservice.Array
OfContactData; |
23 import com.microsoft.webservices.sharepointportalserver.userprofileservice.Array
OfPropertyData; | 23 import com.microsoft.webservices.sharepointportalserver.userprofileservice.Array
OfPropertyData; |
24 import com.microsoft.webservices.sharepointportalserver.userprofileservice.Array
OfValueData; | 24 import com.microsoft.webservices.sharepointportalserver.userprofileservice.Array
OfValueData; |
25 import com.microsoft.webservices.sharepointportalserver.userprofileservice.Conta
ctData; | 25 import com.microsoft.webservices.sharepointportalserver.userprofileservice.Conta
ctData; |
26 import com.microsoft.webservices.sharepointportalserver.userprofileservice.GetUs
erProfileByIndexResult; | 26 import com.microsoft.webservices.sharepointportalserver.userprofileservice.GetUs
erProfileByIndexResult; |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 private static class MockUserProfileServiceFactoryImpl | 576 private static class MockUserProfileServiceFactoryImpl |
577 implements UserProfileServiceFactory { | 577 implements UserProfileServiceFactory { |
578 MockUserProfileServiceWS proxy; | 578 MockUserProfileServiceWS proxy; |
579 | 579 |
580 public MockUserProfileServiceFactoryImpl(String changeTokenOnRepository) { | 580 public MockUserProfileServiceFactoryImpl(String changeTokenOnRepository) { |
581 proxy = | 581 proxy = |
582 new MockUserProfileServiceWS(changeTokenOnRepository); | 582 new MockUserProfileServiceWS(changeTokenOnRepository); |
583 } | 583 } |
584 @Override | 584 @Override |
585 public UserProfileServiceWS newUserProfileService(String endpoint, | 585 public UserProfileServiceWS newUserProfileService(String endpoint, |
586 String endpointChangeService) { | 586 String endpointChangeService, List<String> cookies) { |
587 return proxy; | 587 return proxy; |
588 } | 588 } |
589 | 589 |
590 public void addUserProfileToCollection (int index, int nextIndex, | 590 public void addUserProfileToCollection (int index, int nextIndex, |
591 String userAccountName, ArrayOfPropertyData profileProperties, | 591 String userAccountName, ArrayOfPropertyData profileProperties, |
592 ArrayOfContactData colleagues) { | 592 ArrayOfContactData colleagues) { |
593 proxy.addUserProfileToCollection(index, nextIndex, | 593 proxy.addUserProfileToCollection(index, nextIndex, |
594 userAccountName, profileProperties, colleagues); | 594 userAccountName, profileProperties, colleagues); |
595 } | 595 } |
596 | 596 |
(...skipping 12 matching lines...) Expand all Loading... |
609 public LoginResult login(String string, String string1) { | 609 public LoginResult login(String string, String string1) { |
610 throw new UnsupportedOperationException(); | 610 throw new UnsupportedOperationException(); |
611 } | 611 } |
612 | 612 |
613 @Override | 613 @Override |
614 public AuthenticationMode mode() { | 614 public AuthenticationMode mode() { |
615 return AuthenticationMode.WINDOWS; | 615 return AuthenticationMode.WINDOWS; |
616 }···· | 616 }···· |
617 } | 617 } |
618 } | 618 } |
OLD | NEW |