| com.methodhead.persistable.Persistable com.methodhead.transfer.SiteExtension
SiteExtension | public class SiteExtension extends Persistable (Code) | | A SiteExtension. The following fields are defined:
- int sitecontext_id = 0
- String class_name = ""
- boolean enabled = true
|
Field Summary | |
final public static String | PROPERTY_EXTENSIONS Property storing comma-separated list of extensions installed on the
system. |
PROPERTY_EXTENSIONS | final public static String PROPERTY_EXTENSIONS(Code) | | Property storing comma-separated list of extensions installed on the
system.
|
SiteExtension | public SiteExtension()(Code) | | |
SiteExtension | public SiteExtension(DynaClass dynaClass)(Code) | | |
delete | public void delete()(Code) | | Deletes the site extension. It should already be loaded or have its
sitecontext_id and class_name properties set.
|
getExtensionsForSiteContext | public Extension[] getExtensionsForSiteContext(SiteContext siteContext)(Code) | | Returns extensions for siteContext.
|
getInstalledExtensions | public Extension[] getInstalledExtensions()(Code) | | Returns the extensions installed on the system. These extensions are
defined by the comma-separated list of class names stored in the
SiteExtension.PROPERTY_EXTENSIONS property of the default site context.
|
instantiateExtension | public static Extension instantiateExtension(String className)(Code) | | Instantiates className.
|
isExtensionActive | public boolean isExtensionActive(SiteContext siteContext, String className)(Code) | | Returns true if the extension provided by
className exists and is enabled for siteContext .
|
load | public void load(SiteContext siteContext, String className)(Code) | | Loads the site extension for siteContext and className.
|
loadAllForSiteContext | public List loadAllForSiteContext(SiteContext siteContext)(Code) | | Loads all SiteExtensions for siteContext ordered by class_name.
|
save | public void save()(Code) | | Saves the site extension. It should already be loaded or have its
sitecontext_id and class_name properties set.
|
Methods inherited from com.methodhead.persistable.Persistable | public static void deleteAll(DynaClass dynaClass, String whereClause) throws PersistableException(Code)(Java Doc) public void deleteAll(String whereClause) throws PersistableException(Code)(Java Doc) public boolean getBoolean(String property)(Code)(Java Doc) public Date getDate(String property)(Code)(Java Doc) public double getDouble(String property)(Code)(Java Doc) public int getInt(String property)(Code)(Java Doc) public static String getSqlLiteral(String value)(Code)(Java Doc) public static String getSqlLiteral(Boolean value)(Code)(Java Doc) public static String getSqlLiteral(Date value)(Code)(Java Doc) protected String getSqlLiteral(DynaProperty dynaProperty)(Code)(Java Doc) public String getString(String property)(Code)(Java Doc) public void load(String whereClause)(Code)(Java Doc) public static List loadAll(DynaClass dynaClass, String whereClause, String orderByClause)(Code)(Java Doc) public List loadAll(String whereClause, String orderByClause)(Code)(Java Doc) public void save(String whereClause) throws PersistableException(Code)(Java Doc) public void saveNew()(Code)(Java Doc) public void setAsObject(String property, Object value)(Code)(Java Doc) public void setAsString(String property, String value)(Code)(Java Doc) public void setBoolean(String property, boolean value)(Code)(Java Doc) public void setDate(String property, Date value)(Code)(Java Doc) public void setDouble(String property, double value)(Code)(Java Doc) public void setInt(String property, int value)(Code)(Java Doc) protected static void setProperty(DynaBean persistable, DynaProperty dynaProperty, ResultSet rs)(Code)(Java Doc) public void setString(String property, String value)(Code)(Java Doc)
|
|
|