|
AuthenticationService
v0.2.0
|
A repository that provides access to persisted roles and offers ways to create and delete them. More...
Public Member Functions | |
| Page< Role > | Find (long userId, long applicationId, int pageNumber=0, int maxResults=int.MaxValue) |
| Search for a certain number of roles belonging to a user in an application. More... | |
| Role | GetById (long id) |
| Fetches a role by its unique identifier. More... | |
| long | Save (String name, long userId, long applicationId, String description=null) |
| Persists a new role. More... | |
| bool | Delete (long id) |
| Deletes a persisted role. More... | |
| Role | Create () |
| Creates a new instance of a role. More... | |
A repository that provides access to persisted roles and offers ways to create and delete them.
| Role Joutsen.Authentication.RoleRepository.Create | ( | ) |
Creates a new instance of a role.
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateRoleRepository.
| bool Joutsen.Authentication.RoleRepository.Delete | ( | long | id | ) |
Deletes a persisted role.
| id | the unique identifier of the role |
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateRoleRepository.
| Page<Role> Joutsen.Authentication.RoleRepository.Find | ( | long | userId, |
| long | applicationId, | ||
| int | pageNumber = 0, |
||
| int | maxResults = int.MaxValue |
||
| ) |
Search for a certain number of roles belonging to a user in an application.
| userId | the unique identifier of the user who has the role that is searched for |
| applicationId | the unique application the role that is searched for belongs to |
| pageNumber | identifies the page of matching roles to return |
| maxResults | the maximum number of roles to return. This also defines the page size. |
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateRoleRepository.
| Role Joutsen.Authentication.RoleRepository.GetById | ( | long | id | ) |
Fetches a role by its unique identifier.
| long Joutsen.Authentication.RoleRepository.Save | ( | String | name, |
| long | userId, | ||
| long | applicationId, | ||
| String | description = null |
||
| ) |
Persists a new role.
| name | the human friendly name of the role |
| userId | the unique identifier of the user who gets the role |
| applicationId | the unique identifier of the application the role belongs to |
| description | an optional description of the role. If the description is omitted abd a role with the same name already exists for the application the description is copied to the new role |
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateRoleRepository.
1.8.13