package edu.northwestern.bioinformatics.studycalendar.utils.accesscontrol;

/**
 * @author Rhett Sutphin
 */
public enum StudyCalendarProtectionGroup {
    BASE("BaseAccess"),
    STUDY_COORDINATOR("CreateStudyAccess"),
    // Note that this is the spelling (missing 'e') in the protection group
    // TODO: change to AdministrativeAccess
    STUDY_ADMINISTRATOR("MarkTemplatCompleteAccess"),
    PARTICIPANT_COORDINATOR("ParticipantAssignmentAccess"),
    SITE_COORDINATOR("SiteCoordinatorAccess")
    ;

    private String csmProtectionGroupName;

    private StudyCalendarProtectionGroup(String csmName) {
        this.csmProtectionGroupName = csmName;
    }

    public String csmName() { return csmProtectionGroupName; }
}

package edu.northwestern.bioinformatics.studycalendar.utils.accesscontrol;

/**
 * @author Rhett Sutphin
 */
public enum StudyCalendarProtectionGroup {
    BASE("BaseAccess"),
    STUDY_COORDINATOR("CreateStudyAccess"),
    STUDY_ADMINISTRATOR("AdministrativeAccess"),
    PARTICIPANT_COORDINATOR("ParticipantAssignmentAccess"),
    SITE_COORDINATOR("SiteCoordinatorAccess")
    ;

    private String csmProtectionGroupName;

    private StudyCalendarProtectionGroup(String csmName) {
        this.csmProtectionGroupName = csmName;
    }

    public String csmName() { return csmProtectionGroupName; }
}

Update group name for STUDY_ADMINISTRATOR to match Padmaja's change
Update group name for STUDY_ADMINISTRATOR to match Padmaja's change


git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@727 0d517254-b314-0410-acde-c619094fa49f
