Example #1
0
        public virtual IdentityLinkEntity addIdentityLink(string userId, string groupId)
        {
            IdentityLinkEntity identityLinkEntity = IdentityLinkEntity.newIdentityLink();

            IdentityLinks.Add(identityLinkEntity);
            identityLinkEntity.ProcessDef = this;
            identityLinkEntity.UserId     = userId;
            identityLinkEntity.GroupId    = groupId;
            identityLinkEntity.Type       = IdentityLinkType.CANDIDATE;
            identityLinkEntity.TenantId   = TenantId;
            identityLinkEntity.insert();
            return(identityLinkEntity);
        }
        public virtual IdentityLinkEntity AddIdentityLink(string userId, string groupId)
        {
            IdentityLinkEntity identityLinkEntity = IdentityLinkEntity.NewIdentityLink();

            IdentityLinks.Add(identityLinkEntity);
            identityLinkEntity.ProcessDef = (this);
            identityLinkEntity.UserId     = userId;
            identityLinkEntity.GroupId    = groupId;
            identityLinkEntity.Type       = IdentityLinkType.Candidate;
            identityLinkEntity.TenantId   = TenantId;
            identityLinkEntity.Insert();
            return(identityLinkEntity);
        }