Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Codecrew / Moya

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 30
  • Merge Requests 2
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • moya
  • ..
  • enums
  • Role.java
  • Tuomas Riihimäki's avatar
    Role stuff. · c555a872
    Tuomas Riihimäki committed May 09, 2010
    c555a872 Browse Files
Role.java 331 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package fi.insomnia.bortal.enums;

public enum Role {
    USER_BASE(true), // Logged in user
    ADMIN_BASE(true),
    SUPERADMIN(false) // Admin for this event
    ;

    private boolean inDatabase;

    Role(boolean inDb) {
        inDatabase = inDb;
    }

    public boolean isInDatabase() {
        return inDatabase;
    }
}