C# Class Rebel.Framework.Security.PublicAccessService

Inheritance: IPublicAccessService
Datei anzeigen Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
GetNearestPublicAccessInfo ( HiveId entityId ) : PublicAccessInfo
GetPublicAccessStatus ( HiveId memberId, HiveId entityId ) : PublicAccessStatusResult

Gets the public access status for the specified member.

GetPublicAccessStatus ( IEnumerable userGroupIds, HiveId entityId ) : PublicAccessStatusResult

Gets the public access status for the specified user groups.

IsProtected ( HiveId entityId ) : bool

Determines whether the specified entity id is protected.

PublicAccessService ( IHiveManager hive, IMembershipService membersMembershipService, IFrameworkContext framework ) : System

Protected Methods

Method Description
GetUserGroupIdsForMember ( HiveId memberId ) : IEnumerable

Gets a list of UserGroup ids that the specified Member belongs to.

Method Details

GetNearestPublicAccessInfo() public method

public GetNearestPublicAccessInfo ( HiveId entityId ) : PublicAccessInfo
entityId HiveId
return PublicAccessInfo

GetPublicAccessStatus() public method

Gets the public access status for the specified member.
public GetPublicAccessStatus ( HiveId memberId, HiveId entityId ) : PublicAccessStatusResult
memberId HiveId The member id.
entityId HiveId The entity id.
return PublicAccessStatusResult

GetPublicAccessStatus() public method

Gets the public access status for the specified user groups.
public GetPublicAccessStatus ( IEnumerable userGroupIds, HiveId entityId ) : PublicAccessStatusResult
userGroupIds IEnumerable The user group ids.
entityId HiveId The entity id.
return PublicAccessStatusResult

GetUserGroupIdsForMember() protected method

Gets a list of UserGroup ids that the specified Member belongs to.
protected GetUserGroupIdsForMember ( HiveId memberId ) : IEnumerable
memberId HiveId The member id.
return IEnumerable

IsProtected() public method

Determines whether the specified entity id is protected.
public IsProtected ( HiveId entityId ) : bool
entityId HiveId The entity id.
return bool

PublicAccessService() public method

public PublicAccessService ( IHiveManager hive, IMembershipService membersMembershipService, IFrameworkContext framework ) : System
hive IHiveManager
membersMembershipService IMembershipService
framework IFrameworkContext
return System