|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openexchange.admin.storage.interfaces.OXToolStorageInterface com.openexchange.admin.storage.sqlStorage.OXToolSQLStorage
public abstract class OXToolSQLStorage
TODO remove this class because it has no functionality at all.
Constructor Summary | |
---|---|
OXToolSQLStorage()
|
Method Summary | |
---|---|
abstract boolean |
existsContext(Context ctx)
Although this method get's a context Object it will only look after the cid |
abstract boolean |
existsContextLoginMappings(Context ctx)
|
abstract boolean |
existsContextLoginMappings(Context ctx,
Connection configdb_connection)
|
abstract boolean |
existsDatabase(int db_id)
|
abstract boolean |
existsDatabaseName(String db_name)
Checks if given name is already used!Should be used in create method! |
abstract boolean |
existsGroup(Context ctx,
int gid)
|
abstract boolean |
existsGroup(Context ctx,
int[] gid)
|
abstract boolean |
existsGroupMember(Context ctx,
int group_ID,
int member_ID)
|
abstract boolean |
existsGroupMember(Context ctx,
int group_ID,
int[] user_ids)
|
abstract boolean |
existsGroupName(Context ctx,
String identifier)
Checks if given name is already used for a group in given context.Should be used in create method! |
abstract boolean |
existsReason(int rid)
|
abstract boolean |
existsReason(String reason)
|
abstract boolean |
existsResource(Context ctx,
int resource_id)
|
abstract boolean |
existsResourceAddress(Context ctx,
String address)
|
abstract boolean |
existsResourceName(Context ctx,
String identifier)
Checks if given name is already used for resource in given context!Should be used in create method! |
abstract boolean |
existsServer(int server_id)
|
abstract boolean |
existsServerID(int check_ID,
String table,
String field)
|
abstract boolean |
existsServerName(String server_name)
Checks if given name is already used!Should be used in create method! |
abstract boolean |
existsStore(int store_id)
|
abstract boolean |
existsStore(String url)
|
abstract boolean |
existsUser(Context ctx,
int uid)
|
abstract boolean |
existsUser(Context ctx,
int[] user_ids)
|
abstract boolean |
existsUserName(Context ctx,
String username)
Checks if given name is already used for an user in given context.Should be used in create method! |
abstract int |
getAdminForContext(Context ctx,
Connection con)
|
abstract int |
getDefaultGroupForContext(Context ctx,
Connection con)
|
abstract int |
getDefaultGroupForContextWithOutConnection(Context ctx)
|
abstract int |
getGidNumberOfGroup(Context ctx,
int group_id,
Connection con)
Gets the system's GID for specified group. |
abstract boolean |
isContextAdmin(Context ctx,
int user_id)
|
abstract boolean |
isContextEnabled(Context ctx)
|
abstract boolean |
isMasterDatabase(int database_id)
|
abstract boolean |
poolInUse(int pool_id)
|
abstract boolean |
serverInUse(int server_id)
|
abstract boolean |
storeInUse(int store_id)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OXToolSQLStorage()
Method Detail |
---|
public abstract boolean existsContext(Context ctx) throws StorageException
OXToolStorageInterface
existsContext
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#existsContext(int)
public abstract boolean existsDatabase(int db_id) throws StorageException
existsDatabase
in class OXToolStorageInterface
StorageException
OXToolStorageInterface.existsDatabase(int)
public abstract boolean existsDatabaseName(String db_name) throws StorageException
OXToolStorageInterface
existsDatabaseName
in class OXToolStorageInterface
StorageException
OXToolStorageInterface.existsDatabaseName(java.lang.String)
public abstract boolean existsGroup(Context ctx, int gid) throws StorageException
existsGroup
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#existsGroup(int,
int)
public abstract boolean existsContextLoginMappings(Context ctx, Connection configdb_connection) throws StorageException
existsContextLoginMappings
in class OXToolStorageInterface
StorageException
public abstract boolean existsContextLoginMappings(Context ctx) throws StorageException
existsContextLoginMappings
in class OXToolStorageInterface
StorageException
public abstract boolean existsGroup(Context ctx, int[] gid) throws StorageException
existsGroup
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#existsGroup(int,
int[])
public abstract boolean existsGroupName(Context ctx, String identifier) throws StorageException
OXToolStorageInterface
existsGroupName
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#existsGroupName(int,
java.lang.String)
public abstract boolean existsGroupMember(Context ctx, int group_ID, int[] user_ids) throws StorageException
existsGroupMember
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#existsGroupMember(int,
int, int[])
public abstract boolean existsGroupMember(Context ctx, int group_ID, int member_ID) throws StorageException
existsGroupMember
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#existsGroupMember(int,
int, int)
public abstract boolean existsReason(int rid) throws StorageException
existsReason
in class OXToolStorageInterface
StorageException
OXToolStorageInterface.existsReason(int)
public abstract boolean existsReason(String reason) throws StorageException
existsReason
in class OXToolStorageInterface
StorageException
OXToolStorageInterface.existsReason(java.lang.String)
public abstract boolean existsResourceAddress(Context ctx, String address) throws StorageException
existsResourceAddress
in class OXToolStorageInterface
StorageException
public abstract boolean existsResourceName(Context ctx, String identifier) throws StorageException
OXToolStorageInterface
existsResourceName
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#existsResource(int,
java.lang.String, int)
public abstract boolean existsResource(Context ctx, int resource_id) throws StorageException
existsResource
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#existsResource(int,
int)
public abstract boolean existsServer(int server_id) throws StorageException
existsServer
in class OXToolStorageInterface
StorageException
OXToolStorageInterface.existsServer(int)
public abstract boolean existsServerName(String server_name) throws StorageException
OXToolStorageInterface
existsServerName
in class OXToolStorageInterface
StorageException
OXToolStorageInterface.existsServerName(java.lang.String)
public abstract boolean existsServerID(int check_ID, String table, String field) throws StorageException
existsServerID
in class OXToolStorageInterface
StorageException
OXToolStorageInterface.existsServerID(int,
java.lang.String, java.lang.String)
public abstract boolean existsStore(int store_id) throws StorageException
existsStore
in class OXToolStorageInterface
StorageException
OXToolStorageInterface.existsStore(int)
public abstract boolean existsStore(String url) throws StorageException
existsStore
in class OXToolStorageInterface
StorageException
OXToolStorageInterface.existsStore(java.lang.String)
public abstract boolean existsUserName(Context ctx, String username) throws StorageException
OXToolStorageInterface
existsUserName
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#existsUserName(int,
java.lang.String)
public abstract boolean existsUser(Context ctx, int uid) throws StorageException
existsUser
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#existsUser(int,
int)
public abstract boolean existsUser(Context ctx, int[] user_ids) throws StorageException
existsUser
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#existsUser(int,
int[])
public abstract int getAdminForContext(Context ctx, Connection con) throws StorageException
getAdminForContext
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#getAdminForContext(int,
java.sql.Connection)
public abstract int getDefaultGroupForContext(Context ctx, Connection con) throws StorageException
getDefaultGroupForContext
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#getDefaultGroupForContext(int,
java.sql.Connection)
public abstract int getDefaultGroupForContextWithOutConnection(Context ctx) throws StorageException
getDefaultGroupForContextWithOutConnection
in class OXToolStorageInterface
StorageException
public abstract int getGidNumberOfGroup(Context ctx, int group_id, Connection con) throws StorageException
OXToolStorageInterface
getGidNumberOfGroup
in class OXToolStorageInterface
ctx
- The contextgroup_id
- The group IDcon
- A connection with at least read-only permission
-1
if no GID is set.
StorageException
- If a storage error occurs or group does not existpublic abstract boolean isContextAdmin(Context ctx, int user_id) throws StorageException
isContextAdmin
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#isContextAdmin(int,
int)
public abstract boolean isContextEnabled(Context ctx) throws StorageException
isContextEnabled
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#isContextEnabled(int)
public abstract boolean isMasterDatabase(int database_id) throws StorageException
isMasterDatabase
in class OXToolStorageInterface
StorageException
OXToolStorageInterface.isMasterDatabase(int)
public abstract boolean poolInUse(int pool_id) throws StorageException
poolInUse
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#poolInUse(long)
public abstract boolean serverInUse(int server_id) throws StorageException
serverInUse
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#serverInUse(long)
public abstract boolean storeInUse(int store_id) throws StorageException
storeInUse
in class OXToolStorageInterface
StorageException
com.openexchange.admin.storage.interfaces.OXToolStorageInterface#storeInUse(long)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |