View Javadoc
1   package org.exoplatform.services.wcm.extensions.publication.lifecycle.impl;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   /**
7    * Created by The eXo Platform MEA Author : haikel.thamri@exoplatform.com
8    */
9   public class LifecyclesConfig {
10    private List<Lifecycle> lifecycles = new ArrayList<Lifecycle>();
11  
12    public List<Lifecycle> getLifecycles() {
13      return lifecycles;
14    }
15  
16    public void setActions(List<Lifecycle> lifecycles) {
17      this.lifecycles = lifecycles;
18    }
19  
20    public static class Lifecycle {
21      private String      name;
22  
23      private String      publicationPlugin;
24  
25      private List<State> states = new ArrayList<State>();
26  
27      public List<State> getStates() {
28        return states;
29      }
30  
31      public void setStates(List<State> states) {
32        this.states = states;
33      }
34  
35      public String getName() {
36        return name;
37      }
38  
39      public void setName(String name) {
40        this.name = name;
41      }
42  
43      public String getPublicationPlugin() {
44        return publicationPlugin;
45      }
46  
47      public void setPublicationPlugin(String publicationPlugin) {
48        this.publicationPlugin = publicationPlugin;
49      }
50  
51    }
52  
53    public static class State {
54      private String       state;
55  
56      private String       membership;
57  
58      private String       role;
59  
60      private List<String> roles;
61  
62      public List<String> getRoles() {
63        return roles;
64      }
65  
66      public void setRoles(List<String> roles) {
67        this.roles = roles;
68      }
69  
70      private List<String> memberships;
71  
72      public String getState() {
73        return state;
74      }
75  
76      public void setState(String state) {
77        this.state = state;
78      }
79  
80      public String getMembership() {
81        return membership;
82      }
83  
84      public void setMembership(String membership) {
85        this.membership = membership;
86      }
87  
88      public List<String> getMemberships() {
89        return memberships;
90      }
91  
92      public void setMemberships(List<String> memberships) {
93        this.memberships = memberships;
94      }
95  
96      public String getRole() {
97        return role;
98      }
99  
100     public void setRole(String role) {
101       this.role = role;
102     }
103 
104   }
105 
106 }