Hello Jody,

we are using the Oracle Datastore an your solution does not work.

We have implemented it as follows:

FeatureSource fs = dataStore.getFeatureSource(typeName);
if (fs instanceof FeatureStore){
        return false;
}

We connect to the Schema with an user with select-rights only.

But the fs instanceof FeatureStore returns true.

Is this not usable for JDBCDataSources?


Tim

-----Ursprüngliche Nachricht-----
Von: Jody Garnett [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 19. Juli 2007 19:48
An: Tim Englich
Cc: [email protected]
Betreff: Re: [Geotools-gt2-users] Determining if a Schema of an
DataStore is ReadOnly


Yes - you can check the returned instance from 
DataStore.getFeatureSource( typeName )

If the instance is a FeatureStore you have read/write access. If the 
instance is *just* a FeatureSource then you only have read access.

Cheers,
Jody
> Hello everyone,
>
> I am searching for an possibility to determine if an schema of an DataStore
> (OracleDataStore) is readonly. I need this Information to disable the
editing
> possibility of an Layer in the GUI if an schema is readonly.
>
> Is there any chance to determine it.
>
> - Tim
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to