Ignore:
Timestamp:
Nov 20, 2012, 4:56:35 PM (11 years ago)
Author:
casties
Branch:
default
Message:

new non-authorized mode without tokens. enabled by default. configured with annotationmanager.authorization=false property.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java

    r50 r57  
    3434
    3535    /**
    36      * Properties holding consumer keys and secrets
     36     * Properties holding consumer keys and secrets.
    3737     */
    3838    protected Properties consumerKeys;
     
    4040    public static final String CONSUMERKEYS_KEY = "annotationmanager.consumerkeys";
    4141
     42    /**
     43     * Properties holding server config.
     44     */
    4245    protected Properties serverConfig;
    4346    public String CONFIG_PROPS_PATH = "WEB-INF/serverconfig.property";
    4447    public static final String SERVERCONFIG_KEY = "annotationmanager.serverconfig";
    4548
     49    /**
     50     * database instance;
     51     */
    4652    protected GraphDatabaseService graphDb;
    4753    public static final String GRAPHDB_KEY = "annotationmanager.graphdb";
     
    4955    public String graphdbPath = "WEB-INF/neo4j-annotation-db";
    5056
     57    /**
     58     * database interface server instance.
     59     */
    5160    protected WrappingNeoServerBootstrapper srv;
    5261    public static final String GRAPHDBSRV_KEY = "annotationmanager.graphdb.srv";
    5362
     63    /**
     64     * annotation store instance.
     65     */
    5466    protected AnnotationStore store;
    5567    public static final String ANNSTORE_KEY = "annotationmanager.store";
    5668
     69    /**
     70     * LDAP server URI (for looking up full user names).
     71     */
    5772    protected String ldapServerUrl;
    5873    public static final String LDAP_SERVER_KEY = "annotationmanager.ldapserver.url";
     
    6176    public static final String ADMIN_PASSWORD_KEY = "annotationmanager.admin.password";
    6277
     78    /**
     79     * run in authorization mode i.e. with tokens.
     80     */
     81    protected boolean authorizationMode = false;
     82    public static final String AUTHORIZATION_MODE_KEY = "annotationmanager.authorization";
     83   
    6384    /**
    6485     * constructor
     
    172193
    173194    /**
     195     * @return the authorizationMode
     196     */
     197    public boolean isAuthorizationMode() {
     198        return authorizationMode;
     199    }
     200
     201    /**
    174202     * @return the store
    175203     */
Note: See TracChangeset for help on using the changeset viewer.