Documentation ¶
Index ¶
- Variables
- func NewGroup(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
- func NewGroupInherit(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
- func NewOrganization(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
- func NewOrganizationUser(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
- func NewOrganizationUserGroup(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
- func NewSession(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
- func NewUser(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
- func NewUserEmail(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
- func NewUserGroup(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
- type DummyStruct
- type Group
- func (t *Group) Delete() error
- func (t *Group) ExternalID() string
- func (t *Group) ExternalModule() string
- func (t *Group) GetID() string
- func (t *Group) ID() string
- func (t *Group) IncludeInherits() error
- func (t *Group) InheritIds() []string
- func (t *Group) Inherits() []*Group
- func (t *Group) Init(wk libdomain.WorkflowInterface, pb *pb.Group)
- func (t *Group) JSON() ([]byte, error)
- func (t *Group) Map() map[string]interface{}
- func (t *Group) Name() string
- func (t *Group) Pb() *pb.Group
- func (t *Group) TenantID() string
- func (t *Group) Update(r *pb.UpdateGroupData) error
- type GroupCollection
- func (c *GroupCollection) Aggregate() libdomain.AggregateInterface
- func (d *GroupCollection) Delete() error
- func (c *GroupCollection) GetByID(id string) *Group
- func (c *GroupCollection) GetKeys() []string
- func (t *GroupCollection) IncludeInherits() error
- func (t *GroupCollection) InheritsByGroupID() (map[string]*GroupCollection, error)
- func (d *GroupCollection) Map() []map[string]interface{}
- func (c *GroupCollection) Rehydrate(pbGroups []*pb.Group)
- func (c *GroupCollection) Slice() []*Group
- func (c *GroupCollection) SlicePb() []*pb.Group
- func (d *GroupCollection) Update(r *pb.UpdateGroupData) error
- type GroupFactory
- type GroupFactoryInterface
- type GroupInherit
- func (t *GroupInherit) Aggregate() *Group
- func (t *GroupInherit) AggregateID() string
- func (t *GroupInherit) GetID() string
- func (t *GroupInherit) Inherit() *Group
- func (t *GroupInherit) InheritID() string
- func (t *GroupInherit) Init(wk libdomain.WorkflowInterface, pb *pb.GroupInherit)
- func (t *GroupInherit) JSON() ([]byte, error)
- func (t *GroupInherit) Map() map[string]interface{}
- func (t *GroupInherit) Pb() *pb.GroupInherit
- type GroupInheritCollection
- func (c *GroupInheritCollection) Aggregate() libdomain.AggregateInterface
- func (c *GroupInheritCollection) GetByID(id string) *GroupInherit
- func (c *GroupInheritCollection) GetKeys() []string
- func (c *GroupInheritCollection) Rehydrate(pbGroupInherits []*pb.GroupInherit)
- func (c *GroupInheritCollection) Slice() []*GroupInherit
- func (c *GroupInheritCollection) SlicePb() []*pb.GroupInherit
- type GroupInternalLibrary
- type Organization
- func (t *Organization) Delete() error
- func (t *Organization) ExternalID() string
- func (t *Organization) ExternalModule() string
- func (t *Organization) GetID() string
- func (t *Organization) ID() string
- func (t *Organization) IncludeUsers() error
- func (t *Organization) Init(wk libdomain.WorkflowInterface, pb *pb.Organization)
- func (t *Organization) JSON() ([]byte, error)
- func (t *Organization) Map() map[string]interface{}
- func (t *Organization) Name() string
- func (a *Organization) OrganizationCreateTenant(command *pb.OrganizationOrganizationCreateTenantCommand) (*pb.OrganizationOrganizationCreateTenantResults, error)
- func (t *Organization) Parent() *Organization
- func (t *Organization) ParentID() string
- func (t *Organization) Pb() *pb.Organization
- func (t *Organization) TenantID() string
- func (t *Organization) Update(r *pb.UpdateOrganizationData) error
- func (t *Organization) Users() []*OrganizationUser
- type OrganizationCollection
- func (c *OrganizationCollection) Aggregate() libdomain.AggregateInterface
- func (d *OrganizationCollection) Delete() error
- func (c *OrganizationCollection) GetByID(id string) *Organization
- func (c *OrganizationCollection) GetKeys() []string
- func (t *OrganizationCollection) IncludeUsers() error
- func (d *OrganizationCollection) Map() []map[string]interface{}
- func (a *OrganizationCollection) OrganizationCreateTenant(command *pb.OrganizationOrganizationCreateTenantCommand) (map[string]*pb.OrganizationOrganizationCreateTenantResults, error)
- func (t *OrganizationCollection) ParentsByOrganizationID() (map[string]*Organization, error)
- func (c *OrganizationCollection) Rehydrate(pbOrganizations []*pb.Organization)
- func (c *OrganizationCollection) Slice() []*Organization
- func (c *OrganizationCollection) SlicePb() []*pb.Organization
- func (d *OrganizationCollection) Update(r *pb.UpdateOrganizationData) error
- func (t *OrganizationCollection) Users() (map[string]*OrganizationUserCollection, error)
- type OrganizationFactory
- type OrganizationFactoryInterface
- type OrganizationInternalLibrary
- type OrganizationOrganizationCreateTenantResults
- type OrganizationUser
- func (t *OrganizationUser) Aggregate() *Organization
- func (t *OrganizationUser) AggregateID() string
- func (t *OrganizationUser) ExternalID() string
- func (t *OrganizationUser) ExternalModule() string
- func (t *OrganizationUser) GetID() string
- func (t *OrganizationUser) ID() string
- func (t *OrganizationUser) Init(wk libdomain.WorkflowInterface, pb *pb.OrganizationUser)
- func (t *OrganizationUser) JSON() ([]byte, error)
- func (t *OrganizationUser) Map() map[string]interface{}
- func (t *OrganizationUser) Pb() *pb.OrganizationUser
- func (t *OrganizationUser) TenantID() string
- func (t *OrganizationUser) User() *User
- func (t *OrganizationUser) UserID() string
- type OrganizationUserCollection
- func (c *OrganizationUserCollection) Aggregate() libdomain.AggregateInterface
- func (c *OrganizationUserCollection) GetByID(id string) *OrganizationUser
- func (c *OrganizationUserCollection) GetKeys() []string
- func (d *OrganizationUserCollection) Map() []map[string]interface{}
- func (c *OrganizationUserCollection) Rehydrate(pbOrganizationUsers []*pb.OrganizationUser)
- func (c *OrganizationUserCollection) Slice() []*OrganizationUser
- func (c *OrganizationUserCollection) SlicePb() []*pb.OrganizationUser
- type OrganizationUserGroup
- func (t *OrganizationUserGroup) Aggregate() *Organization
- func (t *OrganizationUserGroup) AggregateID() string
- func (t *OrganizationUserGroup) GetID() string
- func (t *OrganizationUserGroup) Group() *Group
- func (t *OrganizationUserGroup) GroupID() string
- func (t *OrganizationUserGroup) Init(wk libdomain.WorkflowInterface, pb *pb.OrganizationUserGroup)
- func (t *OrganizationUserGroup) JSON() ([]byte, error)
- func (t *OrganizationUserGroup) Map() map[string]interface{}
- func (t *OrganizationUserGroup) OrganizationUser() *OrganizationUser
- func (t *OrganizationUserGroup) OrganizationUserID() string
- func (t *OrganizationUserGroup) Pb() *pb.OrganizationUserGroup
- type OrganizationUserGroupCollection
- func (c *OrganizationUserGroupCollection) Aggregate() libdomain.AggregateInterface
- func (c *OrganizationUserGroupCollection) GetByID(id string) *OrganizationUserGroup
- func (c *OrganizationUserGroupCollection) GetKeys() []string
- func (c *OrganizationUserGroupCollection) Rehydrate(pbOrganizationUserGroups []*pb.OrganizationUserGroup)
- func (c *OrganizationUserGroupCollection) Slice() []*OrganizationUserGroup
- func (c *OrganizationUserGroupCollection) SlicePb() []*pb.OrganizationUserGroup
- type PbGroup
- type PbGroupInherit
- type PbOrganization
- type PbOrganizationUser
- type PbOrganizationUserGroup
- type PbSession
- type PbTenant
- type PbUser
- type PbUserEmail
- type PbUserGroup
- type Session
- func (t *Session) Delete() error
- func (t *Session) ExternalID() string
- func (t *Session) ExternalModule() string
- func (t *Session) GetID() string
- func (t *Session) ID() string
- func (t *Session) Init(wk libdomain.WorkflowInterface, pb *pb.Session)
- func (t *Session) JSON() ([]byte, error)
- func (t *Session) Map() map[string]interface{}
- func (t *Session) Pb() *pb.Session
- func (t *Session) TenantID() string
- func (t *Session) Token() string
- func (t *Session) User() *User
- func (t *Session) UserID() string
- type SessionCollection
- func (c *SessionCollection) Aggregate() libdomain.AggregateInterface
- func (d *SessionCollection) Delete() error
- func (c *SessionCollection) GetByID(id string) *Session
- func (c *SessionCollection) GetKeys() []string
- func (d *SessionCollection) Map() []map[string]interface{}
- func (c *SessionCollection) Rehydrate(pbSessions []*pb.Session)
- func (c *SessionCollection) Slice() []*Session
- func (c *SessionCollection) SlicePb() []*pb.Session
- func (t *SessionCollection) UsersBySessionID() (map[string]*User, error)
- type SessionFactory
- type SessionFactoryInterface
- type SessionInternalLibrary
- type Tenant
- type TestClientInterface
- type User
- func (a *User) ComputeUserGroups(command *pb.UserComputeUserGroupsCommand) (*pb.UserComputeUserGroupsResults, error)
- func (t *User) Delete() error
- func (t *User) Emails() []*UserEmail
- func (t *User) ExternalID() string
- func (t *User) ExternalModule() string
- func (t *User) GetID() string
- func (t *User) GroupIds() []string
- func (t *User) Groups() []*Group
- func (t *User) ID() string
- func (t *User) IncludeEmails() error
- func (t *User) IncludeGroups() error
- func (t *User) Init(wk libdomain.WorkflowInterface, pb *pb.User)
- func (t *User) JSON() ([]byte, error)
- func (t *User) Map() map[string]interface{}
- func (t *User) Name() string
- func (t *User) Parent() *User
- func (t *User) ParentID() string
- func (t *User) Password() string
- func (t *User) Pb() *pb.User
- func (t *User) TenantID() string
- func (t *User) Update(r *pb.UpdateUserData) error
- type UserCollection
- func (c *UserCollection) Aggregate() libdomain.AggregateInterface
- func (a *UserCollection) ComputeUserGroups(command *pb.UserComputeUserGroupsCommand) (map[string]*pb.UserComputeUserGroupsResults, error)
- func (d *UserCollection) Delete() error
- func (t *UserCollection) Emails() (map[string]*UserEmailCollection, error)
- func (c *UserCollection) GetByID(id string) *User
- func (c *UserCollection) GetKeys() []string
- func (t *UserCollection) GroupsByUserID() (map[string]*GroupCollection, error)
- func (t *UserCollection) IncludeEmails() error
- func (t *UserCollection) IncludeGroups() error
- func (d *UserCollection) Map() []map[string]interface{}
- func (t *UserCollection) ParentsByUserID() (map[string]*User, error)
- func (c *UserCollection) Rehydrate(pbUsers []*pb.User)
- func (c *UserCollection) Slice() []*User
- func (c *UserCollection) SlicePb() []*pb.User
- func (d *UserCollection) Update(r *pb.UpdateUserData) error
- type UserComputeUserGroupsResults
- type UserDirectConnectToTenantResults
- type UserEmail
- func (t *UserEmail) Aggregate() *User
- func (t *UserEmail) AggregateID() string
- func (t *UserEmail) Email() string
- func (t *UserEmail) EmailConfirmationToken() string
- func (t *UserEmail) EmailConfirmed() bool
- func (t *UserEmail) ExternalID() string
- func (t *UserEmail) ExternalModule() string
- func (t *UserEmail) GetID() string
- func (t *UserEmail) ID() string
- func (t *UserEmail) Init(wk libdomain.WorkflowInterface, pb *pb.UserEmail)
- func (t *UserEmail) JSON() ([]byte, error)
- func (t *UserEmail) Map() map[string]interface{}
- func (t *UserEmail) Pb() *pb.UserEmail
- func (t *UserEmail) TenantID() string
- type UserEmailCollection
- func (c *UserEmailCollection) Aggregate() libdomain.AggregateInterface
- func (c *UserEmailCollection) GetByID(id string) *UserEmail
- func (c *UserEmailCollection) GetKeys() []string
- func (d *UserEmailCollection) Map() []map[string]interface{}
- func (c *UserEmailCollection) Rehydrate(pbUserEmails []*pb.UserEmail)
- func (c *UserEmailCollection) Slice() []*UserEmail
- func (c *UserEmailCollection) SlicePb() []*pb.UserEmail
- type UserEmailConfirmationResults
- type UserEmailResetConfirmationTokenResults
- type UserFactory
- func (d *UserFactory) Create(users []*pb.CreateUserCommand, parentAggregate *libdomain.AggregateDefinition) (*UserCollection, error)
- func (a *UserFactory) DirectConnectToTenant(command *pb.UserDirectConnectToTenantCommand) (*pb.UserDirectConnectToTenantResults, error)
- func (a *UserFactory) EmailConfirmation(command *pb.UserEmailConfirmationCommand) (*pb.UserEmailConfirmationResults, error)
- func (a *UserFactory) EmailResetConfirmationToken(command *pb.UserEmailResetConfirmationTokenCommand) (*pb.UserEmailResetConfirmationTokenResults, error)
- func (a *UserFactory) GetUserFromToken(command *pb.UserGetUserFromTokenQuery) (*pb.UserGetUserFromTokenResults, error)
- func (a *UserFactory) LoginUser(command *pb.UserLoginUserCommand) (*pb.UserLoginUserResults, error)
- func (d *UserFactory) New() *User
- func (d *UserFactory) NewCollection(users []*User) *UserCollection
- func (a *UserFactory) PasswordChange(command *pb.UserPasswordChangeCommand) (*pb.UserPasswordChangeResults, error)
- func (a *UserFactory) PasswordReset(command *pb.UserPasswordResetCommand) (*pb.UserPasswordResetResults, error)
- func (a *UserFactory) RegisterUser(command *pb.UserRegisterUserCommand) (*pb.UserRegisterUserResults, error)
- func (a *UserFactory) UserCreateOrganization(command *pb.UserUserCreateOrganizationCommand) (*pb.UserUserCreateOrganizationResults, error)
- type UserFactoryInterface
- type UserGetUserFromTokenResults
- type UserGroup
- func (t *UserGroup) Aggregate() *User
- func (t *UserGroup) AggregateID() string
- func (t *UserGroup) GetID() string
- func (t *UserGroup) Group() *Group
- func (t *UserGroup) GroupID() string
- func (t *UserGroup) Init(wk libdomain.WorkflowInterface, pb *pb.UserGroup)
- func (t *UserGroup) JSON() ([]byte, error)
- func (t *UserGroup) Map() map[string]interface{}
- func (t *UserGroup) Pb() *pb.UserGroup
- type UserGroupCollection
- func (c *UserGroupCollection) Aggregate() libdomain.AggregateInterface
- func (c *UserGroupCollection) GetByID(id string) *UserGroup
- func (c *UserGroupCollection) GetKeys() []string
- func (c *UserGroupCollection) Rehydrate(pbUserGroups []*pb.UserGroup)
- func (c *UserGroupCollection) Slice() []*UserGroup
- func (c *UserGroupCollection) SlicePb() []*pb.UserGroup
- type UserInternalLibrary
- type UserLoginUserResults
- type UserPasswordChangeResults
- type UserPasswordResetResults
- type UserRegisterUserResults
- type UserUserCreateOrganizationResults
Constants ¶
This section is empty.
Variables ¶
var GroupAggregate *groupAggregate
GroupAggregate contain the definition of the group object.
*It is also used to generate the factory containing the main functions with the environnement.
var GroupEntity *groupEntity
var GroupInheritShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, groupInheritFrom *pb.GroupInherit, want *pb.GroupInherit, ) func(t *testing.T)
var GroupInheritValueObject *groupInheritValueObject
var GroupShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, groupFrom *pb.Group, want *pb.Group, ) func(t *testing.T)
var OrganizationAggregate *organizationAggregate
OrganizationAggregate contain the definition of the organization object.
*It is also used to generate the factory containing the main functions with the environnement.
var OrganizationEntity *organizationEntity
var OrganizationShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, organizationFrom *pb.Organization, want *pb.Organization, ) func(t *testing.T)
result := &organizationUserCollection{ Collection: records, } result.Collection.NewFactory = result.newFactory // OrganizationUserAggregate.PostNewCollection(result) return result }
type organizationUserCollection struct { *libdomain.Collection // organizationUserCollectionInterface }
func (c *organizationUserCollection) Slice() []*OrganizationUser { var organizationUsers []*OrganizationUser for _, record := range c.Collection.Slice() { organizationUsers = append(organizationUsers, record.(*OrganizationUser)) } return organizationUsers }
func (d *organizationUserCollection) newFactory() *libdomain.Factory { factory := newOrganizationUserFactory(d.Collection.Workflow) return factory.Factory }
func NewOrganizationUser(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface { return &OrganizationUser{ OrganizationUser: &pb.OrganizationUser{ Properties: &pb.OrganizationUserProperties{}, }, Workflow: wk, } }
var OrganizationUserEntity *organizationUserEntity
var OrganizationUserGroupShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, organizationUserGroupFrom *pb.OrganizationUserGroup, want *pb.OrganizationUserGroup, ) func(t *testing.T)
var OrganizationUserGroupValueObject *organizationUserGroupValueObject
var OrganizationUserShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, organizationUserFrom *pb.OrganizationUser, want *pb.OrganizationUser, ) func(t *testing.T)
var ResultsOrganizationOrganizationCreateTenantShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, results *pb.OrganizationOrganizationCreateTenantResults, want *pb.OrganizationOrganizationCreateTenantResults, ) func(t *testing.T)
var ResultsUserComputeUserGroupsShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, results *pb.UserComputeUserGroupsResults, want *pb.UserComputeUserGroupsResults, ) func(t *testing.T)
var ResultsUserDirectConnectToTenantShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, results *pb.UserDirectConnectToTenantResults, want *pb.UserDirectConnectToTenantResults, ) func(t *testing.T)
var ResultsUserEmailConfirmationShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, results *pb.UserEmailConfirmationResults, want *pb.UserEmailConfirmationResults, ) func(t *testing.T)
var ResultsUserEmailResetConfirmationTokenShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, results *pb.UserEmailResetConfirmationTokenResults, want *pb.UserEmailResetConfirmationTokenResults, ) func(t *testing.T)
var ResultsUserGetUserFromTokenShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, results *pb.UserGetUserFromTokenResults, want *pb.UserGetUserFromTokenResults, ) func(t *testing.T)
var ResultsUserLoginUserShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, results *pb.UserLoginUserResults, want *pb.UserLoginUserResults, ) func(t *testing.T)
var ResultsUserPasswordChangeShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, results *pb.UserPasswordChangeResults, want *pb.UserPasswordChangeResults, ) func(t *testing.T)
var ResultsUserPasswordResetShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, results *pb.UserPasswordResetResults, want *pb.UserPasswordResetResults, ) func(t *testing.T)
var ResultsUserRegisterUserShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, results *pb.UserRegisterUserResults, want *pb.UserRegisterUserResults, ) func(t *testing.T)
var ResultsUserUserCreateOrganizationShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, results *pb.UserUserCreateOrganizationResults, want *pb.UserUserCreateOrganizationResults, ) func(t *testing.T)
var SessionAggregate *sessionAggregate
SessionAggregate contain the definition of the session object.
*It is also used to generate the factory containing the main functions with the environnement.
var SessionEntity *sessionEntity
var SessionShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, sessionFrom *pb.Session, want *pb.Session, ) func(t *testing.T)
var TenantEntity = tenant.TenantEntity
var TenantShouldBe = tenant.TenantShouldBe
var UserAggregate *userAggregate
UserAggregate contain the definition of the user object.
*It is also used to generate the factory containing the main functions with the environnement.
var UserEmailEntity *userEmailEntity
var UserEmailShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, userEmailFrom *pb.UserEmail, want *pb.UserEmail, ) func(t *testing.T)
var UserEntity *userEntity
var UserGroupShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, userGroupFrom *pb.UserGroup, want *pb.UserGroup, ) func(t *testing.T)
var UserGroupValueObject *userGroupValueObject
var UserShouldBe func( t *testing.T, ctx context.Context, client TestClientInterface, tenantID string, checkEvents bool, userFrom *pb.User, want *pb.User, ) func(t *testing.T)
result := &userEmailCollection{ Collection: records, } result.Collection.NewFactory = result.newFactory // UserEmailAggregate.PostNewCollection(result) return result }
type userEmailCollection struct { *libdomain.Collection // userEmailCollectionInterface }
func (c *userEmailCollection) Slice() []*UserEmail { var userEmails []*UserEmail for _, record := range c.Collection.Slice() { userEmails = append(userEmails, record.(*UserEmail)) } return userEmails }
func (d *userEmailCollection) newFactory() *libdomain.Factory { factory := newUserEmailFactory(d.Collection.Workflow) return factory.Factory }
func NewUserEmail(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface { return &UserEmail{ UserEmail: &pb.UserEmail{ Properties: &pb.UserEmailProperties{}, }, Workflow: wk, } }
Functions ¶
func NewGroup ¶
func NewGroup(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
func NewGroupInherit ¶
func NewGroupInherit(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
func NewOrganization ¶
func NewOrganization(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
func NewOrganizationUser ¶
func NewOrganizationUser(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
func NewOrganizationUserGroup ¶
func NewOrganizationUserGroup(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
func NewSession ¶
func NewSession(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
func NewUser ¶
func NewUser(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
func NewUserEmail ¶
func NewUserEmail(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
func NewUserGroup ¶
func NewUserGroup(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
Types ¶
type DummyStruct ¶
type DummyStruct struct{}
type Group ¶
type Group struct { Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
Group is the main struct for operating a group object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*Group) ExternalID ¶
func (*Group) ExternalModule ¶
func (*Group) IncludeInherits ¶
func (*Group) InheritIds ¶
type GroupCollection ¶
type GroupCollection struct { //*libdomain.Collection // GroupCollectionInterface Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
GroupCollection is the main struct for operating a list group object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*GroupCollection) Aggregate ¶
func (c *GroupCollection) Aggregate() libdomain.AggregateInterface
func (*GroupCollection) Delete ¶
func (d *GroupCollection) Delete() error
Delete will delete all the groups in the collection.
func (*GroupCollection) GetByID ¶
func (c *GroupCollection) GetByID(id string) *Group
GetByID return the group in this collection, by id.
func (*GroupCollection) GetKeys ¶
func (c *GroupCollection) GetKeys() []string
GetByID return the group in this collection, by id.
func (*GroupCollection) IncludeInherits ¶
func (t *GroupCollection) IncludeInherits() error
func (*GroupCollection) InheritsByGroupID ¶
func (t *GroupCollection) InheritsByGroupID() (map[string]*GroupCollection, error)
InheritssByGroupID return the group behind InheritIds field, for each group in the collection, by id.
func (*GroupCollection) Map ¶
func (d *GroupCollection) Map() []map[string]interface{}
func (*GroupCollection) Rehydrate ¶
func (c *GroupCollection) Rehydrate(pbGroups []*pb.Group)
func (*GroupCollection) Slice ¶
func (c *GroupCollection) Slice() []*Group
GetSlice return all groups in this collection, as a slice.
func (*GroupCollection) SlicePb ¶
func (c *GroupCollection) SlicePb() []*pb.Group
GetSlice return all groups in this collection, as a slice.
func (*GroupCollection) Update ¶
func (d *GroupCollection) Update(r *pb.UpdateGroupData) error
Update will update all the groups in the collection with the specified data.
type GroupFactory ¶
type GroupFactory struct { *libdomain.Factory GroupFactoryInterface }
GroupFactory is the main struct for operating group objects, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*GroupFactory) Create ¶
func (d *GroupFactory) Create( groups []*pb.CreateGroupCommand, parentAggregate *libdomain.AggregateDefinition, ) (*GroupCollection, error)
Create create a new group from the factory, and return it.
func (*GroupFactory) New ¶
func (d *GroupFactory) New() *Group
New return a new instance of a group object.
func (*GroupFactory) NewCollection ¶
func (d *GroupFactory) NewCollection(groups []*Group) *GroupCollection
NewCollection return a new instance of a group collection object.
type GroupFactoryInterface ¶
type GroupFactoryInterface interface { }
type GroupInherit ¶
type GroupInherit struct { Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
GroupInherit is the main struct for operating a groupInherit object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*GroupInherit) Aggregate ¶
func (t *GroupInherit) Aggregate() *Group
func (*GroupInherit) AggregateID ¶
func (t *GroupInherit) AggregateID() string
func (*GroupInherit) GetID ¶
func (t *GroupInherit) GetID() string
func (*GroupInherit) Inherit ¶
func (t *GroupInherit) Inherit() *Group
func (*GroupInherit) InheritID ¶
func (t *GroupInherit) InheritID() string
func (*GroupInherit) Init ¶
func (t *GroupInherit) Init(wk libdomain.WorkflowInterface, pb *pb.GroupInherit)
func (*GroupInherit) JSON ¶
func (t *GroupInherit) JSON() ([]byte, error)
JSON is a function to return the groupInherit data in JSON format.
func (*GroupInherit) Map ¶
func (t *GroupInherit) Map() map[string]interface{}
Map is a function to return the groupInherit data in JSON format.
func (*GroupInherit) Pb ¶
func (t *GroupInherit) Pb() *pb.GroupInherit
SetID is a function to set the ID of the groupInherit.
type GroupInheritCollection ¶
type GroupInheritCollection struct { //*libdomain.Collection // GroupInheritCollectionInterface Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
GroupInheritCollection is the main struct for operating a list groupInherit object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*GroupInheritCollection) Aggregate ¶
func (c *GroupInheritCollection) Aggregate() libdomain.AggregateInterface
func (*GroupInheritCollection) GetByID ¶
func (c *GroupInheritCollection) GetByID(id string) *GroupInherit
GetByID return the groupInherit in this collection, by id.
func (*GroupInheritCollection) GetKeys ¶
func (c *GroupInheritCollection) GetKeys() []string
GetByID return the groupInherit in this collection, by id.
func (*GroupInheritCollection) Rehydrate ¶
func (c *GroupInheritCollection) Rehydrate(pbGroupInherits []*pb.GroupInherit)
func (*GroupInheritCollection) Slice ¶
func (c *GroupInheritCollection) Slice() []*GroupInherit
GetSlice return all groupInherits in this collection, as a slice.
func (*GroupInheritCollection) SlicePb ¶
func (c *GroupInheritCollection) SlicePb() []*pb.GroupInherit
GetSlice return all groupInherits in this collection, as a slice.
type GroupInternalLibrary ¶
type GroupInternalLibrary struct {
NewGroupInheritFactory func(libdomain.WorkflowInterface) *groupInheritFactory
}
type Organization ¶
type Organization struct { Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
Organization is the main struct for operating a organization object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*Organization) Delete ¶
func (t *Organization) Delete() error
Delete will delete the organization from the database.
func (*Organization) ExternalID ¶
func (t *Organization) ExternalID() string
func (*Organization) ExternalModule ¶
func (t *Organization) ExternalModule() string
func (*Organization) GetID ¶
func (t *Organization) GetID() string
func (*Organization) ID ¶
func (t *Organization) ID() string
SetID is a function to set the ID of the organization.
func (*Organization) IncludeUsers ¶
func (t *Organization) IncludeUsers() error
func (*Organization) Init ¶
func (t *Organization) Init(wk libdomain.WorkflowInterface, pb *pb.Organization)
func (*Organization) JSON ¶
func (t *Organization) JSON() ([]byte, error)
JSON is a function to return the organization data in JSON format.
func (*Organization) Map ¶
func (t *Organization) Map() map[string]interface{}
Map is a function to return the organization data in JSON format.
func (*Organization) Name ¶
func (t *Organization) Name() string
func (*Organization) OrganizationCreateTenant ¶
func (a *Organization) OrganizationCreateTenant(command *pb.OrganizationOrganizationCreateTenantCommand) (*pb.OrganizationOrganizationCreateTenantResults, error)
func (*Organization) Parent ¶
func (t *Organization) Parent() *Organization
func (*Organization) ParentID ¶
func (t *Organization) ParentID() string
func (*Organization) Pb ¶
func (t *Organization) Pb() *pb.Organization
SetID is a function to set the ID of the organization.
func (*Organization) TenantID ¶
func (t *Organization) TenantID() string
func (*Organization) Update ¶
func (t *Organization) Update(r *pb.UpdateOrganizationData) error
Delete will delete the organization from the database.
func (*Organization) Users ¶
func (t *Organization) Users() []*OrganizationUser
type OrganizationCollection ¶
type OrganizationCollection struct { //*libdomain.Collection // OrganizationCollectionInterface Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
OrganizationCollection is the main struct for operating a list organization object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*OrganizationCollection) Aggregate ¶
func (c *OrganizationCollection) Aggregate() libdomain.AggregateInterface
func (*OrganizationCollection) Delete ¶
func (d *OrganizationCollection) Delete() error
Delete will delete all the organizations in the collection.
func (*OrganizationCollection) GetByID ¶
func (c *OrganizationCollection) GetByID(id string) *Organization
GetByID return the organization in this collection, by id.
func (*OrganizationCollection) GetKeys ¶
func (c *OrganizationCollection) GetKeys() []string
GetByID return the organization in this collection, by id.
func (*OrganizationCollection) IncludeUsers ¶
func (t *OrganizationCollection) IncludeUsers() error
func (*OrganizationCollection) Map ¶
func (d *OrganizationCollection) Map() []map[string]interface{}
func (*OrganizationCollection) OrganizationCreateTenant ¶
func (a *OrganizationCollection) OrganizationCreateTenant(command *pb.OrganizationOrganizationCreateTenantCommand) (map[string]*pb.OrganizationOrganizationCreateTenantResults, error)
func (*OrganizationCollection) ParentsByOrganizationID ¶
func (t *OrganizationCollection) ParentsByOrganizationID() (map[string]*Organization, error)
ParentsByOrganizationID return the organization behind ParentID field, for each organization in the collection, by id.
func (*OrganizationCollection) Rehydrate ¶
func (c *OrganizationCollection) Rehydrate(pbOrganizations []*pb.Organization)
func (*OrganizationCollection) Slice ¶
func (c *OrganizationCollection) Slice() []*Organization
GetSlice return all organizations in this collection, as a slice.
func (*OrganizationCollection) SlicePb ¶
func (c *OrganizationCollection) SlicePb() []*pb.Organization
GetSlice return all organizations in this collection, as a slice.
func (*OrganizationCollection) Update ¶
func (d *OrganizationCollection) Update(r *pb.UpdateOrganizationData) error
Update will update all the organizations in the collection with the specified data.
func (*OrganizationCollection) Users ¶
func (t *OrganizationCollection) Users() (map[string]*OrganizationUserCollection, error)
UserssByOrganizationID return the organizationUser behind Users field, for each organization in the collection, by id.
type OrganizationFactory ¶
type OrganizationFactory struct { *libdomain.Factory OrganizationFactoryInterface }
OrganizationFactory is the main struct for operating organization objects, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*OrganizationFactory) Create ¶
func (d *OrganizationFactory) Create( organizations []*pb.CreateOrganizationCommand, parentAggregate *libdomain.AggregateDefinition, ) (*OrganizationCollection, error)
Create create a new organization from the factory, and return it.
func (*OrganizationFactory) New ¶
func (d *OrganizationFactory) New() *Organization
New return a new instance of a organization object.
func (*OrganizationFactory) NewCollection ¶
func (d *OrganizationFactory) NewCollection(organizations []*Organization) *OrganizationCollection
NewCollection return a new instance of a organization collection object.
type OrganizationFactoryInterface ¶
type OrganizationFactoryInterface interface { }
type OrganizationInternalLibrary ¶
type OrganizationInternalLibrary struct { NewOrganizationUserFactory func(libdomain.WorkflowInterface) *organizationUserFactory NewOrganizationUserGroupFactory func(libdomain.WorkflowInterface) *organizationUserGroupFactory }
type OrganizationOrganizationCreateTenantResults ¶
type OrganizationOrganizationCreateTenantResults struct {
Tenant *Tenant
}
OrganizationCreateTenant todo
type OrganizationUser ¶
type OrganizationUser struct { Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
OrganizationUser is the main struct for operating a organizationUser object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*OrganizationUser) Aggregate ¶
func (t *OrganizationUser) Aggregate() *Organization
func (*OrganizationUser) AggregateID ¶
func (t *OrganizationUser) AggregateID() string
func (*OrganizationUser) ExternalID ¶
func (t *OrganizationUser) ExternalID() string
func (*OrganizationUser) ExternalModule ¶
func (t *OrganizationUser) ExternalModule() string
func (*OrganizationUser) GetID ¶
func (t *OrganizationUser) GetID() string
func (*OrganizationUser) ID ¶
func (t *OrganizationUser) ID() string
SetID is a function to set the ID of the organizationUser.
func (*OrganizationUser) Init ¶
func (t *OrganizationUser) Init(wk libdomain.WorkflowInterface, pb *pb.OrganizationUser)
func (*OrganizationUser) JSON ¶
func (t *OrganizationUser) JSON() ([]byte, error)
JSON is a function to return the organizationUser data in JSON format.
func (*OrganizationUser) Map ¶
func (t *OrganizationUser) Map() map[string]interface{}
Map is a function to return the organizationUser data in JSON format.
func (*OrganizationUser) Pb ¶
func (t *OrganizationUser) Pb() *pb.OrganizationUser
SetID is a function to set the ID of the organizationUser.
func (*OrganizationUser) TenantID ¶
func (t *OrganizationUser) TenantID() string
func (*OrganizationUser) User ¶
func (t *OrganizationUser) User() *User
func (*OrganizationUser) UserID ¶
func (t *OrganizationUser) UserID() string
type OrganizationUserCollection ¶
type OrganizationUserCollection struct { //*libdomain.Collection // OrganizationUserCollectionInterface Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
OrganizationUserCollection is the main struct for operating a list organizationUser object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*OrganizationUserCollection) Aggregate ¶
func (c *OrganizationUserCollection) Aggregate() libdomain.AggregateInterface
func (*OrganizationUserCollection) GetByID ¶
func (c *OrganizationUserCollection) GetByID(id string) *OrganizationUser
GetByID return the organizationUser in this collection, by id.
func (*OrganizationUserCollection) GetKeys ¶
func (c *OrganizationUserCollection) GetKeys() []string
GetByID return the organizationUser in this collection, by id.
func (*OrganizationUserCollection) Map ¶
func (d *OrganizationUserCollection) Map() []map[string]interface{}
func (*OrganizationUserCollection) Rehydrate ¶
func (c *OrganizationUserCollection) Rehydrate(pbOrganizationUsers []*pb.OrganizationUser)
func (*OrganizationUserCollection) Slice ¶
func (c *OrganizationUserCollection) Slice() []*OrganizationUser
GetSlice return all organizationUsers in this collection, as a slice.
func (*OrganizationUserCollection) SlicePb ¶
func (c *OrganizationUserCollection) SlicePb() []*pb.OrganizationUser
GetSlice return all organizationUsers in this collection, as a slice.
type OrganizationUserGroup ¶
type OrganizationUserGroup struct { Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
OrganizationUserGroup is the main struct for operating a organizationUserGroup object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*OrganizationUserGroup) Aggregate ¶
func (t *OrganizationUserGroup) Aggregate() *Organization
func (*OrganizationUserGroup) AggregateID ¶
func (t *OrganizationUserGroup) AggregateID() string
func (*OrganizationUserGroup) GetID ¶
func (t *OrganizationUserGroup) GetID() string
func (*OrganizationUserGroup) Group ¶
func (t *OrganizationUserGroup) Group() *Group
func (*OrganizationUserGroup) GroupID ¶
func (t *OrganizationUserGroup) GroupID() string
func (*OrganizationUserGroup) Init ¶
func (t *OrganizationUserGroup) Init(wk libdomain.WorkflowInterface, pb *pb.OrganizationUserGroup)
func (*OrganizationUserGroup) JSON ¶
func (t *OrganizationUserGroup) JSON() ([]byte, error)
JSON is a function to return the organizationUserGroup data in JSON format.
func (*OrganizationUserGroup) Map ¶
func (t *OrganizationUserGroup) Map() map[string]interface{}
Map is a function to return the organizationUserGroup data in JSON format.
func (*OrganizationUserGroup) OrganizationUser ¶
func (t *OrganizationUserGroup) OrganizationUser() *OrganizationUser
func (*OrganizationUserGroup) OrganizationUserID ¶
func (t *OrganizationUserGroup) OrganizationUserID() string
func (*OrganizationUserGroup) Pb ¶
func (t *OrganizationUserGroup) Pb() *pb.OrganizationUserGroup
SetID is a function to set the ID of the organizationUserGroup.
type OrganizationUserGroupCollection ¶
type OrganizationUserGroupCollection struct { //*libdomain.Collection // OrganizationUserGroupCollectionInterface Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
OrganizationUserGroupCollection is the main struct for operating a list organizationUserGroup object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*OrganizationUserGroupCollection) Aggregate ¶
func (c *OrganizationUserGroupCollection) Aggregate() libdomain.AggregateInterface
func (*OrganizationUserGroupCollection) GetByID ¶
func (c *OrganizationUserGroupCollection) GetByID(id string) *OrganizationUserGroup
GetByID return the organizationUserGroup in this collection, by id.
func (*OrganizationUserGroupCollection) GetKeys ¶
func (c *OrganizationUserGroupCollection) GetKeys() []string
GetByID return the organizationUserGroup in this collection, by id.
func (*OrganizationUserGroupCollection) Rehydrate ¶
func (c *OrganizationUserGroupCollection) Rehydrate(pbOrganizationUserGroups []*pb.OrganizationUserGroup)
func (*OrganizationUserGroupCollection) Slice ¶
func (c *OrganizationUserGroupCollection) Slice() []*OrganizationUserGroup
GetSlice return all organizationUserGroups in this collection, as a slice.
func (*OrganizationUserGroupCollection) SlicePb ¶
func (c *OrganizationUserGroupCollection) SlicePb() []*pb.OrganizationUserGroup
GetSlice return all organizationUserGroups in this collection, as a slice.
type PbGroupInherit ¶
type PbGroupInherit = pb.GroupInherit
type PbOrganization ¶
type PbOrganization = pb.Organization
type PbOrganizationUser ¶
type PbOrganizationUser = pb.OrganizationUser
type PbOrganizationUserGroup ¶
type PbOrganizationUserGroup = pb.OrganizationUserGroup
type PbUserEmail ¶
type PbUserGroup ¶
type Session ¶
type Session struct { Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
Session is the main struct for operating a session object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*Session) ExternalID ¶
func (*Session) ExternalModule ¶
type SessionCollection ¶
type SessionCollection struct { //*libdomain.Collection // SessionCollectionInterface Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
SessionCollection is the main struct for operating a list session object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*SessionCollection) Aggregate ¶
func (c *SessionCollection) Aggregate() libdomain.AggregateInterface
func (*SessionCollection) Delete ¶
func (d *SessionCollection) Delete() error
Delete will delete all the sessions in the collection.
func (*SessionCollection) GetByID ¶
func (c *SessionCollection) GetByID(id string) *Session
GetByID return the session in this collection, by id.
func (*SessionCollection) GetKeys ¶
func (c *SessionCollection) GetKeys() []string
GetByID return the session in this collection, by id.
func (*SessionCollection) Map ¶
func (d *SessionCollection) Map() []map[string]interface{}
func (*SessionCollection) Rehydrate ¶
func (c *SessionCollection) Rehydrate(pbSessions []*pb.Session)
func (*SessionCollection) Slice ¶
func (c *SessionCollection) Slice() []*Session
GetSlice return all sessions in this collection, as a slice.
func (*SessionCollection) SlicePb ¶
func (c *SessionCollection) SlicePb() []*pb.Session
GetSlice return all sessions in this collection, as a slice.
func (*SessionCollection) UsersBySessionID ¶
func (t *SessionCollection) UsersBySessionID() (map[string]*User, error)
UsersBySessionID return the user behind UserID field, for each session in the collection, by id.
type SessionFactory ¶
type SessionFactory struct { *libdomain.Factory SessionFactoryInterface }
SessionFactory is the main struct for operating session objects, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*SessionFactory) Create ¶
func (d *SessionFactory) Create( sessions []*pb.CreateSessionCommand, parentAggregate *libdomain.AggregateDefinition, ) (*SessionCollection, error)
Create create a new session from the factory, and return it.
func (*SessionFactory) New ¶
func (d *SessionFactory) New() *Session
New return a new instance of a session object.
func (*SessionFactory) NewCollection ¶
func (d *SessionFactory) NewCollection(sessions []*Session) *SessionCollection
NewCollection return a new instance of a session collection object.
type SessionFactoryInterface ¶
type SessionFactoryInterface interface { }
type SessionInternalLibrary ¶
type SessionInternalLibrary struct { }
type TestClientInterface ¶
type TestClientInterface interface { }
type User ¶
type User struct { Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
User is the main struct for operating a user object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*User) ComputeUserGroups ¶
func (a *User) ComputeUserGroups(command *pb.UserComputeUserGroupsCommand) (*pb.UserComputeUserGroupsResults, error)
func (*User) ExternalID ¶
func (*User) ExternalModule ¶
func (*User) IncludeEmails ¶
func (*User) IncludeGroups ¶
type UserCollection ¶
type UserCollection struct { //*libdomain.Collection // UserCollectionInterface Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
UserCollection is the main struct for operating a list user object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*UserCollection) Aggregate ¶
func (c *UserCollection) Aggregate() libdomain.AggregateInterface
func (*UserCollection) ComputeUserGroups ¶
func (a *UserCollection) ComputeUserGroups(command *pb.UserComputeUserGroupsCommand) (map[string]*pb.UserComputeUserGroupsResults, error)
func (*UserCollection) Delete ¶
func (d *UserCollection) Delete() error
Delete will delete all the users in the collection.
func (*UserCollection) Emails ¶
func (t *UserCollection) Emails() (map[string]*UserEmailCollection, error)
EmailssByUserID return the userEmail behind Emails field, for each user in the collection, by id.
func (*UserCollection) GetByID ¶
func (c *UserCollection) GetByID(id string) *User
GetByID return the user in this collection, by id.
func (*UserCollection) GetKeys ¶
func (c *UserCollection) GetKeys() []string
GetByID return the user in this collection, by id.
func (*UserCollection) GroupsByUserID ¶
func (t *UserCollection) GroupsByUserID() (map[string]*GroupCollection, error)
GroupssByUserID return the group behind GroupIds field, for each user in the collection, by id.
func (*UserCollection) IncludeEmails ¶
func (t *UserCollection) IncludeEmails() error
func (*UserCollection) IncludeGroups ¶
func (t *UserCollection) IncludeGroups() error
func (*UserCollection) Map ¶
func (d *UserCollection) Map() []map[string]interface{}
func (*UserCollection) ParentsByUserID ¶
func (t *UserCollection) ParentsByUserID() (map[string]*User, error)
ParentsByUserID return the user behind ParentID field, for each user in the collection, by id.
func (*UserCollection) Rehydrate ¶
func (c *UserCollection) Rehydrate(pbUsers []*pb.User)
func (*UserCollection) Slice ¶
func (c *UserCollection) Slice() []*User
GetSlice return all users in this collection, as a slice.
func (*UserCollection) SlicePb ¶
func (c *UserCollection) SlicePb() []*pb.User
GetSlice return all users in this collection, as a slice.
func (*UserCollection) Update ¶
func (d *UserCollection) Update(r *pb.UpdateUserData) error
Update will update all the users in the collection with the specified data.
type UserComputeUserGroupsResults ¶
ComputeUserGroups todo
type UserDirectConnectToTenantResults ¶
type UserDirectConnectToTenantResults struct {
AuthToken string
}
DirectConnectToTenant todo
type UserEmail ¶
type UserEmail struct { Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
UserEmail is the main struct for operating a userEmail object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*UserEmail) AggregateID ¶
func (*UserEmail) EmailConfirmationToken ¶
func (*UserEmail) EmailConfirmed ¶
func (*UserEmail) ExternalID ¶
func (*UserEmail) ExternalModule ¶
type UserEmailCollection ¶
type UserEmailCollection struct { //*libdomain.Collection // UserEmailCollectionInterface Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
UserEmailCollection is the main struct for operating a list userEmail object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*UserEmailCollection) Aggregate ¶
func (c *UserEmailCollection) Aggregate() libdomain.AggregateInterface
func (*UserEmailCollection) GetByID ¶
func (c *UserEmailCollection) GetByID(id string) *UserEmail
GetByID return the userEmail in this collection, by id.
func (*UserEmailCollection) GetKeys ¶
func (c *UserEmailCollection) GetKeys() []string
GetByID return the userEmail in this collection, by id.
func (*UserEmailCollection) Map ¶
func (d *UserEmailCollection) Map() []map[string]interface{}
func (*UserEmailCollection) Rehydrate ¶
func (c *UserEmailCollection) Rehydrate(pbUserEmails []*pb.UserEmail)
func (*UserEmailCollection) Slice ¶
func (c *UserEmailCollection) Slice() []*UserEmail
GetSlice return all userEmails in this collection, as a slice.
func (*UserEmailCollection) SlicePb ¶
func (c *UserEmailCollection) SlicePb() []*pb.UserEmail
GetSlice return all userEmails in this collection, as a slice.
type UserEmailConfirmationResults ¶
EmailConfirmation todo
type UserEmailResetConfirmationTokenResults ¶
type UserEmailResetConfirmationTokenResults struct {
EmailToken string
}
EmailResetConfirmationToken todo
type UserFactory ¶
type UserFactory struct { *libdomain.Factory UserFactoryInterface }
UserFactory is the main struct for operating user objects, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*UserFactory) Create ¶
func (d *UserFactory) Create( users []*pb.CreateUserCommand, parentAggregate *libdomain.AggregateDefinition, ) (*UserCollection, error)
Create create a new user from the factory, and return it.
func (*UserFactory) DirectConnectToTenant ¶
func (a *UserFactory) DirectConnectToTenant(command *pb.UserDirectConnectToTenantCommand) (*pb.UserDirectConnectToTenantResults, error)
func (*UserFactory) EmailConfirmation ¶
func (a *UserFactory) EmailConfirmation(command *pb.UserEmailConfirmationCommand) (*pb.UserEmailConfirmationResults, error)
func (*UserFactory) EmailResetConfirmationToken ¶
func (a *UserFactory) EmailResetConfirmationToken(command *pb.UserEmailResetConfirmationTokenCommand) (*pb.UserEmailResetConfirmationTokenResults, error)
func (*UserFactory) GetUserFromToken ¶
func (a *UserFactory) GetUserFromToken(command *pb.UserGetUserFromTokenQuery) (*pb.UserGetUserFromTokenResults, error)
func (*UserFactory) LoginUser ¶
func (a *UserFactory) LoginUser(command *pb.UserLoginUserCommand) (*pb.UserLoginUserResults, error)
func (*UserFactory) New ¶
func (d *UserFactory) New() *User
New return a new instance of a user object.
func (*UserFactory) NewCollection ¶
func (d *UserFactory) NewCollection(users []*User) *UserCollection
NewCollection return a new instance of a user collection object.
func (*UserFactory) PasswordChange ¶
func (a *UserFactory) PasswordChange(command *pb.UserPasswordChangeCommand) (*pb.UserPasswordChangeResults, error)
func (*UserFactory) PasswordReset ¶
func (a *UserFactory) PasswordReset(command *pb.UserPasswordResetCommand) (*pb.UserPasswordResetResults, error)
func (*UserFactory) RegisterUser ¶
func (a *UserFactory) RegisterUser(command *pb.UserRegisterUserCommand) (*pb.UserRegisterUserResults, error)
func (*UserFactory) UserCreateOrganization ¶
func (a *UserFactory) UserCreateOrganization(command *pb.UserUserCreateOrganizationCommand) (*pb.UserUserCreateOrganizationResults, error)
type UserFactoryInterface ¶
type UserFactoryInterface interface { }
type UserGetUserFromTokenResults ¶
GetUserFromToken todo
type UserGroup ¶
type UserGroup struct { Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
UserGroup is the main struct for operating a userGroup object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*UserGroup) AggregateID ¶
type UserGroupCollection ¶
type UserGroupCollection struct { //*libdomain.Collection // UserGroupCollectionInterface Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
UserGroupCollection is the main struct for operating a list userGroup object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*UserGroupCollection) Aggregate ¶
func (c *UserGroupCollection) Aggregate() libdomain.AggregateInterface
func (*UserGroupCollection) GetByID ¶
func (c *UserGroupCollection) GetByID(id string) *UserGroup
GetByID return the userGroup in this collection, by id.
func (*UserGroupCollection) GetKeys ¶
func (c *UserGroupCollection) GetKeys() []string
GetByID return the userGroup in this collection, by id.
func (*UserGroupCollection) Rehydrate ¶
func (c *UserGroupCollection) Rehydrate(pbUserGroups []*pb.UserGroup)
func (*UserGroupCollection) Slice ¶
func (c *UserGroupCollection) Slice() []*UserGroup
GetSlice return all userGroups in this collection, as a slice.
func (*UserGroupCollection) SlicePb ¶
func (c *UserGroupCollection) SlicePb() []*pb.UserGroup
GetSlice return all userGroups in this collection, as a slice.
type UserInternalLibrary ¶
type UserInternalLibrary struct { NewUserEmailFactory func(libdomain.WorkflowInterface) *userEmailFactory NewUserGroupFactory func(libdomain.WorkflowInterface) *userGroupFactory }
type UserPasswordChangeResults ¶
type UserPasswordChangeResults struct {
AuthToken string
}
PasswordChange todo
type UserRegisterUserResults ¶
RegisterUser todo
type UserUserCreateOrganizationResults ¶
type UserUserCreateOrganizationResults struct {
Organization *Organization
}
UserCreateOrganization todo