public ConfigureSettingsSubCommandFactory(IBoxHome boxHome, LocalizedStringsResource names)
 {
     _boxHome      = boxHome;
     _environments = boxHome.GetBoxEnvironments();
     _settings     = boxHome.GetBoxHomeSettings();
     _names        = names;
 }
Esempio n. 2
0
 public RootCommand(UserCommand user, ConfigureCommand config,
                    FolderCommand folder, FileCommand file, WebhooksCommand webhooks,
                    GroupCommand group, MetadataTemplateCommand mdt, EventCommand evt,
                    CollaborationCommand collab, SharedLinkCommand sl, TrashCommand trsh,
                    SessionCommand ssn, TokenCommand tk, SearchCommand srch,
                    TaskCommand tsk, TaskAssignmentCommand tskAsgn, CommentCommand cmt,
                    LocalizedStringsResource names, IBoxHome home)
 {
     _user     = user;
     _config   = config;
     _folder   = folder;
     _file     = file;
     _webhooks = webhooks;
     _group    = group;
     _mdt      = mdt;
     _evt      = evt;
     _collab   = collab;
     _sl       = sl;
     _trsh     = trsh;
     _ssn      = ssn;
     _tk       = tk;
     _srch     = srch;
     _tsk      = tsk;
     _tskAsgn  = tskAsgn;
     _cmt      = cmt;
     _names    = names;
     _home     = home;
 }
Esempio n. 3
0
 public SubCommandFactory(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, LocalizedStringsResource names)
 {
     _boxHome            = boxHome;
     _environments       = boxHome.GetBoxEnvironments();
     _settings           = boxHome.GetBoxHomeSettings();
     _boxPlatformBuilder = boxPlatformBuilder;
     _names = names;
 }
Esempio n. 4
0
 public CollaborationOnItemCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory,
                                   LocalizedStringsResource names, BoxType t = BoxType.enterprise)
     : base(boxPlatformBuilder, boxHome, names)
 {
     if (t == BoxType.file)
     {
         _subCommands = factory.CreateFactory(base._names.CommandNames.FileCollaborations);
     }
     else if (t == BoxType.folder)
     {
         _subCommands = factory.CreateFactory(base._names.CommandNames.FolderCollaborations);
     }
     else
     {
         throw new Exception("This item does not support collaborations.");
     }
 }
Esempio n. 5
0
 public SharedLinkCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory,
                          LocalizedStringsResource names, BoxType t = BoxType.enterprise)
     : base(boxPlatformBuilder, boxHome, names)
 {
     _t = t;
     if (t == BoxType.file)
     {
         _subCommands = factory.CreateFactory(base._names.CommandNames.FileSharedLinks);
     }
     else if (t == BoxType.folder)
     {
         _subCommands = factory.CreateFactory(base._names.CommandNames.FolderSharedLinks);
     }
     else
     {
         _subCommands = factory.CreateFactory(base._names.CommandNames.SharedLinks);
     }
 }
Esempio n. 6
0
 public ConfigureEnvironmentsSubCommandFactory(IBoxPlatformServiceBuilder builder, IBoxHome boxHome, LocalizedStringsResource names)
     : base(builder, boxHome, names)
 {
 }
Esempio n. 7
0
 public MetadataTemplateListCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names)
     : base(boxPlatformBuilder, home, names)
 {
     _home = home;
 }
Esempio n. 8
0
 public TokenSubCommandBase(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, LocalizedStringsResource names)
     : base(boxPlatformBuilder, boxHome, names)
 {
 }
 public SessionEndUserSessionCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, LocalizedStringsResource names)
     : base(boxPlatformBuilder, boxHome, names)
 {
 }
Esempio n. 10
0
 public FileDownloadCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, LocalizedStringsResource names)
     : base(boxPlatformBuilder, boxHome, names)
 {
 }
Esempio n. 11
0
 public WebhooksListCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names)
     : base(boxPlatformBuilder, home, names)
 {
     _home = home;
 }
Esempio n. 12
0
 public GroupMembershipCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, LocalizedStringsResource names, SubCommandFactory factory)
     : base(boxPlatformBuilder, boxHome, names)
 {
     _subCommands = factory.CreateFactory(_names.CommandNames.GroupMembership);
 }
Esempio n. 13
0
 public GroupMembershipCreateCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names)
     : base(boxPlatformBuilder, home, names)
 {
     _home = home;
 }
Esempio n. 14
0
 public GroupMembershipDeleteCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, LocalizedStringsResource names)
     : base(boxPlatformBuilder, boxHome, names)
 {
 }
Esempio n. 15
0
 public MetadataTemplateSubCommandFactory(IBoxPlatformServiceBuilder builder, IBoxHome boxHome, LocalizedStringsResource names)
     : base(builder, boxHome, names)
 {
 }
Esempio n. 16
0
 public GroupSubCommandBase(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names)
     : base(boxPlatformBuilder, home, names)
 {
     _levels = new List <string>
     {
         "admins_only",
         "admins_and_members",
         "all_managed_users"
     };
 }
Esempio n. 17
0
 public MetadataCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names, BoxType t)
     : base(boxPlatformBuilder, boxHome, names)
 {
     if (t == BoxType.file)
     {
         _subCommands = factory.CreateFactory(base._names.CommandNames.FileMetadata);
     }
     else if (t == BoxType.folder)
     {
         _subCommands = factory.CreateFactory(base._names.CommandNames.FolderMetadata);
     }
 }
Esempio n. 18
0
 public StoragePolicyCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names)
     : base(boxPlatformBuilder, boxHome, names)
 {
     _factory     = factory;
     _subCommands = factory.CreateFactory(_names.CommandNames.StoragePolicy);
 }
Esempio n. 19
0
 public MetadataDeleteCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names, BoxType t)
     : base(boxPlatformBuilder, home, names, t)
 {
     _home = home;
 }
Esempio n. 20
0
 public FolderChangeUploadEmailCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names)
     : base(boxPlatformBuilder, home, names)
 {
     _home = home;
 }
Esempio n. 21
0
 public TokenCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names)
     : base(boxPlatformBuilder, boxHome, names)
 {
     _subCommands = factory.CreateFactory(base._names.CommandNames.Token);
 }
Esempio n. 22
0
 public SharedLinkCreateCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names, BoxType t)
     : base(boxPlatformBuilder, home, names, t)
 {
     _home = home;
 }
Esempio n. 23
0
 public CollaborationListCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names, BoxType t)
     : base(boxPlatformBuilder, home, names, t)
 {
     _home = home;
 }
 public CollaborationSubCommandBase(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names, BoxType t)
     : base(boxPlatformBuilder, home, names)
 {
     _t = t;
 }
Esempio n. 25
0
 public StoragePolicyGetCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names)
     : base(boxPlatformBuilder, home, names)
 {
     _home = home;
 }
 public GroupMembershipSubCommandFactory(IBoxPlatformServiceBuilder builder, IBoxHome boxHome, LocalizedStringsResource names)
     : base(builder, boxHome, names)
 {
 }
 public FileVersionSubCommandFactory(IBoxPlatformServiceBuilder builder, IBoxHome boxHome, LocalizedStringsResource names)
     : base(builder, boxHome, names)
 {
 }
Esempio n. 28
0
 public TaskAssignmentDeleteCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names)
     : base(boxPlatformBuilder, home, names)
 {
 }
Esempio n. 29
0
 public FolderUpdateCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome home, LocalizedStringsResource names)
     : base(boxPlatformBuilder, home, names)
 {
     _home = home;
 }
Esempio n. 30
0
 public ConfigureSettingsCommand(IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names)
     : base(boxHome)
 {
     _names       = names;
     _subCommands = factory.CreateFactory(_names.CommandNames.Settings);
 }