Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
package org.litesoft.datt.client;

import org.litesoft.datt.client.support.*;
import org.litesoft.uispecification.*;

import java.util.*;

public interface ViewDefs {
    public static final ViewDef HOME = ViewDef.HOME;
    // Home View...

    public static final String HOME_SECTION_HOME_SWITCH_VIEW = "HOME VIEW";

    // End User Role Based

    public static final ViewDef ENDUSERS_SWITCH_HOME = new ViewDef( "EndUsersHomeView", "END USER" );

    public static final ViewDef ENDUSERS_SAMPLE = new ViewDef( "EndUsersSample", "END USERS SAMPLE" );

    static final ViewDef[] EndUser_Options = {ENDUSERS_SWITCH_HOME, ENDUSERS_SAMPLE,};

    // End User Manager Role Based

    public static final ViewDef ENDUSERMANAGERS_SWITCH_HOME = new ViewDef( "EndUserMangersHomeView", "END USER MANAGER" );

    public static final ViewDef ENDUSERMANAGERS_SAMPLE = new ViewDef( "EndUserMangersSample", "END USER MANAGER SAMPLE" );

    static final ViewDef[] EndUserManager_Options = {ENDUSERMANAGERS_SWITCH_HOME, ENDUSERMANAGERS_SAMPLE,};

    // Developer Role Based

    public static final ViewDef DEVELOPERS_SWITCH_HOME = new ViewDef( "DevelopersHomeView", "DEVELOPER" );

    public static final ViewDef DEVELOPERS_SAMPLE = new ViewDef( "DevelopersSample", "DEVELOPERS SAMPLE" );

    static final ViewDef[] Developer_Options = {DEVELOPERS_SWITCH_HOME, DEVELOPERS_SAMPLE,};

    // Customer Role Based

    public static final ViewDef REPRIORITIZE_STORIES = new ViewDef( "ReprioritizeStories", "REPRIORITIZE" );

    public static final ViewDef INITIAL_PRIORITIZING_STORIES = new ViewDef( "InitialPrioritizingStories", "INITIAL PRIORITIZING" );

    public static final ViewDef CUSTOMERS_SWITCH_HOME = new ViewDef( "CustomersHomeView", "CUSTOMER" );

    public static final ViewDef CUSTOMERS_SAMPLE = new ViewDef( "CustomersSample", "CUSTOMERS SAMPLE" );

    static final ViewDef[] Customer_Options = {CUSTOMERS_SWITCH_HOME, CUSTOMERS_SAMPLE,};

    // ProjectAdmin Role Based

    public static final ViewDef PROJECTADMINS_SWITCH_HOME = new ViewDef( "ProjectAdminsHomeView", "PROJECT ADMIN" );

    public static final ViewDef PROJECTADMINS_SAMPLE = new ViewDef( "ProjectAdminsSample", "PROJECT ADMIN SAMPLE" );

    static final ViewDef[] ProjectAdmin_Options = {PROJECTADMINS_SWITCH_HOME, PROJECTADMINS_SAMPLE,};

    // Admin...

    public static final String HOME_SECTION_ADMIN = "ADMIN";

    // Button: CHANGE PASSWORD
    public static final ViewDef ADMIN_CHANGE_PASSWORD = new ViewDef( "ChangePassword", "CHANGE PASSWORD" ); // Dialog

    // Button: MY PROFILE
    public static final ViewDef ADMIN_MY_PROFILE = new ViewDef( "MyProfile", "MY PROFILE" );

    // Button: REPORTS
    public static final ViewDef ADMIN_REPORTS = new ViewDef( "Reports", "REPORTS" );

    // Button: USERS
    public static final ViewDef ADMIN_USERS = new ViewDef( "Users", "USERS" );

    public static final String HOME_SECTION_STORIES = "STORIES";

    // Button: Stories
    public static final ViewDef STORY_STORIES = new ViewDef( "Stories", "STORIES" );
    public static final ViewDef STORY_TASKS = new ViewDef( "StoryTasks", "STORY TASKS" );

    // Button: MERGE STORIES
    public static final ViewDef STORY_MERGE_STORIES = new ViewDef( "MergeStories", "MERGE STORIES" );
    public static final ViewDef STORY_MERGE_STORIES_STEP_TWO = new ViewDef( "MergeStoriesStepTwo", "MERGE STORIES" );
    public static final ViewDef STORY_MERGE_STORIES_STEP_THREE = new ViewDef( "MergeStoriesStepThree", "MERGE STORIES" );

    // Button: EDIT PROJECT & MANAGE PROJECT(S) & MANAGE PROJECT GROUP(S)
    public static final ViewDef ADMIN_RESTRICTED_RESOURCE_EDITOR = new ViewDef( "RestrictedResourceEditor", "EDIT PROJECT" );
    public static final ViewDef ADMIN_RESTRICTED_RESOURCE_MANAGEMENT = new ViewDef( "RestrictedResourceManagement", "MANAGE PROJECT(S)" );

    public static final ViewDefSecuredSet[] SECURITY_SETS = //
            { //
              new ViewDefSecuredSet( Permissions.sAdminFlag, //
                                     ADMIN_USERS, ADMIN_RESTRICTED_RESOURCE_EDITOR, //
                                     // MERGE STORIES
//                                     STORY_MERGE_STORIES, STORY_MERGE_STORIES_STEP_TWO, STORY_MERGE_STORIES_STEP_THREE,  //
                                     // Reports:
                                     // todo: XXX_REPORT_BASIC, XXX_REPORT_DETAILED, //
                                     HOME ), //
              new ViewDefSecuredSet( Permissions.sRestrictedResourceMgrFlag, //
                                     ADMIN_USERS, ADMIN_RESTRICTED_RESOURCE_MANAGEMENT, //
                                     // Reports:
                                     HOME ), //
              new ViewDefSecuredSet( Permissions.sSprAdminFlag, //
                                     ADMIN_USERS, ADMIN_RESTRICTED_RESOURCE_MANAGEMENT,  //
                                     // Reports:
                                     HOME ), //
              new ViewDefSecuredSet( Permissions.sHelpDeskFlag, //
                                     ADMIN_USERS, //
                                     // Reports:
                                     HOME ), //
              new ViewDefSecuredSet( Permissions.sNonGuestFlag, //
                                     STORY_STORIES, //
                                     // Reports:
                                     HOME ), //
              new ViewDefSecuredSet( Permissions.sCustomerFlag, //
                                     // MERGE STORIES
                                     STORY_MERGE_STORIES, STORY_MERGE_STORIES_STEP_TWO, STORY_MERGE_STORIES_STEP_THREE, REPRIORITIZE_STORIES,
                                     INITIAL_PRIORITIZING_STORIES, STORY_TASKS, //
                                     // Reports:
                                     HOME ), //
              new ViewDefSecuredSet( // Any User
                                     ADMIN_CHANGE_PASSWORD, ADMIN_MY_PROFILE, ADMIN_REPORTS, //
                                     HOME ) //
            };

    public static final Map<Role, ViewDef[]> ROLES_MAP = Helper.createRolesMap();

    class Helper {
        public static Map<Role, ViewDef[]> createRolesMap() {
            Map<Role, ViewDef[]> zMap = new HashMap<Role, ViewDef[]>();
            zMap.put( Role.EndUser, EndUser_Options );
            zMap.put( Role.EndUserManager, EndUserManager_Options );
            zMap.put( Role.Developer, Developer_Options );
            zMap.put( Role.Customer, Customer_Options );
            zMap.put( Role.ProjectAdmin, ProjectAdmin_Options );
            return zMap;
        }
    }
}

Commits for litesoft/trunk/Java/DATT/src/org/litesoft/datt/client/ViewDefs.java

Diff revisions: vs.
Revision Author Commited Message
948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

565 Diff Diff markcmarkc Sun 13 Nov, 2011 21:45:35 +0000
502 Diff Diff markcmarkc Mon 12 Sep, 2011 00:46:45 +0000
501 Diff Diff markcmarkc Sun 11 Sep, 2011 22:50:22 +0000

Added a customer

496 Diff Diff GeorgeS picture GeorgeS Sun 11 Sep, 2011 16:58:00 +0000
430 GeorgeS picture GeorgeS Sat 20 Aug, 2011 19:46:21 +0000