C# Class Rock.Model.GroupTypeService

Data access/service class for Rock.Model.GroupType entity objects. This class extends Rock.Data.Service.
ファイルを表示 Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method 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 method

Deletes the specified item.
public Delete ( GroupType item ) : bool
item GroupType The item.
return bool

GetAllAssociatedDescendents() public method

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.
return IEnumerable

GetAllAssociatedDescendents() public method

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.
return IEnumerable

GetAllAssociatedDescendentsPath() public method

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.
return IEnumerable

GetAllCheckinGroupTypePaths() public method

Gets all checkin group type paths.
public GetAllCheckinGroupTypePaths ( ) : IEnumerable
return IEnumerable

GetByDefaultGroupRoleId() public method

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.
return IEnumerable

GetChildGroupTypes() public method

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

GetChildGroupTypes() public method

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

GetGuid() public method

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

GetParentGroupTypes() public method

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