Nachhalten der Änderungen in subsite in allgemeinen Modulen, verschiedene Formatierungen, Dokumentation.
git-svn-id: https://svn.libreccm.org/ccm/trunk@1333 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
95a8856bf0
commit
b48d60cd60
|
|
@ -27,8 +27,8 @@ import com.arsdigita.persistence.metadata.CompoundType;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the base class that all other domain query classes
|
* This is the base class that all other domain query classes would extend.
|
||||||
* would extend. It provides a facade on to a contained <code>DataQuery</code>.
|
* It provides a facade on to a contained <code>DataQuery</code>.
|
||||||
*
|
*
|
||||||
* @see com.arsdigita.persistence.DataQuery
|
* @see com.arsdigita.persistence.DataQuery
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -97,23 +97,27 @@ import org.apache.log4j.Logger;
|
||||||
* <p>
|
* <p>
|
||||||
* <b>Persistence Details:</b> The default constructor of
|
* <b>Persistence Details:</b> The default constructor of
|
||||||
* <code>ACSObjectSelectionModel</code> will attempt to use the
|
* <code>ACSObjectSelectionModel</code> will attempt to use the
|
||||||
* {@link DomainObjectFactory} to automatically instantiate the correct Java subclass
|
* {@link DomainObjectFactory} to automatically instantiate the correct Java
|
||||||
* of {@link ACSObject}. However, it is also possible to use an alternate constructor
|
* subclass of {@link ACSObject}. However, it is also possible to use an
|
||||||
* in order to force the <code>ACSObjectSelectionModel</code> to manually instantiate
|
* alternate constructor in order to force the <code>ACSObjectSelectionModel</code>
|
||||||
* the objects:
|
* to manually instantiate the objects:
|
||||||
*
|
*
|
||||||
* <blockquote><pre><code>ACSObjectSelectionModel model = new ACSObjectSelectionModel("com.arsdigita.cms.Article", "com.arsdigita.cms.Article", "item_id");</code></pre></blockquote>
|
* <blockquote><pre><code>
|
||||||
|
* ACSObjectSelectionModel model =
|
||||||
|
* new ACSObjectSelectionModel("com.arsdigita.cms.Article",
|
||||||
|
* "com.arsdigita.cms.Article", "item_id");
|
||||||
|
* </code></pre></blockquote>
|
||||||
*
|
*
|
||||||
* In this case, the model will attempt to use reflection to instantiate the correct
|
* In this case, the model will attempt to use reflection to instantiate the
|
||||||
* subclass of <code>ACSObject</code>. In addition, the supplementary
|
* correct subclass of <code>ACSObject</code>. In addition, the supplementary
|
||||||
* constructor makes it possible to create new objects in the database
|
* constructor makes it possible to create new objects in the database
|
||||||
* using the {@link #createACSObject(BigDecimal)} method.
|
* using the {@link #createACSObject(BigDecimal)} method.
|
||||||
*
|
*
|
||||||
* @version $Id: ACSObjectSelectionModel.java 287 2005-02-22 00:29:02Z sskracic $
|
|
||||||
* @author Stanislav Freidin
|
|
||||||
* @see com.arsdigita.bebop.SingleSelectionModel
|
* @see com.arsdigita.bebop.SingleSelectionModel
|
||||||
* @see com.arsdigita.bebop.ParameterSingleSelectionModel
|
* @see com.arsdigita.bebop.ParameterSingleSelectionModel
|
||||||
*
|
*
|
||||||
|
* @author Stanislav Freidin
|
||||||
|
* @version $Id: ACSObjectSelectionModel.java 287 2005-02-22 00:29:02Z sskracic $
|
||||||
*/
|
*/
|
||||||
public class ACSObjectSelectionModel implements DomainObjectSelectionModel {
|
public class ACSObjectSelectionModel implements DomainObjectSelectionModel {
|
||||||
|
|
||||||
|
|
@ -178,9 +182,9 @@ public class ACSObjectSelectionModel implements DomainObjectSelectionModel {
|
||||||
* @param parameterName The name of the state parameter which will
|
* @param parameterName The name of the state parameter which will
|
||||||
* be used to store the object ID.
|
* be used to store the object ID.
|
||||||
*/
|
*/
|
||||||
public ACSObjectSelectionModel(
|
public ACSObjectSelectionModel( String javaClass,
|
||||||
String javaClass, String objectType, String parameterName
|
String objectType,
|
||||||
) {
|
String parameterName ) {
|
||||||
this(javaClass, objectType, new BigDecimalParameter(parameterName));
|
this(javaClass, objectType, new BigDecimalParameter(parameterName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -197,9 +201,9 @@ public class ACSObjectSelectionModel implements DomainObjectSelectionModel {
|
||||||
* @param parameter The state parameter which should be used to store
|
* @param parameter The state parameter which should be used to store
|
||||||
* the object ID
|
* the object ID
|
||||||
*/
|
*/
|
||||||
public ACSObjectSelectionModel(
|
public ACSObjectSelectionModel( String javaClass,
|
||||||
String javaClass, String objectType, BigDecimalParameter parameter
|
String objectType,
|
||||||
) {
|
BigDecimalParameter parameter ) {
|
||||||
this(javaClass, objectType,
|
this(javaClass, objectType,
|
||||||
new ParameterSingleSelectionModel(parameter));
|
new ParameterSingleSelectionModel(parameter));
|
||||||
}
|
}
|
||||||
|
|
@ -217,9 +221,9 @@ public class ACSObjectSelectionModel implements DomainObjectSelectionModel {
|
||||||
* @param model The {@link SingleSelectionModel} which will supply
|
* @param model The {@link SingleSelectionModel} which will supply
|
||||||
* a {@link BigDecimal} ID of the currently selected object
|
* a {@link BigDecimal} ID of the currently selected object
|
||||||
*/
|
*/
|
||||||
public ACSObjectSelectionModel(
|
public ACSObjectSelectionModel( String javaClass,
|
||||||
String javaClass, String objectType, SingleSelectionModel model
|
String objectType,
|
||||||
) {
|
SingleSelectionModel model ) {
|
||||||
m_loaded = new RequestLocal() {
|
m_loaded = new RequestLocal() {
|
||||||
protected Object initialValue(PageState state) {
|
protected Object initialValue(PageState state) {
|
||||||
return Boolean.FALSE;
|
return Boolean.FALSE;
|
||||||
|
|
@ -232,9 +236,8 @@ public class ACSObjectSelectionModel implements DomainObjectSelectionModel {
|
||||||
m_javaClass = Class.forName(javaClass);
|
m_javaClass = Class.forName(javaClass);
|
||||||
m_constructor = m_javaClass.getConstructor(new Class[]{OID.class});
|
m_constructor = m_javaClass.getConstructor(new Class[]{OID.class});
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new UncheckedWrapperException(
|
throw new UncheckedWrapperException( "Problem loading class "
|
||||||
"Problem loading class " + javaClass, e
|
+ javaClass, e );
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,6 @@ log4j.logger.com.arsdigita.packaging.Loader=INFO
|
||||||
#com.arsdigita.london.rss.RSSService=DEBUG
|
#com.arsdigita.london.rss.RSSService=DEBUG
|
||||||
#com.arsdigita.london.search.Search=DEBUG
|
#com.arsdigita.london.search.Search=DEBUG
|
||||||
#com.arsdigita.london.shortcuts.Shortcuts=DEBUG
|
#com.arsdigita.london.shortcuts.Shortcuts=DEBUG
|
||||||
#com.arsdigita.london.subsite.Subsite=DEBUG
|
|
||||||
#kea.stemmers.LovinsStemmer=DEBUG
|
#kea.stemmers.LovinsStemmer=DEBUG
|
||||||
#kea.stemmers.StopwordsFrench=DEBUG
|
#kea.stemmers.StopwordsFrench=DEBUG
|
||||||
#kea.stemmers.StopwordsSpanish=DEBUG
|
#kea.stemmers.StopwordsSpanish=DEBUG
|
||||||
|
|
@ -182,3 +181,4 @@ log4j.logger.com.arsdigita.packaging.Loader=INFO
|
||||||
#com.arsdigita.cms.contenttypes.SciMember=DEBUG
|
#com.arsdigita.cms.contenttypes.SciMember=DEBUG
|
||||||
#com.arsdigita.cms.webpage.installer.Initializer=DEBUG
|
#com.arsdigita.cms.webpage.installer.Initializer=DEBUG
|
||||||
|
|
||||||
|
#com.arsdigita.subsite.Subsite=DEBUG
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ bebop List or Table class:
|
||||||
This generates XML looking like:
|
This generates XML looking like:
|
||||||
|
|
||||||
<subsite:siteListing>
|
<subsite:siteListing>
|
||||||
<object oid="[com.arsdigita.london.subsite.Site:{id=30008}]">
|
<object oid="[com.arsdigita.subsite.Site:{id=30008}]">
|
||||||
<id>30008</id>
|
<id>30008</id>
|
||||||
<title>Another Site</title>
|
<title>Another Site</title>
|
||||||
<description>Some other stuff</description>
|
<description>Some other stuff</description>
|
||||||
|
|
@ -80,7 +80,7 @@ This generates XML looking like:
|
||||||
<primaryURL>/portal/some.example.com/</primaryURL>
|
<primaryURL>/portal/some.example.com/</primaryURL>
|
||||||
</frontPage>
|
</frontPage>
|
||||||
</object>
|
</object>
|
||||||
<object oid="[com.arsdigita.london.subsite.Site:{id=32018}]">
|
<object oid="[com.arsdigita.subsite.Site:{id=32018}]">
|
||||||
<id>32018</id>
|
<id>32018</id>
|
||||||
<title>My Site</title>
|
<title>My Site</title>
|
||||||
<description>Some stuff</description>
|
<description>Some stuff</description>
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ import com.arsdigita.portalworkspace.Workspace;
|
||||||
import com.arsdigita.portalworkspace.WorkspacePage;
|
import com.arsdigita.portalworkspace.WorkspacePage;
|
||||||
import com.arsdigita.portalworkspace.WorkspacePageCollection;
|
import com.arsdigita.portalworkspace.WorkspacePageCollection;
|
||||||
|
|
||||||
import com.arsdigita.london.subsite.Subsite;
|
import com.arsdigita.subsite.Subsite;
|
||||||
|
|
||||||
import com.arsdigita.util.Assert;
|
import com.arsdigita.util.Assert;
|
||||||
import com.arsdigita.util.UncheckedWrapperException;
|
import com.arsdigita.util.UncheckedWrapperException;
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,9 @@ import com.arsdigita.categorization.Category;
|
||||||
import com.arsdigita.cms.ContentType;
|
import com.arsdigita.cms.ContentType;
|
||||||
import com.arsdigita.domain.DomainCollection;
|
import com.arsdigita.domain.DomainCollection;
|
||||||
import com.arsdigita.navigation.DataCollectionDefinition;
|
import com.arsdigita.navigation.DataCollectionDefinition;
|
||||||
import com.arsdigita.london.subsite.Site;
|
import com.arsdigita.subsite.Site;
|
||||||
import com.arsdigita.london.subsite.Subsite;
|
import com.arsdigita.subsite.Subsite;
|
||||||
import com.arsdigita.london.subsite.SubsiteContext;
|
import com.arsdigita.subsite.SubsiteContext;
|
||||||
import com.arsdigita.persistence.DataAssociation;
|
import com.arsdigita.persistence.DataAssociation;
|
||||||
import com.arsdigita.persistence.DataAssociationCursor;
|
import com.arsdigita.persistence.DataAssociationCursor;
|
||||||
import com.arsdigita.persistence.DataObject;
|
import com.arsdigita.persistence.DataObject;
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,7 @@ public class Workspace extends Application {
|
||||||
/** Config object containing various parameter */
|
/** Config object containing various parameter */
|
||||||
private static final WorkspaceConfig s_config = WorkspaceConfig.getConfig();
|
private static final WorkspaceConfig s_config = WorkspaceConfig.getConfig();
|
||||||
|
|
||||||
|
/** Service method to provide client classes access to configuration. */
|
||||||
public static WorkspaceConfig getConfig() {
|
public static WorkspaceConfig getConfig() {
|
||||||
return s_config;
|
return s_config;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,21 +26,19 @@ import com.arsdigita.web.Application;
|
||||||
import com.arsdigita.web.Web;
|
import com.arsdigita.web.Web;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This selection model has a default value which will be return when nothing is
|
* This selection model adds an (optional?) default value which will be returned
|
||||||
* selected.
|
* when nothing is selected.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class ApplicationSelectionModel extends ACSObjectSelectionModel {
|
public class ApplicationSelectionModel extends ACSObjectSelectionModel {
|
||||||
|
|
||||||
// public static final BigDecimalParameter PARAM =
|
|
||||||
// (BigDecimalParameter)PermissionsPane.getObjectIDParam();
|
|
||||||
|
|
||||||
public static final String DEFAULT_PARAM_NAME = "app_id";
|
public static final String DEFAULT_PARAM_NAME = "app_id";
|
||||||
|
|
||||||
private boolean m_hasDefaultValue;
|
private boolean m_hasDefaultValue;
|
||||||
|
|
||||||
|
/** Creates a s_logging category with name = full name of class */
|
||||||
private static final Logger s_log = Logger
|
private static final Logger s_log = Logger
|
||||||
.getLogger(ApplicationSelectionModel.class);
|
.getLogger(ApplicationSelectionModel.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
|
@ -112,6 +110,7 @@ public class ApplicationSelectionModel extends ACSObjectSelectionModel {
|
||||||
* Override ACSObjectSelectionModel methods to default to the default
|
* Override ACSObjectSelectionModel methods to default to the default
|
||||||
* Application
|
* Application
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isSelected(PageState state) {
|
public boolean isSelected(PageState state) {
|
||||||
if (m_hasDefaultValue && !super.isSelected(state)) {
|
if (m_hasDefaultValue && !super.isSelected(state)) {
|
||||||
return (getDefaultApplication() != null);
|
return (getDefaultApplication() != null);
|
||||||
|
|
@ -124,6 +123,7 @@ public class ApplicationSelectionModel extends ACSObjectSelectionModel {
|
||||||
* @param state
|
* @param state
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public DomainObject getSelectedObject(PageState state) {
|
public DomainObject getSelectedObject(PageState state) {
|
||||||
if (m_hasDefaultValue && !super.isSelected(state)) {
|
if (m_hasDefaultValue && !super.isSelected(state)) {
|
||||||
return getDefaultApplication();
|
return getDefaultApplication();
|
||||||
|
|
@ -137,6 +137,7 @@ public class ApplicationSelectionModel extends ACSObjectSelectionModel {
|
||||||
* @param state
|
* @param state
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public Object getSelectedKey(PageState state) {
|
public Object getSelectedKey(PageState state) {
|
||||||
if (m_hasDefaultValue && !super.isSelected(state)) {
|
if (m_hasDefaultValue && !super.isSelected(state)) {
|
||||||
return getDefaultApplication();
|
return getDefaultApplication();
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import com.arsdigita.bebop.FormProcessException;
|
||||||
import com.arsdigita.bebop.GridPanel;
|
import com.arsdigita.bebop.GridPanel;
|
||||||
import com.arsdigita.bebop.Label;
|
import com.arsdigita.bebop.Label;
|
||||||
import com.arsdigita.bebop.List;
|
import com.arsdigita.bebop.List;
|
||||||
import com.arsdigita.bebop.Page;
|
// import com.arsdigita.bebop.Page;
|
||||||
import com.arsdigita.bebop.PageState;
|
import com.arsdigita.bebop.PageState;
|
||||||
import com.arsdigita.bebop.RequestLocal;
|
import com.arsdigita.bebop.RequestLocal;
|
||||||
import com.arsdigita.bebop.SimpleContainer;
|
import com.arsdigita.bebop.SimpleContainer;
|
||||||
|
|
@ -48,10 +48,10 @@ import com.arsdigita.bebop.form.TextField;
|
||||||
import com.arsdigita.bebop.form.Submit;
|
import com.arsdigita.bebop.form.Submit;
|
||||||
import com.arsdigita.bebop.parameters.StringParameter;
|
import com.arsdigita.bebop.parameters.StringParameter;
|
||||||
import com.arsdigita.bebop.parameters.NotEmptyValidationListener;
|
import com.arsdigita.bebop.parameters.NotEmptyValidationListener;
|
||||||
import com.arsdigita.domain.DomainObject;
|
// import com.arsdigita.domain.DomainObject;
|
||||||
import com.arsdigita.kernel.Group;
|
import com.arsdigita.kernel.Group;
|
||||||
import com.arsdigita.kernel.PartyCollection;
|
import com.arsdigita.kernel.PartyCollection;
|
||||||
import com.arsdigita.kernel.ui.ACSObjectSelectionModel;
|
// import com.arsdigita.kernel.ui.ACSObjectSelectionModel;
|
||||||
import com.arsdigita.kernel.Kernel;
|
import com.arsdigita.kernel.Kernel;
|
||||||
import com.arsdigita.kernel.KernelExcursion;
|
import com.arsdigita.kernel.KernelExcursion;
|
||||||
import com.arsdigita.kernel.Role;
|
import com.arsdigita.kernel.Role;
|
||||||
|
|
@ -70,6 +70,7 @@ import com.arsdigita.portalworkspace.ui.ParticipantBrowsePane;
|
||||||
import com.arsdigita.portalworkspace.ui.PortalConstants;
|
import com.arsdigita.portalworkspace.ui.PortalConstants;
|
||||||
import com.arsdigita.london.util.ui.DomainObjectSelectionModel;
|
import com.arsdigita.london.util.ui.DomainObjectSelectionModel;
|
||||||
import com.arsdigita.persistence.OID;
|
import com.arsdigita.persistence.OID;
|
||||||
|
//?
|
||||||
import com.arsdigita.toolbox.ui.ACSObjectCollectionListModel;
|
import com.arsdigita.toolbox.ui.ACSObjectCollectionListModel;
|
||||||
import com.arsdigita.toolbox.ui.IteratorListModel;
|
import com.arsdigita.toolbox.ui.IteratorListModel;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ import org.apache.log4j.Logger;
|
||||||
* Loader.
|
* Loader.
|
||||||
*
|
*
|
||||||
* @author Randy Graebner <randyg@redhat.com>
|
* @author Randy Graebner <randyg@redhat.com>
|
||||||
|
* @author Peter Boy <pboy@barkhof.uni-bremen.de>
|
||||||
* @version $Id: Loader.java 2004 2009-10-03 22:23:08Z pboy $
|
* @version $Id: Loader.java 2004 2009-10-03 22:23:08Z pboy $
|
||||||
*/
|
*/
|
||||||
public class Loader extends PackageLoader implements ThemeDirectorConstants {
|
public class Loader extends PackageLoader implements ThemeDirectorConstants {
|
||||||
|
|
@ -59,8 +60,7 @@ public class Loader extends PackageLoader implements ThemeDirectorConstants {
|
||||||
* to lower case.
|
* to lower case.
|
||||||
* Example: "Theme Director" will become "theme-director".
|
* Example: "Theme Director" will become "theme-director".
|
||||||
*
|
*
|
||||||
* Creates an entry in table application_types and a corresponding entry in
|
* Creates an entry in table application_types
|
||||||
* apm_package_types
|
|
||||||
*/
|
*/
|
||||||
private void setupThemeDirector() {
|
private void setupThemeDirector() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ import org.apache.log4j.Logger;
|
||||||
*/
|
*/
|
||||||
public class ThemeDirector extends Application {
|
public class ThemeDirector extends Application {
|
||||||
|
|
||||||
|
/** A logger instance, primarily to assist debugging . */
|
||||||
private static final Logger s_log = Logger.getLogger(ThemeDirector.class);
|
private static final Logger s_log = Logger.getLogger(ThemeDirector.class);
|
||||||
|
|
||||||
public static final String DEFAULT_THEME = "defaultTheme";
|
public static final String DEFAULT_THEME = "defaultTheme";
|
||||||
|
|
@ -38,14 +39,11 @@ public class ThemeDirector extends Application {
|
||||||
public static final String BASE_DATA_OBJECT_TYPE =
|
public static final String BASE_DATA_OBJECT_TYPE =
|
||||||
"com.arsdigita.themedirector.ThemeDirector";
|
"com.arsdigita.themedirector.ThemeDirector";
|
||||||
|
|
||||||
public static ThemeDirectorConfig s_config = new ThemeDirectorConfig();
|
/** Config object containing various parameter */
|
||||||
|
private static final ThemeDirectorConfig s_config =
|
||||||
static {
|
ThemeDirectorConfig.getConfig();
|
||||||
s_log.debug("Static initalizer starting...");
|
|
||||||
s_config.load();
|
|
||||||
s_log.debug("Static initalizer finished.");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/** Service method to provide clients access to configuration. */
|
||||||
public static ThemeDirectorConfig getConfig() {
|
public static ThemeDirectorConfig getConfig() {
|
||||||
return s_config;
|
return s_config;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<%@ page import = "com.arsdigita.web.LoginSignal" %>
|
<%@ page import = "com.arsdigita.web.LoginSignal" %>
|
||||||
<%@ page import = "org.apache.log4j.Logger" %>
|
<%@ page import = "org.apache.log4j.Logger" %>
|
||||||
<%@ page import = "com.arsdigita.dispatcher.AccessDeniedException" %>
|
<%@ page import = "com.arsdigita.dispatcher.AccessDeniedException" %>
|
||||||
<%@ page import = "com.arsdigita.london.subsite.Site" %>
|
<%@ page import = "com.arsdigita.subsite.Site" %>
|
||||||
<%@ page import = "java.math.BigDecimal" %>
|
<%@ page import = "java.math.BigDecimal" %>
|
||||||
<%@ page import = "com.arsdigita.domain.DataObjectNotFoundException" %>
|
<%@ page import = "com.arsdigita.domain.DataObjectNotFoundException" %>
|
||||||
<%@ page import = "com.arsdigita.persistence.SessionManager" %>
|
<%@ page import = "com.arsdigita.persistence.SessionManager" %>
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,6 @@
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
version="1.0" >
|
version="1.0" >
|
||||||
|
|
||||||
<xsl:import href="../../../../ccm-ldn-subsite/__ccm__/apps/subsite/xsl/index.xsl"/>
|
<xsl:import href="../../heirloom/apps/subsite/xsl/index.xsl"/>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue