Example #1
0
        /**
         * @param \OC\User\Manager userManager
         * @param EventDispatcherInterface dispatcher
         * @param ILogger logger
         */
        public Manager(OC.User.Manager userManager,
                       EventDispatcherInterface dispatcher,
                       ILogger logger)
        {
            this.userManager = userManager;
            this.dispatcher  = dispatcher;
            this.logger      = logger;

//		cachedGroups = & this.cachedGroups;
//		cachedUserGroups = & this.cachedUserGroups;
//		this.listen("OC.Group", "postDelete", function (group) use (&cachedGroups, &cachedUserGroups) {
//			/**
//			 * @var \OC\Group\Group group
//			 */
//			unset(cachedGroups[group.getGID()]);
//			cachedUserGroups = [];
//		});
//		this.listen('\OC\Group', 'postAddUser', function (group) use (&cachedUserGroups) {
//			/**
//			 * @var \OC\Group\Group group
//			 */
//			cachedUserGroups = [];
//		});
//		this.listen('\OC\Group', 'postRemoveUser', function (group) use (&cachedUserGroups) {
//			/**
//			 * @var \OC\Group\Group group
//			 */
//			cachedUserGroups = [];
//		});
        }
Example #2
0
 /**
  * @param string gid
  * @param Backend[] backends
  * @param EventDispatcherInterface dispatcher
  * @param IUserManager userManager
  * @param PublicEmitter emitter
  * @param string displayName
  */
 public Group(string gid, IList <GroupInterface> backends, EventDispatcherInterface dispatcher, IUserManager userManager, PublicEmitter emitter = null, string displayName = null)
 {
     this.gid         = gid;
     this.backends    = backends;
     this.dispatcher  = dispatcher;
     this.userManager = userManager;
     this.emitter     = emitter;
     this.displayName = displayName;
 }
Example #3
0
 /**
  * @param IUserSession userSession
  * @param AppConfig appConfig
  * @param IGroupManager groupManager
  * @param ICacheFactory memCacheFactory
  * @param EventDispatcherInterface dispatcher
  */
 public AppManager(IUserSession userSession,
                   AppConfig appConfig,
                   IGroupManager groupManager,
                   ICacheFactory memCacheFactory,
                   EventDispatcherInterface dispatcher)
 {
     this.userSession     = userSession;
     this.appConfig       = appConfig;
     this.groupManager    = groupManager;
     this.memCacheFactory = memCacheFactory;
     this.dispatcher      = dispatcher;
 }
Example #4
0
 /**
  * PreviewManager constructor.
  *
  * @param IConfig config
  * @param IRootFolder rootFolder
  * @param IAppData appData
  * @param EventDispatcherInterface eventDispatcher
  * @param string userId
  */
 public PreviewManager(IConfig config,
                       IRootFolder rootFolder,
                       IAppData appData,
                       EventDispatcherInterface eventDispatcher,
                       string userId)
 {
     this.config          = config;
     this.rootFolder      = rootFolder;
     this.appData         = appData;
     this.eventDispatcher = eventDispatcher;
     this.userId          = userId;
 }
Example #5
0
 public Manager(ProviderLoader providerLoader,
                IRegistry providerRegistry,
                MandatoryTwoFactor mandatoryTwoFactor,
                ISession session, IConfig config,
                IManager activityManager, ILogger logger, TokenProvider tokenProvider,
                ITimeFactory timeFactory, EventDispatcherInterface eventDispatcher)
 {
     this.providerLoader     = providerLoader;
     this.providerRegistry   = providerRegistry;
     this.mandatoryTwoFactor = mandatoryTwoFactor;
     this.session            = session;
     this.config             = config;
     this.activityManager    = activityManager;
     this.logger             = logger;
     this.tokenProvider      = tokenProvider;
     this.timeFactory        = timeFactory;
     this.dispatcher         = eventDispatcher;
 }