2018-07-12 15:24:32 -07:00
|
|
|
import Controller from '@ember/controller';
|
|
|
|
import Session from 'ember-simple-auth/services/session';
|
|
|
|
import UserLookup from 'wherehows-web/services/user-lookup';
|
|
|
|
import Notifications from 'wherehows-web/services/notifications';
|
|
|
|
import BannerService from 'wherehows-web/services/banners';
|
|
|
|
import { service } from '@ember-decorators/service';
|
|
|
|
|
|
|
|
export default class Application extends Controller {
|
|
|
|
/**
|
|
|
|
* User session management service
|
|
|
|
* @type {Session}
|
|
|
|
*/
|
2018-08-12 13:02:01 -07:00
|
|
|
@service
|
|
|
|
session: Session;
|
2018-07-12 15:24:32 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Looks up user names and properties from the partyEntities api
|
|
|
|
* @type {UserLookup}
|
|
|
|
*/
|
2018-08-12 13:02:01 -07:00
|
|
|
@service('user-lookup')
|
|
|
|
ldapUsers: UserLookup;
|
2018-07-12 15:24:32 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* References the application notifications service
|
|
|
|
* @type {Notifications}
|
|
|
|
*/
|
2018-08-12 13:02:01 -07:00
|
|
|
@service
|
|
|
|
notifications: Notifications;
|
2018-07-12 15:24:32 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds the service for banners in order to trigger the application to render the banners when
|
|
|
|
* they are triggered
|
|
|
|
* @type {BannerService}
|
|
|
|
*/
|
2018-08-12 13:02:01 -07:00
|
|
|
@service('banners')
|
|
|
|
banners: BannerService;
|
2018-07-12 15:24:32 -07:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super(...arguments);
|
|
|
|
|
2018-08-12 13:02:01 -07:00
|
|
|
this.ldapUsers.fetchUserNames();
|
2018-07-12 15:24:32 -07:00
|
|
|
}
|
|
|
|
}
|