AuthenticationService v0.3.0+7-g8a7f190
Public Member Functions | List of all members
Joutsen.Authentication.ApplicationRepository Interface Reference

A repository that provides access to persisted applications and offers ways to create and delete them. More...

Public Member Functions

Page< ApplicationFind (int pageNumber=0, int maxResults=int.MaxValue)
 Search for a certain number of applications. More...
 
Application GetByName (string name)
 Fetches an application by its name. More...
 
Application GetByKey (string name)
 Fetches an application by its key. More...
 
Application GetById (long id)
 Fetches an application by its unique identifier. More...
 
long Save (String name, String key)
 Persists an application. More...
 
bool Delete (long id)
 Deletes a persisted application. More...
 
Application Create ()
 Deletes a persisted application. More...
 

Detailed Description

A repository that provides access to persisted applications and offers ways to create and delete them.

Since
0.1.0

Member Function Documentation

◆ Create()

Application Joutsen.Authentication.ApplicationRepository.Create ( )

Deletes a persisted application.

Creates a new instance of an application.

Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateApplicationRepository.

◆ Delete()

bool Joutsen.Authentication.ApplicationRepository.Delete ( long  id)

Deletes a persisted application.

Parameters
idthe unique identifier of the application
Returns
true if the application was found and deleted, otherwise false

Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateApplicationRepository.

◆ Find()

Page< Application > Joutsen.Authentication.ApplicationRepository.Find ( int  pageNumber = 0,
int  maxResults = int.MaxValue 
)

Search for a certain number of applications.

Parameters
pageNumberidentifies the page of matching applications to return
maxResultsthe maximum number of applications to return. This also defines the page size.
Returns
the matching applications on the defined page

Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateApplicationRepository.

◆ GetById()

Application Joutsen.Authentication.ApplicationRepository.GetById ( long  id)

Fetches an application by its unique identifier.

Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateApplicationRepository.

◆ GetByKey()

Application Joutsen.Authentication.ApplicationRepository.GetByKey ( string  name)

Fetches an application by its key.

Since
0.2.0

Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateApplicationRepository.

◆ GetByName()

Application Joutsen.Authentication.ApplicationRepository.GetByName ( string  name)

Fetches an application by its name.

Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateApplicationRepository.

◆ Save()

long Joutsen.Authentication.ApplicationRepository.Save ( String  name,
String  key 
)

Persists an application.

Parameters
namethe name of the application to persist
keythe identification key of the application
Returns
the unique identifier of the persisted application

Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateApplicationRepository.