fr.cnes.sitools.datasource.jdbc.dbexplorer
Class DBExplorerApplication

java.lang.Object
  extended by ExtendedWadlApplication
      extended by fr.cnes.sitools.common.application.SitoolsApplication
          extended by fr.cnes.sitools.datasource.jdbc.dbexplorer.DBExplorerApplication

public final class DBExplorerApplication
extends SitoolsApplication

Finder mapping a database resource

Author:
jp.boignard (AKKA Technologies)

Field Summary
static java.lang.String CONTEXT_KEY
          Context key
 
Constructor Summary
DBExplorerApplication(org.restlet.Context context, SitoolsSQLDataSource dataSource)
          Constructor
 
Method Summary
 org.restlet.Restlet createInboundRoot()
          -------------------------------------------------------------------------- -----------------------
 SitoolsSQLDataSource getDataSource()
          Get the DataSource
 org.restlet.security.MemoryRealm getRealms()
          Gets the realms value
 boolean isDeleteAllowed()
          Check if delete is allowed
 boolean isInsertAllowed()
          Check if insert is allowed
 boolean isModifiable()
          Indicates if modifications to local resources (most likely files) are allowed.
 boolean isSelectAllowed()
          Check if select is allowed
 boolean isUpdateAllowed()
          Check if update is allowed
 void setDeleteAllowed(boolean deleteAllowed)
          Set if delete is allowed
 void setInsertAllowed(boolean insertAllowed)
          Set if insert is allowed
 void setModifiable(boolean modifiable)
          Indicates if modifications to local resources are allowed.
 void setRealms(org.restlet.security.MemoryRealm realms)
          Sets the value of realms
 void setSelectAllowed(boolean selectAllowed)
          Set if select is allowed
 void setUpdateAllowed(boolean updateAllowed)
          Set if update is allowed
 void sitoolsDescribe()
          Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method, but overriding, prevents the self-describing functionality.
 
Methods inherited from class fr.cnes.sitools.common.application.SitoolsApplication
addSecurity, addSecurity, addSecurityFilter, defaultDescribe, getApplicationInfo, getAttachementRef, getAuthenticationRealm, getAuthorizer, getAuthorizer, getAuthorizer, getCategory, getId, getPublicBaseRef, getRepresentationInfoReferences, getSecure, getSettings, getSitoolsApplicationInfo, getType, getUserAuthorizer, isAuthorizationSecure, isUserAuthenticationNeeded, register, setAutoRegistration, setCategory, setId, setSitoolsApplicationInfo, setType, setUserAuthenticationNeeded, start, stop, unregister, wrapToResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_KEY

public static final java.lang.String CONTEXT_KEY
Context key

Constructor Detail

DBExplorerApplication

public DBExplorerApplication(org.restlet.Context context,
                             SitoolsSQLDataSource dataSource)
Constructor

Parameters:
context - RESTlet Host Context
dataSource - SQL DataSource
Method Detail

isSelectAllowed

public boolean isSelectAllowed()
Check if select is allowed

Returns:
boolean true if select is allowed

getRealms

public org.restlet.security.MemoryRealm getRealms()
Gets the realms value

Returns:
the realms

setRealms

public void setRealms(org.restlet.security.MemoryRealm realms)
Sets the value of realms

Parameters:
realms - the realms to set

getDataSource

public SitoolsSQLDataSource getDataSource()
Get the DataSource

Returns:
the DataSource

isUpdateAllowed

public boolean isUpdateAllowed()
Check if update is allowed

Returns:
true if update is allowed

isDeleteAllowed

public boolean isDeleteAllowed()
Check if delete is allowed

Returns:
true if delete is allowed

isInsertAllowed

public boolean isInsertAllowed()
Check if insert is allowed

Returns:
true if insert is allowed

isModifiable

public boolean isModifiable()
Indicates if modifications to local resources (most likely files) are allowed. Returns false by default.

Returns:
True if modifications to local resources are allowed.

setSelectAllowed

public void setSelectAllowed(boolean selectAllowed)
Set if select is allowed

Parameters:
selectAllowed - value to set

setUpdateAllowed

public void setUpdateAllowed(boolean updateAllowed)
Set if update is allowed

Parameters:
updateAllowed - value to set

setDeleteAllowed

public void setDeleteAllowed(boolean deleteAllowed)
Set if delete is allowed

Parameters:
deleteAllowed - value to set

setInsertAllowed

public void setInsertAllowed(boolean insertAllowed)
Set if insert is allowed

Parameters:
insertAllowed - value to set

setModifiable

public void setModifiable(boolean modifiable)
Indicates if modifications to local resources are allowed.

Parameters:
modifiable - True if modifications to local resources are allowed.

createInboundRoot

public org.restlet.Restlet createInboundRoot()
-------------------------------------------------------------------------- -----------------------


sitoolsDescribe

public void sitoolsDescribe()
Description copied from class: SitoolsApplication
Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method, but overriding, prevents the self-describing functionality.

Specified by:
sitoolsDescribe in class SitoolsApplication


Copyright © 2010-2013 CNES. All Rights Reserved.