|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.util.db.MySqlBase
orca.shirako.container.db.MySqlShirakoContainerDatabase
orca.manage.container.db.MySqlContainerManagementDatabase
public class MySqlContainerManagementDatabase
An implementation of CodManagementDatabase and PackageDatabase for MySql
| Field Summary | |
|---|---|
protected java.lang.String |
adminFirst
Admin name and login. |
protected java.lang.String |
adminLast
Admin name and login. |
protected java.lang.String |
adminLogin
Admin name and login. |
static java.lang.String |
DefaultCodManagementMapUrl
Default mapping file to use. |
static java.lang.String |
PropertyAdminFirst
First name of the admin user. |
static java.lang.String |
PropertyAdminLast
Last name of the admin user. |
static java.lang.String |
PropertyAdminLogin
Login for the admin user. |
static java.lang.String |
SiteName
Site name attribute. |
| Fields inherited from class orca.shirako.container.db.MySqlShirakoContainerDatabase |
|---|
DefaultMapUrl |
| Fields inherited from class orca.util.db.MySqlBase |
|---|
create, db, DefaultSchema, driverPath, joclFileLocation, logger, mapFile, mapper, mySqlPasswd, mySqlServer, mySqlServerPort, mySqlUser, pool, PropertyMySqlDb, PropertyMySqlPassword, PropertyMySqlPool, PropertyMySqlServer, PropertyMySqlServerPort, PropertyMySqlUser, resetState, schemaFile, source, TypeDefault |
| Constructor Summary | |
|---|---|
MySqlContainerManagementDatabase()
Create a new instance using the default mapping file |
|
| Method Summary | |
|---|---|
protected void |
addAdminUser()
Adds a record for the admin user, if necessary |
void |
addManagerObject(ManagerObject manager)
Registers a new manager object |
void |
addPackage(ExtensionPackage pack)
Add a new extension package record |
void |
addPlugin(Plugin plg)
Adds a new plugin record |
void |
addPortalPlugin(PortalPluginDescriptor descriptor)
Registers a new portal plugin |
void |
addUser(User user)
Creates a new user record |
void |
configure(java.util.Properties p)
|
java.util.Vector<java.util.Properties> |
getManagerObject(ID id)
Returns the specified manager object |
java.util.Vector<java.util.Properties> |
getManagerObjects()
Retrieves all manager object |
java.util.Vector<java.util.Properties> |
getManagerObjects(java.lang.String actorName)
Retrieves all manager objects associated with the given actor |
java.util.Vector<java.util.Properties> |
getManagerObjectsContainer()
Retrieves all manager objects that are not associated with actors |
java.util.Vector<java.util.Properties> |
getPackage(PackageId id)
Return the specified package record |
protected java.lang.String |
getPackageKeyFromId(PackageId id)
|
protected java.lang.String |
getPackageKeyFromId(PackageId id,
java.sql.Connection connection)
|
java.util.Vector<java.util.Properties> |
getPackages()
Return all package records |
java.util.Vector<java.util.Properties> |
getPlugin(PackageId packageId,
PluginId pluginId)
Returns the specified plugin record |
java.util.Vector<java.util.Properties> |
getPlugins(int type)
Returns all plugins that match the specified type |
java.util.Vector<java.util.Properties> |
getPlugins(int type,
int actorType)
Returns all plugins that match the specified type and are associated with the given actor type. |
java.util.Vector<java.util.Properties> |
getPlugins(PackageId packageId,
int type)
Returns all plugins that belong to the specified package and match the specified type. |
java.util.Vector<java.util.Properties> |
getPlugins(PackageId packageId,
int type,
int actorType)
Returns all plugins that belong to the specified package, match the type, and are associated with the given actor type. |
java.util.Vector<java.util.Properties> |
getPortalPlugin(java.lang.String key)
Returns the specified portal plugin |
java.util.Vector<java.util.Properties> |
getPortalPlugins()
Retrieves all registered portal plugins |
java.util.Vector<java.util.Properties> |
getPortalPlugins(java.lang.String actorName)
Retrieves all registered portal plugins for the given actor |
java.util.Vector<java.util.Properties> |
getPortalPluginsContainer()
Retrieves all portal plugins that are not associated with a specific actor. |
java.util.Vector<java.util.Properties> |
getUser(java.lang.String userName)
Retrieves the specified user record |
java.util.Vector<java.util.Properties> |
getUsers()
Retrieves all user records |
void |
initialize()
Initializes the object. |
void |
removeManagerObject(ID id)
Removes the specified manager object |
void |
removeManagerObjects(java.lang.String actorName)
Removes all manager objects associated with the specified actor |
void |
removePackage(PackageId id)
Removes the specified package record |
void |
removePlugin(PackageId packageId,
PluginId pluginId)
Removes the specified plugin record |
void |
removePlugins(PackageId packageId)
Removes all plugin records for the specified package |
void |
removePortalPlugin(java.lang.String key)
Removes the specified portal plugin |
void |
removePortalPlugins(java.lang.String actorName)
Removes all plugin records associated with the given actor. |
void |
removeUser(java.lang.String user)
Removes the specified user record |
void |
reset(java.util.Properties p)
De-serializes the object from the given properties list. |
void |
save(java.util.Properties p)
Serializes the object into the given properties list. |
void |
updateUser(User user)
Updates the specified user record |
| Methods inherited from class orca.shirako.container.db.MySqlShirakoContainerDatabase |
|---|
addActor, addContainerProperties, addProtocols, addTime, createSearchResults, createSearchResultsTyped, getActor, getActorIdFromName, getActorIdFromName, getActors, getActors, getContainerProperties, getProtocols, getTime, removeActor, removeActorDatabase, resetDB, revisit, updateActor, updateContainerProperties |
| Methods inherited from class orca.util.db.MySqlBase |
|---|
checkDb, checkDrivers, constructQueryPartial, getConnection, getDb, getLogger, getMySqlPasswd, getMySqlServer, getMySqlServerPort, getMySqlUser, getPoolConfigLocation, getSchemaString, getServerConnection, loadDrivers, returnConnection, save, setDb, setLogger, setMySqlPasswd, setMySqlServer, setMySqlServerPort, setMySqlUser, setPoolConfigLocation, setResetState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface orca.shirako.container.api.IShirakoContainerDatabase |
|---|
addActor, addProtocols, addTime, getActor, getActors, getActors, getProtocols, getTime, removeActor, removeActorDatabase, updateActor |
| Methods inherited from interface orca.container.api.IContainerDatabase |
|---|
addContainerProperties, getContainerProperties, getLogger, setLogger, setResetState, updateContainerProperties |
| Methods inherited from interface orca.shirako.api.ISerialize |
|---|
save |
| Field Detail |
|---|
public static java.lang.String PropertyAdminFirst
public static java.lang.String PropertyAdminLast
public static java.lang.String PropertyAdminLogin
public static java.lang.String DefaultCodManagementMapUrl
public static java.lang.String SiteName
protected java.lang.String adminFirst
protected java.lang.String adminLast
protected java.lang.String adminLogin
| Constructor Detail |
|---|
public MySqlContainerManagementDatabase()
| Method Detail |
|---|
public void initialize()
throws java.lang.Exception
IInitialize
initialize in interface IContainerDatabaseinitialize in interface IInitializeinitialize in class MySqlBasejava.lang.Exception
public void save(java.util.Properties p)
throws java.lang.Exception
ISerialize
save in interface ISerializesave in class MySqlBasep - properties list to serialize the object into
java.lang.Exception
public void configure(java.util.Properties p)
throws java.lang.Exception
configure in class MySqlBasejava.lang.Exception
public void reset(java.util.Properties p)
throws java.lang.Exception
ISerialize
reset in interface ISerializereset in class MySqlBasep - properties list containing the serialized version of
the object
java.lang.Exception
protected void addAdminUser()
throws java.lang.Exception
java.lang.Exception
public java.util.Vector<java.util.Properties> getUsers()
throws java.lang.Exception
IUserDatabase
getUsers in interface IUserDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getUser(java.lang.String userName)
throws java.lang.Exception
IUserDatabase
getUser in interface IUserDatabaseuserName - user name
java.lang.Exception
public void addUser(User user)
throws java.lang.Exception
IUserDatabase
addUser in interface IUserDatabaseuser - user
java.lang.Exception
public void updateUser(User user)
throws java.lang.Exception
IUserDatabase
updateUser in interface IUserDatabasejava.lang.Exception
public void removeUser(java.lang.String user)
throws java.lang.Exception
IUserDatabase
removeUser in interface IUserDatabasejava.lang.Exception
public void addPackage(ExtensionPackage pack)
throws java.lang.Exception
IPackageDatabase
addPackage in interface IPackageDatabasejava.lang.Exception
public void removePackage(PackageId id)
throws java.lang.Exception
IPackageDatabase
removePackage in interface IPackageDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getPackage(PackageId id)
throws java.lang.Exception
IPackageDatabase
getPackage in interface IPackageDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getPackages()
throws java.lang.Exception
IPackageDatabase
getPackages in interface IPackageDatabasejava.lang.Exception
protected java.lang.String getPackageKeyFromId(PackageId id,
java.sql.Connection connection)
throws java.lang.Exception
java.lang.Exception
protected java.lang.String getPackageKeyFromId(PackageId id)
throws java.lang.Exception
java.lang.Exception
public void addPlugin(Plugin plg)
throws java.lang.Exception
IPackageDatabase
addPlugin in interface IPackageDatabasejava.lang.Exception
public void removePlugin(PackageId packageId,
PluginId pluginId)
throws java.lang.Exception
IPackageDatabase
removePlugin in interface IPackageDatabasejava.lang.Exception
public void removePlugins(PackageId packageId)
throws java.lang.Exception
IPackageDatabase
removePlugins in interface IPackageDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getPlugins(PackageId packageId,
int type)
throws java.lang.Exception
IPackageDatabase
getPlugins in interface IPackageDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getPlugins(PackageId packageId,
int type,
int actorType)
throws java.lang.Exception
IPackageDatabase
getPlugins in interface IPackageDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getPlugins(int type,
int actorType)
throws java.lang.Exception
IPackageDatabase
getPlugins in interface IPackageDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getPlugins(int type)
throws java.lang.Exception
IPackageDatabase
getPlugins in interface IPackageDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getPlugin(PackageId packageId,
PluginId pluginId)
throws java.lang.Exception
IPackageDatabase
getPlugin in interface IPackageDatabasejava.lang.Exception
public void addPortalPlugin(PortalPluginDescriptor descriptor)
throws java.lang.Exception
IPortalPluginDatabase
addPortalPlugin in interface IPortalPluginDatabasejava.lang.Exception
public void removePortalPlugin(java.lang.String key)
throws java.lang.Exception
IPortalPluginDatabase
removePortalPlugin in interface IPortalPluginDatabasekey - Key identifying the portal plugin
java.lang.Exception
public void removePortalPlugins(java.lang.String actorName)
throws java.lang.Exception
IPortalPluginDatabase
removePortalPlugins in interface IPortalPluginDatabaseactorName - actor name
java.lang.Exception
public java.util.Vector<java.util.Properties> getPortalPlugin(java.lang.String key)
throws java.lang.Exception
IPortalPluginDatabase
getPortalPlugin in interface IPortalPluginDatabasekey - Key identifying the portal plugin
java.lang.Exception
public java.util.Vector<java.util.Properties> getPortalPlugins()
throws java.lang.Exception
IPortalPluginDatabase
getPortalPlugins in interface IPortalPluginDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getPortalPlugins(java.lang.String actorName)
throws java.lang.Exception
IPortalPluginDatabase
getPortalPlugins in interface IPortalPluginDatabaseactorName - actor name
java.lang.Exception
public java.util.Vector<java.util.Properties> getPortalPluginsContainer()
throws java.lang.Exception
IPortalPluginDatabase
getPortalPluginsContainer in interface IPortalPluginDatabasejava.lang.Exception
public void addManagerObject(ManagerObject manager)
throws java.lang.Exception
IManagerObjectDatabase
addManagerObject in interface IManagerObjectDatabasemanager - The manager object
java.lang.Exception
public void removeManagerObject(ID id)
throws java.lang.Exception
IManagerObjectDatabase
removeManagerObject in interface IManagerObjectDatabaseid - Unique identifier of the manager object
java.lang.Exception
public void removeManagerObjects(java.lang.String actorName)
throws java.lang.Exception
IManagerObjectDatabase
removeManagerObjects in interface IManagerObjectDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getManagerObject(ID id)
throws java.lang.Exception
IManagerObjectDatabase
getManagerObject in interface IManagerObjectDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getManagerObjects()
throws java.lang.Exception
IManagerObjectDatabase
getManagerObjects in interface IManagerObjectDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getManagerObjects(java.lang.String actorName)
throws java.lang.Exception
IManagerObjectDatabase
getManagerObjects in interface IManagerObjectDatabaseactorName - Name of the actor
java.lang.Exception
public java.util.Vector<java.util.Properties> getManagerObjectsContainer()
throws java.lang.Exception
IManagerObjectDatabase
getManagerObjectsContainer in interface IManagerObjectDatabasejava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||