Exemple #1
0
 public PrivateCommunityClient(HeldinConfig config)
     : base(config)
 {
     CommunityMapper = new CommunityPersonMapper();
     ChangesMapper   = new PrivateChangesMapper();
     CheckCanUseCommunityMethods();
 }
Exemple #2
0
        public BaseClient(HeldinConfig config)
        {
            this.config           = config;
            serviceHeaders        = InitServiceHeaders();
            clientHeader          = InitClientHeader();
            protocolVersionHeader = PROTOCOL_VERSION;
            userIdHeader          = config.UserId;
            issueHeader           = null;
            webService            = FolkClient.WebService(config.Host, config.Secure);
            var myPrivileges = GetMyPrivileges();

            canUseCommunityMethods = myPrivileges.Contains(CAN_USE_COMMUNITY_METHODS);
            CheckPrivileges(myPrivileges);
        }
Exemple #3
0
 public HeldinConfig NoSubSystemCode()
 {
     return(HeldinConfig.Create(host, secure, xRoadInstancePrefix + envSuffix + '/'
                                + memberClass + '/' + memberCodeValue));
 }
Exemple #4
0
 public PublicCommunityClient(HeldinConfig config)
     : base(config)
 {
     ChangesMapper = new PublicChangesMapper();
     CheckCanGetPublicChanges();
 }
Exemple #5
0
 public static PublicCommunityClient PublicCommunity(HeldinConfig config)
 {
     return(new PublicCommunityClient(config));
 }
Exemple #6
0
 public static PrivateCommunityClient PrivateCommunity(HeldinConfig config)
 {
     return(new PrivateCommunityClient(config));
 }
Exemple #7
0
 public static PersonMediumClient PersonMedium(HeldinConfig config)
 {
     return(new PersonMediumClient(config));
 }
Exemple #8
0
 public static PersonSmallClient PersonSmall(HeldinConfig config)
 {
     return(new PersonSmallClient(config));
 }
 protected PrivilegesSmallClient(HeldinConfig config)
     : base(config)
 {
 }
 public PersonSmallClient(HeldinConfig config)
     : base(config)
 {
     PersonMapper = new PersonSmallMapper();
 }
Exemple #11
0
 protected PrivilegesMediumClient(HeldinConfig config)
     : base(config)
 {
 }
Exemple #12
0
 public PersonMediumClient(HeldinConfig config)
     : base(config)
 {
     PersonMapper = new PersonMediumMapper();
 }