public static void OnInitialized(DataActionTokenResolver resolver)
 {
     resolver.RegisterDefault <IData>(ActionIdentifier.SendForPublication, f => new GenericPublishProcessController.AwaitingPublicationActionToken());
     resolver.RegisterDefault <IData>(ActionIdentifier.Publish, f => new GenericPublishProcessController.PublishActionToken());
     resolver.RegisterDefault <IData>(ActionIdentifier.SendForApproval, f => new GenericPublishProcessController.AwaitingApprovalActionToken());
     resolver.RegisterDefault <IData>(ActionIdentifier.SendToDraft, f => new GenericPublishProcessController.DraftActionToken());
     resolver.RegisterDefault <IData>(ActionIdentifier.Unpublish, f => new GenericPublishProcessController.UnpublishActionToken());
 }
Exemple #2
0
 /// <exclude />
 public static void OnInitialized(DataActionTokenResolver resolver)
 {
     resolver.RegisterDefault <IPage>(ActionIdentifier.Add, f => new WorkflowActionToken(WorkflowFacade.GetWorkflowType("Composite.Plugins.Elements.ElementProviders.PageElementProvider.AddNewPageWorkflow"))
     {
         DoIgnoreEntityTokenLocking = true, Payload = SerializerHandlerFacade.Serialize(f)
     });
     resolver.RegisterDefault <IPage>(ActionIdentifier.Edit, f => new WorkflowActionToken(WorkflowFacade.GetWorkflowType("Composite.Plugins.Elements.ElementProviders.PageElementProvider.EditPageWorkflow")));
     resolver.RegisterDefault <IPage>(ActionIdentifier.Delete, f => new WorkflowActionToken(WorkflowFacade.GetWorkflowType("Composite.Plugins.Elements.ElementProviders.PageElementProvider.DeletePageWorkflow")));
     resolver.RegisterDefault <IPage>(ActionIdentifier.Duplicate, f => new DuplicateActionToken());
 }
 /// <exclude />
 public static void OnInitialized(DataActionTokenResolver resolver)
 {
     resolver.RegisterDefault <IData>(ActionIdentifier.Edit, f => new WorkflowActionToken(WorkflowFacade.GetWorkflowType("Composite.Plugins.Elements.ElementProviders.GeneratedDataTypesElementProvider.EditDataWorkflow")));
     resolver.RegisterDefault <IData>(ActionIdentifier.Delete, f => new WorkflowActionToken(WorkflowFacade.GetWorkflowType("Composite.Plugins.Elements.ElementProviders.GeneratedDataTypesElementProvider.DeleteDataWorkflow")));
     resolver.RegisterDefault <IData>(ActionIdentifier.Duplicate, f => new DuplicateActionToken());
 }