Minor formatting / documentation / removal of unused code.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2080 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
c806629e1e
commit
d9ee3f77a8
|
|
@ -20,7 +20,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
* Form to edit the basic properties of an event. This form can be extended to
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
package com.arsdigita.cms.contenttypes.util;
|
||||
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
|
||||
import java.util.PropertyResourceBundle;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
* Form to edit the basic properties of an event. This form can be extended to
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
* Form to edit the basic properties of an event. This form can be extended to
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
* Form to edit the basic properties of an event. This form can be extended to
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
* Resource Bundle used in UI for Image ContentType.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
public class MemberResourceBundle extends ChainedResourceBundle implements CMSGlobalized {
|
||||
public static final String MEMBER_BUNDLE_NAME =
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
* Form to edit the basic properties of an motd. This form can be extended to
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
* Form to edit the basic properties of an event. This form can be extended to
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
* Resource Bundle used in UI for Newsitem ContentType.
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
* Form to edit the basic properties of an event. This form can be extended to
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
public class PersonResourceBundle extends ChainedResourceBundle implements CMSGlobalized {
|
||||
public static final String PERSON_BUNDLE_NAME =
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import java.util.PropertyResourceBundle;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
* Resource Bundle used in UI for Address ContentType.
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import java.util.PropertyResourceBundle;
|
|||
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
public class SurveyResourceBundle extends ChainedResourceBundle implements CMSGlobalized {
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ package com.arsdigita.cms.contenttypes.util;
|
|||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
public class ContenttypesResourceBundle extends ChainedResourceBundle implements CMSGlobalized {
|
||||
public static final String MEMBER_BUNDLE_NAME =
|
||||
|
|
|
|||
|
|
@ -23,6 +23,14 @@ import com.arsdigita.bebop.Label;
|
|||
import com.arsdigita.cms.dispatcher.CMSPage;
|
||||
import com.arsdigita.cms.util.GlobalizationUtil;
|
||||
|
||||
|
||||
//
|
||||
// As of version 6.6.8 no longer used anywhere in code.
|
||||
// Nevertheless, access privilegies are to be handled by kernel in a central
|
||||
// manner for all modules in the same way.
|
||||
//
|
||||
|
||||
|
||||
/**
|
||||
* <p>Access Denied page</p>
|
||||
*
|
||||
|
|
@ -35,7 +43,8 @@ public class AccessDenied extends CMSPage {
|
|||
super("Access Denied");
|
||||
setClassAttr("AccessDenied");
|
||||
|
||||
add(new Label(GlobalizationUtil.globalize("cms.ui.you_do_not_have_sufficient_privileges_to_access_this_page")));
|
||||
add(new Label(GlobalizationUtil.globalize(
|
||||
"cms.ui.you_do_not_have_sufficient_privileges_to_access_this_page")));
|
||||
init();
|
||||
}
|
||||
}
|
||||
|
|
@ -29,12 +29,17 @@ import com.arsdigita.cms.dispatcher.Utilities;
|
|||
import javax.servlet.ServletException;
|
||||
|
||||
|
||||
// As of version 6.6.8 not used anywhere in CMS. By design deprecated! E.g. an
|
||||
// image is part of the theme and should not be hardcoded in java.
|
||||
|
||||
|
||||
/**
|
||||
* Sticks a back button in the upper right hand corner of the component.
|
||||
* Just override the back(PageState s) method to use.
|
||||
*
|
||||
* @author Michael Pih (pihman@arsdigita.com)
|
||||
* @version $Id: BackButton.java 287 2005-02-22 00:29:02Z sskracic $
|
||||
* @deprecated without replacement
|
||||
*/
|
||||
public class BackButton extends ColumnPanel {
|
||||
|
||||
|
|
@ -53,6 +53,7 @@ public abstract class BaseDeleteForm extends BaseForm
|
|||
this(new Label(message));
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isCancelled(final PageState state) {
|
||||
return m_cancel.isSelected(state);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,23 +16,24 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
*/
|
||||
package com.arsdigita.cms;
|
||||
package com.arsdigita.cms.util;
|
||||
import com.arsdigita.globalization.Globalized;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* .
|
||||
* Mark a class as being globalized.
|
||||
* </p>
|
||||
* Modules which depend on CMS should implement this interface instead of
|
||||
* com.arsdigita.globalization.Globalized to gain access to CMS globalization
|
||||
* resource file (specifically important for content type packages).
|
||||
*
|
||||
* @author <a href="mailto:yon@arsdigita.com">yon@arsdigita.com</a>
|
||||
* @version $Revision: #5 $ $Date: 2004/08/17 $
|
||||
*/
|
||||
|
||||
public interface CMSGlobalized extends Globalized {
|
||||
|
||||
/*
|
||||
* We use one central resource file per language for all of CMS:
|
||||
* The central CMS resource file (per language) which may be used by
|
||||
* all of CMS specific modules.
|
||||
* It overwrites the file provided by globalization package as a generic
|
||||
* default/fall back!
|
||||
*/
|
||||
public static final String BUNDLE_NAME = "com.arsdigita.cms.CMSResources";
|
||||
|
||||
|
|
@ -18,9 +18,9 @@
|
|||
*/
|
||||
package com.arsdigita.cms.util;
|
||||
|
||||
import java.util.PropertyResourceBundle;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
|
||||
import java.util.PropertyResourceBundle;
|
||||
|
||||
/**
|
||||
* Main ResourceBundle for CMS UI.
|
||||
|
|
@ -28,8 +28,9 @@ import com.arsdigita.cms.CMSGlobalized;
|
|||
* - addBundle - to add new keys
|
||||
* - putBundle - to override keys already in CMSResources e.g. to customize
|
||||
* notification email text
|
||||
**/
|
||||
public class CMSResourceBundle extends ChainedResourceBundle implements CMSGlobalized {
|
||||
*/
|
||||
public class CMSResourceBundle extends ChainedResourceBundle
|
||||
implements CMSGlobalized {
|
||||
|
||||
public CMSResourceBundle() {
|
||||
super();
|
||||
|
|
|
|||
|
|
@ -29,10 +29,11 @@ import com.arsdigita.globalization.GlobalizedMessage;
|
|||
* @author <a href="mailto:yon@arsdigita.com">yon@arsdigita.com</a>
|
||||
* @version $Revision: #7 $ $Date: 2004/08/17 $
|
||||
*/
|
||||
|
||||
public class GlobalizationUtil {
|
||||
|
||||
public static String s_bundleName = "com.arsdigita.cms.util.CMSResourceBundle";
|
||||
/** */
|
||||
public static String s_bundleName =
|
||||
"com.arsdigita.cms.util.CMSResourceBundle";
|
||||
|
||||
public static GlobalizedMessage globalize(String key) {
|
||||
return new GlobalizedMessage(key, getBundleName());
|
||||
|
|
@ -42,6 +43,10 @@ public class GlobalizationUtil {
|
|||
return new GlobalizedMessage(key, getBundleName(), args);
|
||||
}
|
||||
|
||||
public static String getBundleName() {
|
||||
return s_bundleName;
|
||||
}
|
||||
|
||||
/*
|
||||
* Not a part of API. Otherwise it would need to be properly synchronized.
|
||||
* Only meant be used to override resource keys in CMSResources
|
||||
|
|
@ -51,8 +56,4 @@ public class GlobalizationUtil {
|
|||
s_bundleName = bundleName;
|
||||
}
|
||||
|
||||
public static String getBundleName() {
|
||||
return s_bundleName;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ import com.arsdigita.globalization.GlobalizedMessage;
|
|||
*
|
||||
* @version $Revision: #6 $ $Date: 2004/08/16 $
|
||||
*/
|
||||
|
||||
public class GlobalizationUtil implements Globalized {
|
||||
|
||||
private static final String BUNDLE_NAME = "com.arsdigita.ui.UIResources";
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import java.util.PropertyResourceBundle;
|
|||
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
|
||||
/**
|
||||
* Resource Bundle used in UI for Contact ContentType.
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
package com.arsdigita.london.contenttypes.util;
|
||||
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
import com.arsdigita.globalization.ChainedResourceBundle;
|
||||
|
||||
import java.util.PropertyResourceBundle;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import com.arsdigita.bebop.Component;
|
|||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.bebop.PageState;
|
||||
import com.arsdigita.bebop.SegmentedPanel;
|
||||
import com.arsdigita.cms.CMSGlobalized;
|
||||
import com.arsdigita.cms.util.CMSGlobalized;
|
||||
import com.arsdigita.cms.ContentPage;
|
||||
import com.arsdigita.cms.ContentSection;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
|
|
|
|||
Loading…
Reference in New Issue