C# Class Rock.Model.GroupTypeService

Data access/service class for Rock.Model.GroupType entity objects. This class extends Rock.Data.Service.
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Méthodes publiques

Méthode Description
Delete ( GroupType item ) : bool

Deletes the specified item.

GetAllAssociatedDescendents ( Guid parentGroupTypeGuid ) : IEnumerable

Returns an enumerable collection of GroupType that are descendants of a specified group type. WARNING: This will fail if their is a circular reference in the GroupTypeAssociation table.

GetAllAssociatedDescendents ( int parentGroupTypeId ) : IEnumerable

Returns an enumerable collection of GroupType that are descendants of a specified group type. WARNING: This will fail (max recursion) if there is a circular reference in the GroupTypeAssociation table.

GetAllAssociatedDescendentsPath ( int parentGroupTypeId ) : IEnumerable

Returns an enumerable collection of GroupTypePath objects that are associated descendants of a specified group type. WARNING: This will fail if there is a circular reference in the GroupTypeAssociation table.

GetAllCheckinGroupTypePaths ( ) : IEnumerable

Gets all checkin group type paths.

GetByDefaultGroupRoleId ( int defaultGroupRoleId ) : IEnumerable

Returns an enumerable collection of Rock.Model.GroupType entities by the Id of their Rock.Model.GroupTypeRole.

GetChildGroupTypes ( Guid groupTypeGuid ) : IQueryable

Gets the child group types.

GetChildGroupTypes ( int groupTypeId ) : IQueryable

Gets the child group types.

GetGuid ( int id ) : Guid?

Gets the Guid for the GroupType that has the specified Id

GetParentGroupTypes ( int groupTypeId ) : IQueryable

Gets the parent group types.

Method Details

Delete() public méthode

Deletes the specified item.
public Delete ( GroupType item ) : bool
item GroupType The item.
Résultat bool

GetAllAssociatedDescendents() public méthode

Returns an enumerable collection of GroupType that are descendants of a specified group type. WARNING: This will fail if their is a circular reference in the GroupTypeAssociation table.
public GetAllAssociatedDescendents ( Guid parentGroupTypeGuid ) : IEnumerable
parentGroupTypeGuid Guid The parent group type unique identifier.
Résultat IEnumerable

GetAllAssociatedDescendents() public méthode

Returns an enumerable collection of GroupType that are descendants of a specified group type. WARNING: This will fail (max recursion) if there is a circular reference in the GroupTypeAssociation table.
public GetAllAssociatedDescendents ( int parentGroupTypeId ) : IEnumerable
parentGroupTypeId int The parent group type identifier.
Résultat IEnumerable

GetAllAssociatedDescendentsPath() public méthode

Returns an enumerable collection of GroupTypePath objects that are associated descendants of a specified group type. WARNING: This will fail if there is a circular reference in the GroupTypeAssociation table.
public GetAllAssociatedDescendentsPath ( int parentGroupTypeId ) : IEnumerable
parentGroupTypeId int The parent group type identifier.
Résultat IEnumerable

GetAllCheckinGroupTypePaths() public méthode

Gets all checkin group type paths.
public GetAllCheckinGroupTypePaths ( ) : IEnumerable
Résultat IEnumerable

GetByDefaultGroupRoleId() public méthode

Returns an enumerable collection of Rock.Model.GroupType entities by the Id of their Rock.Model.GroupTypeRole.
public GetByDefaultGroupRoleId ( int defaultGroupRoleId ) : IEnumerable
defaultGroupRoleId int An representing the Id of the to search by.
Résultat IEnumerable

GetChildGroupTypes() public méthode

Gets the child group types.
public GetChildGroupTypes ( Guid groupTypeGuid ) : IQueryable
groupTypeGuid Guid The group type unique identifier.
Résultat IQueryable

GetChildGroupTypes() public méthode

Gets the child group types.
public GetChildGroupTypes ( int groupTypeId ) : IQueryable
groupTypeId int The group type identifier.
Résultat IQueryable

GetGuid() public méthode

Gets the Guid for the GroupType that has the specified Id
public GetGuid ( int id ) : Guid?
id int The identifier.
Résultat Guid?

GetParentGroupTypes() public méthode

Gets the parent group types.
public GetParentGroupTypes ( int groupTypeId ) : IQueryable
groupTypeId int The group type identifier.
Résultat IQueryable