示例#1
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);
     }
 }
示例#2
0
 public TaskCommand(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.FileTask);
     }
     else
     {
         _subCommands = factory.CreateFactory(base._names.CommandNames.Task);
     }
 }
示例#3
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.");
     }
 }
示例#4
0
 public TokenCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names)
     : base(boxPlatformBuilder, boxHome, names)
 {
     _subCommands = factory.CreateFactory(base._names.CommandNames.Token);
 }
示例#5
0
 public StoragePolicyCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names)
     : base(boxPlatformBuilder, boxHome, names)
 {
     _factory     = factory;
     _subCommands = factory.CreateFactory(_names.CommandNames.StoragePolicy);
 }
示例#6
0
 public TaskAssignmentCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names)
     : base(boxPlatformBuilder, boxHome, names)
 {
     this._subCommands = factory.CreateFactory(base._names.CommandNames.TaskAssignment);
 }
示例#7
0
 public CollaborationCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory,
                             LocalizedStringsResource names, BoxType t = BoxType.enterprise)
     : base(boxPlatformBuilder, boxHome, names)
 {
     _subCommands = factory.CreateFactory(base._names.CommandNames.Collaborations);
 }