C# Class Felbook.Models.Group

Inheritance: System.Data.Objects.DataClasses.EntityObject
Mostra file Open project: janmarek/Felbook Class Usage Examples

Private Properties

Property Type Description
AddChildrenToList void
OnDescriptionChanged void
OnDescriptionChanging void
OnIdChanged void
OnIdChanging void
OnNameChanged void
OnNameChanging void

Public Methods

Method Description
CreateGroup ( global id, global name, global description ) : Group

Create a new Group object.

GetAllSubGroups ( ) : IEnumerable
HasMember ( User user ) : bool

Má člena

HasParent ( ) : bool

Má alespoň jednoho rodiče

IsAdminedBy ( User user ) : bool

Je skupina administrovaná členem?

IsCreatedBy ( User user ) : bool

Je skupina vytvořena uživatelem?

Private Methods

Method Description
AddChildrenToList ( Group group, List list ) : void
OnDescriptionChanged ( ) : void
OnDescriptionChanging ( global value ) : void
OnIdChanged ( ) : void
OnIdChanging ( global value ) : void
OnNameChanged ( ) : void
OnNameChanging ( global value ) : void

Method Details

CreateGroup() public static method

Create a new Group object.
public static CreateGroup ( global id, global name, global description ) : Group
id global Initial value of the Id property.
name global Initial value of the Name property.
description global Initial value of the Description property.
return Group

GetAllSubGroups() public method

public GetAllSubGroups ( ) : IEnumerable
return IEnumerable

HasMember() public method

Má člena
public HasMember ( User user ) : bool
user User testovaný uživatel
return bool

HasParent() public method

Má alespoň jednoho rodiče
public HasParent ( ) : bool
return bool

IsAdminedBy() public method

Je skupina administrovaná členem?
public IsAdminedBy ( User user ) : bool
user User testovaný uživatel
return bool

IsCreatedBy() public method

Je skupina vytvořena uživatelem?
public IsCreatedBy ( User user ) : bool
user User Testovaný uživatel
return bool