Enhancments for the localisation of the content center.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2745 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
a2d02f8a0a
commit
1af42506ca
|
|
@ -58,9 +58,9 @@ public class SiteProxyPropertyForm extends BasicPageForm
|
||||||
super.addWidgets();
|
super.addWidgets();
|
||||||
|
|
||||||
ParameterModel urlParam = new StringParameter("url");
|
ParameterModel urlParam = new StringParameter("url");
|
||||||
|
m_url = new TextField(urlParam);
|
||||||
m_url.setLabel(SiteProxyGlobalizationUtil
|
m_url.setLabel(SiteProxyGlobalizationUtil
|
||||||
.globalize("cms.contenttypes.ui.siteproxy.url"));
|
.globalize("cms.contenttypes.ui.siteproxy.url"));
|
||||||
m_url = new TextField(urlParam);
|
|
||||||
m_url.setSize(40);
|
m_url.setSize(40);
|
||||||
add(m_url);
|
add(m_url);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
package com.arsdigita.cms.contenttypes.ui;
|
package com.arsdigita.cms.contenttypes.ui;
|
||||||
|
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementations of this class are used to customize an instance of
|
* Implementations of this class are used to customize an instance of
|
||||||
* {@link GenericOrganizationalUnitSubordinateOrgaUnitAddForm}. Methods ending
|
* {@link GenericOrganizationalUnitSubordinateOrgaUnitAddForm}. Methods ending
|
||||||
|
|
@ -18,7 +20,7 @@ public interface GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer {
|
||||||
*
|
*
|
||||||
* @return Label for the item search widget of the add from.
|
* @return Label for the item search widget of the add from.
|
||||||
*/
|
*/
|
||||||
String getSelectSubordinateOrgaUnitLabel();
|
GlobalizedMessage getSelectSubordinateOrgaUnitLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
@ -40,27 +42,27 @@ public interface GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer {
|
||||||
* @return Message to show if the save button has been hit without selecting
|
* @return Message to show if the save button has been hit without selecting
|
||||||
* an item.
|
* an item.
|
||||||
*/
|
*/
|
||||||
String getNothingSelectedMessage();
|
GlobalizedMessage getNothingSelectedMessage();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Message to show if the selected item has no suitable language
|
* @return Message to show if the selected item has no suitable language
|
||||||
* variant.
|
* variant.
|
||||||
*/
|
*/
|
||||||
String getNoSuitableLanguageVariantMessage();
|
GlobalizedMessage getNoSuitableLanguageVariantMessage();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Message to show if the selected item is the same as the current
|
* @return Message to show if the selected item is the same as the current
|
||||||
* item.
|
* item.
|
||||||
*/
|
*/
|
||||||
String getAddingToItselfMessage();
|
GlobalizedMessage getAddingToItselfMessage();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Message to show if the selected item has already been added
|
* @return Message to show if the selected item has already been added
|
||||||
* as a subordinate organizational unit.
|
* as a subordinate organizational unit.
|
||||||
*/
|
*/
|
||||||
String getAlreadyAddedMessage();
|
GlobalizedMessage getAlreadyAddedMessage();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
package com.arsdigita.cms.contenttypes.ui;
|
package com.arsdigita.cms.contenttypes.ui;
|
||||||
|
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementations of this class are used to customize an instance of
|
* Implementations of this class are used to customize an instance of
|
||||||
* {@link GenericOrganizationalUnitSubordinateOrgaUnitTable}. Methods ending
|
* {@link GenericOrganizationalUnitSubordinateOrgaUnitTable}. Methods ending
|
||||||
|
|
@ -35,58 +37,58 @@ public interface GenericOrgaUnitSubordinateOrgaUnitsTableCustomizer {
|
||||||
/**
|
/**
|
||||||
* @return The label used instead of an empty table.
|
* @return The label used instead of an empty table.
|
||||||
*/
|
*/
|
||||||
String getEmptyViewLabel();
|
GlobalizedMessage getEmptyViewLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Label for the column heading of the first column which shows
|
* @return Label for the column heading of the first column which shows
|
||||||
* the titles of the subordinate organizational units.
|
* the titles of the subordinate organizational units.
|
||||||
*/
|
*/
|
||||||
String getNameColumnLabel();
|
GlobalizedMessage getNameColumnLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The column heading for the second column which displays delete
|
* @return The column heading for the second column which displays delete
|
||||||
* links for the associations.
|
* links for the associations.
|
||||||
*/
|
*/
|
||||||
String getDeleteColumnLabel();
|
GlobalizedMessage getDeleteColumnLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Column heading for the column containing the {@code Up} links
|
* @return Column heading for the column containing the {@code Up} links
|
||||||
* for sorting the subordinate organizational units.
|
* for sorting the subordinate organizational units.
|
||||||
*/
|
*/
|
||||||
String getUpColumnLabel();
|
GlobalizedMessage getUpColumnLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Column heading for the column containing the {@code Down} links
|
* @return Column heading for the column containing the {@code Down} links
|
||||||
* for sorting the subordinate organizational units.
|
* for sorting the subordinate organizational units.
|
||||||
*/
|
*/
|
||||||
String getDownColumnLabel();
|
GlobalizedMessage getDownColumnLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Label for the delete links.
|
* @return Label for the delete links.
|
||||||
*/
|
*/
|
||||||
String getDeleteLabel();
|
GlobalizedMessage getDeleteLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Label for the up links
|
* @return Label for the up links
|
||||||
*/
|
*/
|
||||||
String getUpLabel();
|
GlobalizedMessage getUpLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Label for the down links
|
* @return Label for the down links
|
||||||
*/
|
*/
|
||||||
String getDownLabel();
|
GlobalizedMessage getDownLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Text for the confirmation message when deleting an association.
|
* @return Text for the confirmation message when deleting an association.
|
||||||
*/
|
*/
|
||||||
String getConfirmRemoveLabel();
|
GlobalizedMessage getConfirmRemoveLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
package com.arsdigita.cms.contenttypes.ui;
|
package com.arsdigita.cms.contenttypes.ui;
|
||||||
|
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Jens Pelzetter
|
* @author Jens Pelzetter
|
||||||
|
|
@ -11,7 +13,7 @@ public interface GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer {
|
||||||
*
|
*
|
||||||
* @return Label for the item search widget of the add from.
|
* @return Label for the item search widget of the add from.
|
||||||
*/
|
*/
|
||||||
String getSelectSuperiorOrgaUnitLabel();
|
GlobalizedMessage getSelectSuperiorOrgaUnitLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
@ -33,27 +35,27 @@ public interface GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer {
|
||||||
* @return Message to show if the save button has been hit without selecting
|
* @return Message to show if the save button has been hit without selecting
|
||||||
* an item.
|
* an item.
|
||||||
*/
|
*/
|
||||||
String getNothingSelectedMessage();
|
GlobalizedMessage getNothingSelectedMessage();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Message to show if the selected item has no suitable language
|
* @return Message to show if the selected item has no suitable language
|
||||||
* variant.
|
* variant.
|
||||||
*/
|
*/
|
||||||
String getNoSuitableLanguageVariantMessage();
|
GlobalizedMessage getNoSuitableLanguageVariantMessage();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Message to show if the selected item is the same as the current
|
* @return Message to show if the selected item is the same as the current
|
||||||
* item.
|
* item.
|
||||||
*/
|
*/
|
||||||
String getAddingToItselfMessage();
|
GlobalizedMessage getAddingToItselfMessage();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Message to show if the selected item has already been added
|
* @return Message to show if the selected item has already been added
|
||||||
* as a superior organizational unit.
|
* as a superior organizational unit.
|
||||||
*/
|
*/
|
||||||
String getAlreadyAddedMessage();
|
GlobalizedMessage getAlreadyAddedMessage();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
package com.arsdigita.cms.contenttypes.ui;
|
package com.arsdigita.cms.contenttypes.ui;
|
||||||
|
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Jens Pelzetter
|
* @author Jens Pelzetter
|
||||||
|
|
@ -10,58 +12,58 @@ public interface GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer {
|
||||||
/**
|
/**
|
||||||
* @return The label used instead of an empty table.
|
* @return The label used instead of an empty table.
|
||||||
*/
|
*/
|
||||||
String getEmptyViewLabel();
|
GlobalizedMessage getEmptyViewLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Label for the column heading of the first column which shows
|
* @return Label for the column heading of the first column which shows
|
||||||
* the titles of the superior organizational units.
|
* the titles of the superior organizational units.
|
||||||
*/
|
*/
|
||||||
String getNameColumnLabel();
|
GlobalizedMessage getNameColumnLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The column heading for the second column which displays delete
|
* @return The column heading for the second column which displays delete
|
||||||
* links for the associations.
|
* links for the associations.
|
||||||
*/
|
*/
|
||||||
String getDeleteColumnLabel();
|
GlobalizedMessage getDeleteColumnLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Column heading for the column containing the {@code Up} links
|
* @return Column heading for the column containing the {@code Up} links
|
||||||
* for sorting the superior organizational units.
|
* for sorting the superior organizational units.
|
||||||
*/
|
*/
|
||||||
String getUpColumnLabel();
|
GlobalizedMessage getUpColumnLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Column heading for the column containing the {@code Down} links
|
* @return Column heading for the column containing the {@code Down} links
|
||||||
* for sorting the superior organizational units.
|
* for sorting the superior organizational units.
|
||||||
*/
|
*/
|
||||||
String getDownColumnLabel();
|
GlobalizedMessage getDownColumnLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Label for the delete links.
|
* @return Label for the delete links.
|
||||||
*/
|
*/
|
||||||
String getDeleteLabel();
|
GlobalizedMessage getDeleteLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Label for the up links
|
* @return Label for the up links
|
||||||
*/
|
*/
|
||||||
String getUpLabel();
|
GlobalizedMessage getUpLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Label for the down links
|
* @return Label for the down links
|
||||||
*/
|
*/
|
||||||
String getDownLabel();
|
GlobalizedMessage getDownLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Text for the confirmation message when deleting an association.
|
* @return Text for the confirmation message when deleting an association.
|
||||||
*/
|
*/
|
||||||
String getConfirmRemoveLabel();
|
GlobalizedMessage getConfirmRemoveLabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,7 @@ public class GenericOrganizationalUnitSubordinateOrgaUnitsTable
|
||||||
return label;
|
return label;
|
||||||
} else {
|
} else {
|
||||||
final ControlLink link =
|
final ControlLink link =
|
||||||
new ControlLink(customizer.getUpLabel());
|
new ControlLink(new Label(customizer.getUpLabel()));
|
||||||
return link;
|
return link;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -324,7 +324,7 @@ public class GenericOrganizationalUnitSubordinateOrgaUnitsTable
|
||||||
return label;
|
return label;
|
||||||
} else {
|
} else {
|
||||||
final ControlLink link =
|
final ControlLink link =
|
||||||
new ControlLink(customizer.getDownLabel());
|
new ControlLink(new Label(customizer.getDownLabel()));
|
||||||
return link;
|
return link;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,7 @@ public class GenericOrganizationalUnitSuperiorOrgaUnitsTable extends Table {
|
||||||
return label;
|
return label;
|
||||||
} else {
|
} else {
|
||||||
final ControlLink link =
|
final ControlLink link =
|
||||||
new ControlLink(customizer.getUpLabel());
|
new ControlLink(new Label(customizer.getUpLabel()));
|
||||||
return link;
|
return link;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -294,7 +294,7 @@ public class GenericOrganizationalUnitSuperiorOrgaUnitsTable extends Table {
|
||||||
return label;
|
return label;
|
||||||
} else {
|
} else {
|
||||||
final ControlLink link =
|
final ControlLink link =
|
||||||
new ControlLink(customizer.getDownLabel());
|
new ControlLink(new Label(customizer.getDownLabel()));
|
||||||
return link;
|
return link;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@ import com.arsdigita.bebop.FormProcessException;
|
||||||
import com.arsdigita.bebop.Label;
|
import com.arsdigita.bebop.Label;
|
||||||
import com.arsdigita.bebop.PageState;
|
import com.arsdigita.bebop.PageState;
|
||||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||||
|
import com.arsdigita.bebop.event.PrintEvent;
|
||||||
|
import com.arsdigita.bebop.event.PrintListener;
|
||||||
import com.arsdigita.bebop.form.Option;
|
import com.arsdigita.bebop.form.Option;
|
||||||
import com.arsdigita.bebop.form.SingleSelect;
|
import com.arsdigita.bebop.form.SingleSelect;
|
||||||
import com.arsdigita.bebop.parameters.NotNullValidationListener;
|
import com.arsdigita.bebop.parameters.NotNullValidationListener;
|
||||||
|
|
@ -40,6 +42,8 @@ import com.arsdigita.cms.ui.ItemSearchWidget;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.globalization.GlobalizationHelper;
|
import com.arsdigita.globalization.GlobalizationHelper;
|
||||||
import com.arsdigita.toolbox.GlobalisationUtil;
|
import com.arsdigita.toolbox.GlobalisationUtil;
|
||||||
|
import com.arsdigita.util.UncheckedWrapperException;
|
||||||
|
import java.util.TooManyListenersException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
@ -65,8 +69,8 @@ public class SciPublicationsPersonsPersonForm extends BasicItemForm {
|
||||||
|
|
||||||
final GlobalisationUtil globalisationUtil = new SciPublicationsPersonsGlobalisationUtil();
|
final GlobalisationUtil globalisationUtil = new SciPublicationsPersonsGlobalisationUtil();
|
||||||
|
|
||||||
// add(new Label(globalisationUtil.globalize(
|
// add(new Label(globalisationUtil.globalize(
|
||||||
// "com.arsdigita.cms.contentassets.publicationspersons.select_person")));
|
// "com.arsdigita.cms.contentassets.publicationspersons.select_person")));
|
||||||
itemSearch = new ItemSearchWidget(
|
itemSearch = new ItemSearchWidget(
|
||||||
ITEM_SEARCH,
|
ITEM_SEARCH,
|
||||||
ContentType.findByAssociatedObjectType(GenericPerson.class.getName()));
|
ContentType.findByAssociatedObjectType(GenericPerson.class.getName()));
|
||||||
|
|
@ -75,20 +79,34 @@ public class SciPublicationsPersonsPersonForm extends BasicItemForm {
|
||||||
itemSearch.setDisableCreatePane(true);
|
itemSearch.setDisableCreatePane(true);
|
||||||
add(itemSearch);
|
add(itemSearch);
|
||||||
|
|
||||||
// add(new Label(globalisationUtil.globalize(
|
// add(new Label(globalisationUtil.globalize(
|
||||||
// "com.arsdigita.cms.contentassets.publicationspersons.select_person_relation")));
|
// "com.arsdigita.cms.contentassets.publicationspersons.select_person_relation")));
|
||||||
final ParameterModel relationParam = new StringParameter(RELATION);
|
final ParameterModel relationParam = new StringParameter(RELATION);
|
||||||
final SingleSelect relationSelect = new SingleSelect(relationParam);
|
final SingleSelect relationSelect = new SingleSelect(relationParam);
|
||||||
relationSelect.addValidationListener(new NotNullValidationListener());
|
relationSelect.addValidationListener(new NotNullValidationListener());
|
||||||
relationSelect.addOption(new Option("", new Label(ContenttypesGlobalizationUtil.globalize(
|
relationSelect.addOption(new Option("", new Label(ContenttypesGlobalizationUtil.globalize(
|
||||||
"cms.ui.select_one"))));
|
"cms.ui.select_one"))));
|
||||||
final RelationAttributeCollection relations = new RelationAttributeCollection(
|
try {
|
||||||
SciPublicationsPersonsService.RELATION_ATTRIBUTE);
|
relationSelect.addPrintListener(new PrintListener() {
|
||||||
relations.addLanguageFilter(GlobalizationHelper.getNegotiatedLocale().getLanguage());
|
|
||||||
while (relations.next()) {
|
@Override
|
||||||
RelationAttribute relation;
|
public void prepare(final PrintEvent event) {
|
||||||
relation = relations.getRelationAttribute();
|
final SingleSelect target = (SingleSelect) event.getTarget();
|
||||||
relationSelect.addOption(new Option(relation.getKey(), relation.getName()));
|
final RelationAttributeCollection relations = new RelationAttributeCollection(
|
||||||
|
SciPublicationsPersonsService.RELATION_ATTRIBUTE);
|
||||||
|
relations.addLanguageFilter(GlobalizationHelper.getNegotiatedLocale()
|
||||||
|
.getLanguage());
|
||||||
|
while (relations.next()) {
|
||||||
|
RelationAttribute relation;
|
||||||
|
relation = relations.getRelationAttribute();
|
||||||
|
target.addOption(new Option(relation.getKey(), relation.getName()));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
} catch (TooManyListenersException ex) {
|
||||||
|
throw new UncheckedWrapperException(ex);
|
||||||
}
|
}
|
||||||
relationSelect.setLabel(globalisationUtil.globalize(
|
relationSelect.setLabel(globalisationUtil.globalize(
|
||||||
"com.arsdigita.cms.contentassets.publicationspersons.select_person_relation"));
|
"com.arsdigita.cms.contentassets.publicationspersons.select_person_relation"));
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,6 @@ public class ArticleInJournalPropertyForm
|
||||||
private static final String REVIEWED = "reviewed";
|
private static final String REVIEWED = "reviewed";
|
||||||
private ArticleInJournalPropertiesStep m_step;
|
private ArticleInJournalPropertiesStep m_step;
|
||||||
public static final String ID = "ArticleInJournalEdit";
|
public static final String ID = "ArticleInJournalEdit";
|
||||||
private Label reviewedLabel;
|
|
||||||
private CheckboxGroup reviewed;
|
private CheckboxGroup reviewed;
|
||||||
|
|
||||||
public ArticleInJournalPropertyForm(ItemSelectionModel itemModel) {
|
public ArticleInJournalPropertyForm(ItemSelectionModel itemModel) {
|
||||||
|
|
@ -112,7 +111,6 @@ public class ArticleInJournalPropertyForm
|
||||||
"publications.ui.articleinjournal.publicationDate"));
|
"publications.ui.articleinjournal.publicationDate"));
|
||||||
add(pubDate);
|
add(pubDate);
|
||||||
|
|
||||||
add(reviewedLabel);
|
|
||||||
reviewed = new CheckboxGroup("reviewedGroup");
|
reviewed = new CheckboxGroup("reviewedGroup");
|
||||||
reviewed.addOption(new Option(REVIEWED, ""));
|
reviewed.addOption(new Option(REVIEWED, ""));
|
||||||
reviewed.setLabel(PublicationGlobalizationUtil.globalize(
|
reviewed.setLabel(PublicationGlobalizationUtil.globalize(
|
||||||
|
|
@ -120,10 +118,6 @@ public class ArticleInJournalPropertyForm
|
||||||
add(reviewed);
|
add(reviewed);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected final Label getReviewedLabel() {
|
|
||||||
return reviewedLabel;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected final CheckboxGroup getReviewed() {
|
protected final CheckboxGroup getReviewed() {
|
||||||
return reviewed;
|
return reviewed;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -239,6 +239,8 @@ public class PublicationAuthorsTable
|
||||||
ex);
|
ex);
|
||||||
if (value instanceof GlobalizedMessage) {
|
if (value instanceof GlobalizedMessage) {
|
||||||
return new Label((GlobalizedMessage) value);
|
return new Label((GlobalizedMessage) value);
|
||||||
|
} else if(value instanceof Label) {
|
||||||
|
return (Component) value;
|
||||||
} else {
|
} else {
|
||||||
return new Label(value.toString());
|
return new Label(value.toString());
|
||||||
}
|
}
|
||||||
|
|
@ -246,12 +248,30 @@ public class PublicationAuthorsTable
|
||||||
|
|
||||||
ContentSection section = author.getContentSection();//CMS.getContext().getContentSection();
|
ContentSection section = author.getContentSection();//CMS.getContext().getContentSection();
|
||||||
ItemResolver resolver = section.getItemResolver();
|
ItemResolver resolver = section.getItemResolver();
|
||||||
Link link =
|
Link link;
|
||||||
|
if (value instanceof GlobalizedMessage) {
|
||||||
|
link =
|
||||||
|
new Link(new Label((GlobalizedMessage) value),
|
||||||
|
resolver.generateItemURL(state,
|
||||||
|
author,
|
||||||
|
section,
|
||||||
|
author.getVersion()));
|
||||||
|
} else if(value instanceof Label) {
|
||||||
|
link =
|
||||||
|
new Link((Label) value,
|
||||||
|
resolver.generateItemURL(state,
|
||||||
|
author,
|
||||||
|
section,
|
||||||
|
author.getVersion()));
|
||||||
|
} else {
|
||||||
|
link =
|
||||||
new Link(value.toString(),
|
new Link(value.toString(),
|
||||||
resolver.generateItemURL(state,
|
resolver.generateItemURL(state,
|
||||||
author,
|
author,
|
||||||
section,
|
section,
|
||||||
author.getVersion()));
|
author.getVersion()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return link;
|
return link;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,6 @@ public class ReviewPropertyForm
|
||||||
super.init(fse);
|
super.init(fse);
|
||||||
|
|
||||||
final PageState state = fse.getPageState();
|
final PageState state = fse.getPageState();
|
||||||
getReviewedLabel().setVisible(state, false);
|
|
||||||
getReviewed().setVisible(state, false);
|
getReviewed().setVisible(state, false);
|
||||||
|
|
||||||
// FormData data = fse.getFormData();
|
// FormData data = fse.getFormData();
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Authoring step for editing the associations between a SciDepartment and SciProject items.
|
* Authoring step for editing the associations between a SciDepartment and SciProject items.
|
||||||
|
|
@ -51,9 +52,9 @@ public class SciDepartmentProjectsStep extends SimpleEditStep {
|
||||||
new GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer() {
|
new GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getSelectSubordinateOrgaUnitLabel() {
|
public GlobalizedMessage getSelectSubordinateOrgaUnitLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.select").localize();
|
"scidepartment.ui.projects.select");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -67,31 +68,27 @@ public class SciDepartmentProjectsStep extends SimpleEditStep {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getNothingSelectedMessage() {
|
public GlobalizedMessage getNothingSelectedMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.select.nothing").
|
"scidepartment.ui.projects.select.nothing");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getNoSuitableLanguageVariantMessage() {
|
public GlobalizedMessage getNoSuitableLanguageVariantMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.no_suitable_language_variant").
|
"scidepartment.ui.projects.no_suitable_language_variant");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getAddingToItselfMessage() {
|
public GlobalizedMessage getAddingToItselfMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.adding_to_itself").
|
"scidepartment.ui.projects.adding_to_itself");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getAlreadyAddedMessage() {
|
public GlobalizedMessage getAlreadyAddedMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.already_added").
|
"scidepartment.ui.projects.already_added");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
add(ADD_PROJECT_SHEET_NAME,
|
add(ADD_PROJECT_SHEET_NAME,
|
||||||
|
|
@ -105,53 +102,49 @@ public class SciDepartmentProjectsStep extends SimpleEditStep {
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSubordinateOrgaUnitsTableCustomizer() {
|
new GenericOrgaUnitSubordinateOrgaUnitsTableCustomizer() {
|
||||||
|
|
||||||
public String getEmptyViewLabel() {
|
public GlobalizedMessage getEmptyViewLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.empty_view").localize();
|
"scidepartment.ui.projects.empty_view");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameColumnLabel() {
|
public GlobalizedMessage getNameColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.columns.name").
|
"scidepartment.ui.projects.columns.name");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteColumnLabel() {
|
public GlobalizedMessage getDeleteColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.columns.delete").
|
"scidepartment.ui.projects.columns.delete");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpColumnLabel() {
|
public GlobalizedMessage getUpColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.columns.up").localize();
|
"scidepartment.ui.projects.columns.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownColumnLabel() {
|
public GlobalizedMessage getDownColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.columns.down").
|
"scidepartment.ui.projects.columns.down");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteLabel() {
|
public GlobalizedMessage getDeleteLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.delete").localize();
|
"scidepartment.ui.projects.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpLabel() {
|
public GlobalizedMessage getUpLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.up").localize();
|
"scidepartment.ui.projects.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownLabel() {
|
public GlobalizedMessage getDownLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.down").localize();
|
"scidepartment.ui.projects.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfirmRemoveLabel() {
|
public GlobalizedMessage getConfirmRemoveLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.projects.delete.confirm").
|
"scidepartment.ui.projects.delete.confirm");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAssocType() {
|
public String getAssocType() {
|
||||||
|
|
|
||||||
|
|
@ -24,17 +24,17 @@ import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Authoring step for editing the associations to sub departments of a SciDepartment.
|
* Authoring step for editing the associations to sub departments of a SciDepartment.
|
||||||
*
|
*
|
||||||
* @author Jens Pelzetter
|
* @author Jens Pelzetter
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class SciDepartmentSubDepartmentsStep extends SimpleEditStep {
|
public class SciDepartmentSubDepartmentsStep extends SimpleEditStep {
|
||||||
|
|
||||||
private final String ADD_SUBDEPARTMENT_SHEET_NAME =
|
private final String ADD_SUBDEPARTMENT_SHEET_NAME = "SciDepartmentAddSubDepartment";
|
||||||
"SciDepartmentAddSubDepartment";
|
|
||||||
public final static String ASSOC_TYPE = "DepartmentOf";
|
public final static String ASSOC_TYPE = "DepartmentOf";
|
||||||
|
|
||||||
public SciDepartmentSubDepartmentsStep(final ItemSelectionModel itemModel,
|
public SciDepartmentSubDepartmentsStep(final ItemSelectionModel itemModel,
|
||||||
|
|
@ -47,15 +47,14 @@ public class SciDepartmentSubDepartmentsStep extends SimpleEditStep {
|
||||||
final String prefix) {
|
final String prefix) {
|
||||||
super(itemModel, parent, prefix);
|
super(itemModel, parent, prefix);
|
||||||
|
|
||||||
final BasicItemForm addSubDepartmentSheet =
|
final BasicItemForm addSubDepartmentSheet
|
||||||
new GenericOrganizationalUnitSubordinateOrgaUnitAddForm(
|
= new GenericOrganizationalUnitSubordinateOrgaUnitAddForm(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer() {
|
new GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer() {
|
||||||
|
|
||||||
public String getSelectSubordinateOrgaUnitLabel() {
|
public GlobalizedMessage getSelectSubordinateOrgaUnitLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartment.select").
|
"scidepartment.ui.subdepartment.select");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSubordinateOrgaUnitType() {
|
public String getSubordinateOrgaUnitType() {
|
||||||
|
|
@ -66,103 +65,95 @@ public class SciDepartmentSubDepartmentsStep extends SimpleEditStep {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNothingSelectedMessage() {
|
public GlobalizedMessage getNothingSelectedMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartment.select.nothing").
|
"scidepartment.ui.subdepartment.select.nothing");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNoSuitableLanguageVariantMessage() {
|
public GlobalizedMessage getNoSuitableLanguageVariantMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartment.no_suitable_languge_variant").
|
"scidepartment.ui.subdepartment.no_suitable_languge_variant");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAddingToItselfMessage() {
|
public GlobalizedMessage getAddingToItselfMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartment.adding_to_itself").
|
"scidepartment.ui.subdepartment.adding_to_itself");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAlreadyAddedMessage() {
|
public GlobalizedMessage getAlreadyAddedMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartment.already_added").
|
"scidepartment.ui.subdepartment.already_added");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
add(ADD_SUBDEPARTMENT_SHEET_NAME,
|
add(ADD_SUBDEPARTMENT_SHEET_NAME,
|
||||||
SciDepartmentGlobalizationUtil.globalize(
|
SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartment.add"),
|
"scidepartment.ui.subdepartment.add"),
|
||||||
new WorkflowLockedComponentAccess(addSubDepartmentSheet,itemModel),
|
new WorkflowLockedComponentAccess(addSubDepartmentSheet, itemModel),
|
||||||
addSubDepartmentSheet.getSaveCancelSection().getCancelButton());
|
addSubDepartmentSheet.getSaveCancelSection().getCancelButton());
|
||||||
|
|
||||||
final GenericOrganizationalUnitSubordinateOrgaUnitsTable subDepartmentTable =
|
final GenericOrganizationalUnitSubordinateOrgaUnitsTable subDepartmentTable
|
||||||
new GenericOrganizationalUnitSubordinateOrgaUnitsTable(
|
= new GenericOrganizationalUnitSubordinateOrgaUnitsTable(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSubordinateOrgaUnitsTableCustomizer() {
|
new GenericOrgaUnitSubordinateOrgaUnitsTableCustomizer() {
|
||||||
|
|
||||||
public String getEmptyViewLabel() {
|
public GlobalizedMessage getEmptyViewLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartments.empty_view").
|
"scidepartment.ui.subdepartments.empty_view");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameColumnLabel() {
|
public GlobalizedMessage getNameColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartments.columns.name").
|
"scidepartment.ui.subdepartments.columns.name");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteColumnLabel() {
|
public GlobalizedMessage getDeleteColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartments.columns.delete").
|
"scidepartment.ui.subdepartments.columns.delete");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpColumnLabel() {
|
public GlobalizedMessage getUpColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartments.columns.up").
|
"scidepartment.ui.subdepartments.columns.up");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownColumnLabel() {
|
public GlobalizedMessage getDownColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartments.columns.down").
|
"scidepartment.ui.subdepartments.columns.down");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteLabel() {
|
public GlobalizedMessage getDeleteLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartments.delete").
|
"scidepartment.ui.subdepartments.delete");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpLabel() {
|
public GlobalizedMessage getUpLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartments.up").localize();
|
"scidepartment.ui.subdepartments.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownLabel() {
|
public GlobalizedMessage getDownLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartments.down").localize();
|
"scidepartment.ui.subdepartments.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfirmRemoveLabel() {
|
public GlobalizedMessage getConfirmRemoveLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.subdepartments.delete.confirm").
|
"scidepartment.ui.subdepartments.delete.confirm");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAssocType() {
|
public String getAssocType() {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType() {
|
public String getContentType() {
|
||||||
return "com.arsdigita.cms.contenttypes.SciDepartmentBundle";
|
return "com.arsdigita.cms.contenttypes.SciDepartmentBundle";
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
setDisplayComponent(subDepartmentTable);
|
setDisplayComponent(subDepartmentTable);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Step for editing the association the the superior organisational unit.
|
* Step for editing the association the the superior organisational unit.
|
||||||
|
|
@ -52,10 +53,9 @@ public class SciDepartmentSuperDepartmentsStep extends SimpleEditStep {
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
||||||
|
|
||||||
public String getSelectSuperiorOrgaUnitLabel() {
|
public GlobalizedMessage getSelectSuperiorOrgaUnitLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartment.select").
|
"scidepartment.ui.superdepartment.select");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSuperiorOrgaUnitType() {
|
public String getSuperiorOrgaUnitType() {
|
||||||
|
|
@ -66,28 +66,24 @@ public class SciDepartmentSuperDepartmentsStep extends SimpleEditStep {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNothingSelectedMessage() {
|
public GlobalizedMessage getNothingSelectedMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartment.select.nothing").
|
"scidepartment.ui.superdepartment.select.nothing");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNoSuitableLanguageVariantMessage() {
|
public GlobalizedMessage getNoSuitableLanguageVariantMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartment.no_suitable_language_variant").
|
"scidepartment.ui.superdepartment.no_suitable_language_variant");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAddingToItselfMessage() {
|
public GlobalizedMessage getAddingToItselfMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartment.adding_to_itself").
|
"scidepartment.ui.superdepartment.adding_to_itself");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAlreadyAddedMessage() {
|
public GlobalizedMessage getAlreadyAddedMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartment.already_added").
|
"scidepartment.ui.superdepartment.already_added");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
add(ADD_SUPER_DEPARTMENT_SHEET_NAME,
|
add(ADD_SUPER_DEPARTMENT_SHEET_NAME,
|
||||||
|
|
@ -101,58 +97,49 @@ public class SciDepartmentSuperDepartmentsStep extends SimpleEditStep {
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
||||||
|
|
||||||
public String getEmptyViewLabel() {
|
public GlobalizedMessage getEmptyViewLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartments.empty_view").
|
"scidepartment.ui.superdepartments.empty_view");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameColumnLabel() {
|
public GlobalizedMessage getNameColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartments.columns.name").
|
"scidepartment.ui.superdepartments.columns.name");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteColumnLabel() {
|
public GlobalizedMessage getDeleteColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartments.columns.delete").
|
"scidepartment.ui.superdepartments.columns.delete");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpColumnLabel() {
|
public GlobalizedMessage getUpColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartments.columns.up").
|
"scidepartment.ui.superdepartments.columns.up");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownColumnLabel() {
|
public GlobalizedMessage getDownColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartments.columns.down").
|
"scidepartment.ui.superdepartments.columns.down");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteLabel() {
|
public GlobalizedMessage getDeleteLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartments.delete").
|
"scidepartment.ui.superdepartments.delete");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpLabel() {
|
public GlobalizedMessage getUpLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartments.up").
|
"scidepartment.ui.superdepartments.up");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownLabel() {
|
public GlobalizedMessage getDownLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartments.down").
|
"scidepartment.ui.superdepartments.down");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfirmRemoveLabel() {
|
public GlobalizedMessage getConfirmRemoveLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.superdepartments.delete.confirm").
|
"scidepartment.ui.superdepartments.delete.confirm");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAssocType() {
|
public String getAssocType() {
|
||||||
|
|
|
||||||
|
|
@ -24,17 +24,17 @@ import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Authoring step for editing the associations between a department and its projects.
|
* Authoring step for editing the associations between a department and its projects.
|
||||||
*
|
*
|
||||||
* @author Jens Pelzetter
|
* @author Jens Pelzetter
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class SciProjectDepartmentsStep extends SimpleEditStep {
|
public class SciProjectDepartmentsStep extends SimpleEditStep {
|
||||||
|
|
||||||
private final static String ADD_DEPARTMENT_SHEET_NAME =
|
private final static String ADD_DEPARTMENT_SHEET_NAME = "SciProjectAddDepartment";
|
||||||
"SciProjectAddDepartment";
|
|
||||||
public final static String ASSOC_TYPE = "ProjectOf";
|
public final static String ASSOC_TYPE = "ProjectOf";
|
||||||
|
|
||||||
public SciProjectDepartmentsStep(final ItemSelectionModel itemModel,
|
public SciProjectDepartmentsStep(final ItemSelectionModel itemModel,
|
||||||
|
|
@ -47,14 +47,14 @@ public class SciProjectDepartmentsStep extends SimpleEditStep {
|
||||||
final String prefix) {
|
final String prefix) {
|
||||||
super(itemModel, parent, prefix);
|
super(itemModel, parent, prefix);
|
||||||
|
|
||||||
final BasicItemForm addDepartmentSheet =
|
final BasicItemForm addDepartmentSheet
|
||||||
new GenericOrganizationalUnitSuperiorOrgaUnitAddForm(
|
= new GenericOrganizationalUnitSuperiorOrgaUnitAddForm(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
||||||
|
|
||||||
public String getSelectSuperiorOrgaUnitLabel() {
|
public GlobalizedMessage getSelectSuperiorOrgaUnitLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.department.select").localize();
|
"sciproject.ui.department.select");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSuperiorOrgaUnitType() {
|
public String getSuperiorOrgaUnitType() {
|
||||||
|
|
@ -65,25 +65,26 @@ public class SciProjectDepartmentsStep extends SimpleEditStep {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNothingSelectedMessage() {
|
public GlobalizedMessage getNothingSelectedMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.department.select.nothing").localize();
|
"sciproject.ui.department.select.nothing");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNoSuitableLanguageVariantMessage() {
|
public GlobalizedMessage getNoSuitableLanguageVariantMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.department.no_suitable_language_variant").localize();
|
"sciproject.ui.department.no_suitable_language_variant");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAddingToItselfMessage() {
|
public GlobalizedMessage getAddingToItselfMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.department.adding_to_itself").localize();
|
"sciproject.ui.department.adding_to_itself");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAlreadyAddedMessage() {
|
public GlobalizedMessage getAlreadyAddedMessage() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.department.already_added").localize();
|
"sciproject.ui.department.already_added");
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
add(ADD_DEPARTMENT_SHEET_NAME,
|
add(ADD_DEPARTMENT_SHEET_NAME,
|
||||||
|
|
@ -92,65 +93,67 @@ public class SciProjectDepartmentsStep extends SimpleEditStep {
|
||||||
new WorkflowLockedComponentAccess(addDepartmentSheet, itemModel),
|
new WorkflowLockedComponentAccess(addDepartmentSheet, itemModel),
|
||||||
addDepartmentSheet.getSaveCancelSection().getCancelButton());
|
addDepartmentSheet.getSaveCancelSection().getCancelButton());
|
||||||
|
|
||||||
final GenericOrganizationalUnitSuperiorOrgaUnitsTable departmentsTable =
|
final GenericOrganizationalUnitSuperiorOrgaUnitsTable departmentsTable
|
||||||
new GenericOrganizationalUnitSuperiorOrgaUnitsTable(
|
= new GenericOrganizationalUnitSuperiorOrgaUnitsTable(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
||||||
|
|
||||||
public String getEmptyViewLabel() {
|
public GlobalizedMessage getEmptyViewLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.departments.empty_view").localize();
|
"sciproject.ui.departments.empty_view");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameColumnLabel() {
|
public GlobalizedMessage getNameColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.departments.columns.name").localize();
|
"sciproject.ui.departments.columns.name");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteColumnLabel() {
|
public GlobalizedMessage getDeleteColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.departments.columns.delete").localize();
|
"sciproject.ui.departments.columns.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpColumnLabel() {
|
public GlobalizedMessage getUpColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.departments.columns.up").localize();
|
"sciproject.ui.departments.columns.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownColumnLabel() {
|
public GlobalizedMessage getDownColumnLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.departments.columns.down").localize();
|
"sciproject.ui.departments.columns.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteLabel() {
|
public GlobalizedMessage getDeleteLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.departments.delete").localize();
|
"sciproject.ui.departments.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpLabel() {
|
public GlobalizedMessage getUpLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.departments.up").localize();
|
"sciproject.ui.departments.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownLabel() {
|
public GlobalizedMessage getDownLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.departments.down").localize();
|
"sciproject.ui.departments.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfirmRemoveLabel() {
|
public GlobalizedMessage getConfirmRemoveLabel() {
|
||||||
return (String) SciDepartmentGlobalizationUtil.globalize(
|
return SciDepartmentGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.departments.delete.confirm").localize();
|
"sciproject.ui.departments.delete.confirm");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAssocType() {
|
public String getAssocType() {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType() {
|
public String getContentType() {
|
||||||
return "com.arsdigita.cms.contenttypes.SciDepartmentBundle";
|
return "com.arsdigita.cms.contenttypes.SciDepartmentBundle";
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
setDisplayComponent(departmentsTable);
|
setDisplayComponent(departmentsTable);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,21 +7,21 @@ import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Authoring step for associating departments to an institute
|
* Authoring step for associating departments to an institute This step is attached by the
|
||||||
* This step is attached by the {@link SciInstituteInitializer} only if
|
* {@link SciInstituteInitializer} only if the ccm-sci-types-department module has been installed
|
||||||
* the ccm-sci-types-department module has been installed and the config
|
* and the config parameter
|
||||||
* parameter {@code com.arsdigita.cms.contenttypes.sciinstitute.enable.department_institutes_step}
|
* {@code com.arsdigita.cms.contenttypes.sciinstitute.enable.department_institutes_step} is set to
|
||||||
* is set to true.
|
* true.
|
||||||
*
|
*
|
||||||
* @author Jens Pelzetter
|
* @author Jens Pelzetter
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class SciDepartmentInstitutesStep extends SimpleEditStep {
|
public class SciDepartmentInstitutesStep extends SimpleEditStep {
|
||||||
|
|
||||||
private final static String ADD_INSTITUTE_SHEET_NAME =
|
private final static String ADD_INSTITUTE_SHEET_NAME = "SciDepartmentAddInstitute";
|
||||||
"SciDepartmentAddInstitute";
|
|
||||||
public static final String ASSOC_TYPE = "DepartmentOf";
|
public static final String ASSOC_TYPE = "DepartmentOf";
|
||||||
|
|
||||||
public SciDepartmentInstitutesStep(final ItemSelectionModel itemModel,
|
public SciDepartmentInstitutesStep(final ItemSelectionModel itemModel,
|
||||||
|
|
@ -34,14 +34,14 @@ public class SciDepartmentInstitutesStep extends SimpleEditStep {
|
||||||
final String prefix) {
|
final String prefix) {
|
||||||
super(itemModel, parent, prefix);
|
super(itemModel, parent, prefix);
|
||||||
|
|
||||||
final BasicItemForm addInstituteSheet =
|
final BasicItemForm addInstituteSheet
|
||||||
new GenericOrganizationalUnitSuperiorOrgaUnitAddForm(
|
= new GenericOrganizationalUnitSuperiorOrgaUnitAddForm(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
||||||
|
|
||||||
public String getSelectSuperiorOrgaUnitLabel() {
|
public GlobalizedMessage getSelectSuperiorOrgaUnitLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institute.select").localize();
|
"scidepartment.ui.institute.select");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSuperiorOrgaUnitType() {
|
public String getSuperiorOrgaUnitType() {
|
||||||
|
|
@ -52,29 +52,26 @@ public class SciDepartmentInstitutesStep extends SimpleEditStep {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNothingSelectedMessage() {
|
public GlobalizedMessage getNothingSelectedMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institute.select.nothing").
|
"scidepartment.ui.institute.select.nothing");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNoSuitableLanguageVariantMessage() {
|
public GlobalizedMessage getNoSuitableLanguageVariantMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institute.no_suitable_language_variant").
|
"scidepartment.ui.institute.no_suitable_language_variant");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAddingToItselfMessage() {
|
public GlobalizedMessage getAddingToItselfMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institute.adding_to_itself").
|
"scidepartment.ui.institute.adding_to_itself");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAlreadyAddedMessage() {
|
public GlobalizedMessage getAlreadyAddedMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institute.already_added").
|
"scidepartment.ui.institute.already_added");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
add(ADD_INSTITUTE_SHEET_NAME,
|
add(ADD_INSTITUTE_SHEET_NAME,
|
||||||
|
|
@ -83,71 +80,67 @@ public class SciDepartmentInstitutesStep extends SimpleEditStep {
|
||||||
new WorkflowLockedComponentAccess(addInstituteSheet, itemModel),
|
new WorkflowLockedComponentAccess(addInstituteSheet, itemModel),
|
||||||
addInstituteSheet.getSaveCancelSection().getCancelButton());
|
addInstituteSheet.getSaveCancelSection().getCancelButton());
|
||||||
|
|
||||||
final GenericOrganizationalUnitSuperiorOrgaUnitsTable institutesTable =
|
final GenericOrganizationalUnitSuperiorOrgaUnitsTable institutesTable
|
||||||
new GenericOrganizationalUnitSuperiorOrgaUnitsTable(
|
= new GenericOrganizationalUnitSuperiorOrgaUnitsTable(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
||||||
|
|
||||||
public String getEmptyViewLabel() {
|
public GlobalizedMessage getEmptyViewLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institutes.empty_view").
|
"scidepartment.ui.institutes.empty_view");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameColumnLabel() {
|
public GlobalizedMessage getNameColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institutes.columns.name").
|
"scidepartment.ui.institutes.columns.name");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteColumnLabel() {
|
public GlobalizedMessage getDeleteColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institutes.columns.delete").
|
"scidepartment.ui.institutes.columns.delete");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpColumnLabel() {
|
public GlobalizedMessage getUpColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institutes.columns.up").
|
"scidepartment.ui.institutes.columns.up");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownColumnLabel() {
|
public GlobalizedMessage getDownColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institutes.columns.down").
|
"scidepartment.ui.institutes.columns.down");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteLabel() {
|
public GlobalizedMessage getDeleteLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institutes.delete").localize();
|
"scidepartment.ui.institutes.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpLabel() {
|
public GlobalizedMessage getUpLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institutes.up").localize();
|
"scidepartment.ui.institutes.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownLabel() {
|
public GlobalizedMessage getDownLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institutes.down").localize();
|
"scidepartment.ui.institutes.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfirmRemoveLabel() {
|
public GlobalizedMessage getConfirmRemoveLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"scidepartment.ui.institutes.delete.confirm").
|
"scidepartment.ui.institutes.delete.confirm");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAssocType() {
|
public String getAssocType() {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType() {
|
public String getContentType() {
|
||||||
return "com.arsdigita.cms.contenttypes.SciInstituteBundle";
|
return "com.arsdigita.cms.contenttypes.SciInstituteBundle";
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
setDisplayComponent(institutesTable);
|
setDisplayComponent(institutesTable);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,13 @@ import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Authoring step for adding departments to an institute. This step is
|
* Authoring step for adding departments to an institute. This step is attached by the initializer
|
||||||
* attached by the initializer if the ccm-sci-types-department module
|
* if the ccm-sci-types-department module has been installed.
|
||||||
* has been installed.
|
*
|
||||||
*
|
* @author Jens Pelzetter
|
||||||
* @author Jens Pelzetter
|
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class SciInstituteDepartmentsStep extends SimpleEditStep {
|
public class SciInstituteDepartmentsStep extends SimpleEditStep {
|
||||||
|
|
@ -29,14 +29,14 @@ public class SciInstituteDepartmentsStep extends SimpleEditStep {
|
||||||
final String prefix) {
|
final String prefix) {
|
||||||
super(itemModel, parent, prefix);
|
super(itemModel, parent, prefix);
|
||||||
|
|
||||||
final BasicItemForm addDepartmentSheet =
|
final BasicItemForm addDepartmentSheet
|
||||||
new GenericOrganizationalUnitSubordinateOrgaUnitAddForm(
|
= new GenericOrganizationalUnitSubordinateOrgaUnitAddForm(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer() {
|
new GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer() {
|
||||||
|
|
||||||
public String getSelectSubordinateOrgaUnitLabel() {
|
public GlobalizedMessage getSelectSubordinateOrgaUnitLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.select").localize();
|
"sciinstitute.ui.departments.select");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSubordinateOrgaUnitType() {
|
public String getSubordinateOrgaUnitType() {
|
||||||
|
|
@ -47,29 +47,26 @@ public class SciInstituteDepartmentsStep extends SimpleEditStep {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNothingSelectedMessage() {
|
public GlobalizedMessage getNothingSelectedMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.select.nothing").
|
"sciinstitute.ui.departments.select.nothing");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNoSuitableLanguageVariantMessage() {
|
public GlobalizedMessage getNoSuitableLanguageVariantMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.no_suitable_language_variant").
|
"sciinstitute.ui.departments.no_suitable_language_variant");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAddingToItselfMessage() {
|
public GlobalizedMessage getAddingToItselfMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.adding_to_itself").
|
"sciinstitute.ui.departments.adding_to_itself");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAlreadyAddedMessage() {
|
public GlobalizedMessage getAlreadyAddedMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.already_added").
|
"sciinstitute.ui.departments.already_added");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
add(ADD_DEPARTMENT_SHEET_NAME,
|
add(ADD_DEPARTMENT_SHEET_NAME,
|
||||||
|
|
@ -78,72 +75,68 @@ public class SciInstituteDepartmentsStep extends SimpleEditStep {
|
||||||
new WorkflowLockedComponentAccess(addDepartmentSheet, itemModel),
|
new WorkflowLockedComponentAccess(addDepartmentSheet, itemModel),
|
||||||
addDepartmentSheet.getSaveCancelSection().getCancelButton());
|
addDepartmentSheet.getSaveCancelSection().getCancelButton());
|
||||||
|
|
||||||
final GenericOrganizationalUnitSubordinateOrgaUnitsTable departmentsTable =
|
final GenericOrganizationalUnitSubordinateOrgaUnitsTable departmentsTable
|
||||||
new GenericOrganizationalUnitSubordinateOrgaUnitsTable(
|
= new GenericOrganizationalUnitSubordinateOrgaUnitsTable(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSubordinateOrgaUnitsTableCustomizer() {
|
new GenericOrgaUnitSubordinateOrgaUnitsTableCustomizer() {
|
||||||
|
|
||||||
public String getEmptyViewLabel() {
|
public GlobalizedMessage getEmptyViewLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.empty_view").
|
"sciinstitute.ui.departments.empty_view");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameColumnLabel() {
|
public GlobalizedMessage getNameColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.columns.name").
|
"sciinstitute.ui.departments.columns.name");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteColumnLabel() {
|
public GlobalizedMessage getDeleteColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.columns.delete").
|
"sciinstitute.ui.departments.columns.delete");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpColumnLabel() {
|
public GlobalizedMessage getUpColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.columns.up").
|
"sciinstitute.ui.departments.columns.up");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownColumnLabel() {
|
public GlobalizedMessage getDownColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.columns.down").
|
"sciinstitute.ui.departments.columns.down");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteLabel() {
|
public GlobalizedMessage getDeleteLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.delete").localize();
|
"sciinstitute.ui.departments.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpLabel() {
|
public GlobalizedMessage getUpLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.up").localize();
|
"sciinstitute.ui.departments.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownLabel() {
|
public GlobalizedMessage getDownLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.down").localize();
|
"sciinstitute.ui.departments.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfirmRemoveLabel() {
|
public GlobalizedMessage getConfirmRemoveLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.departments.delete.confirm").
|
"sciinstitute.ui.departments.delete.confirm");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAssocType() {
|
public String getAssocType() {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType() {
|
public String getContentType() {
|
||||||
return "com.arsdigita.cms.contenttypes.SciDepartmentBundle";
|
return "com.arsdigita.cms.contenttypes.SciDepartmentBundle";
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
setDisplayComponent(departmentsTable);
|
setDisplayComponent(departmentsTable);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,13 @@ import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Authoring step for adding projects to an institute. This step is
|
* Authoring step for adding projects to an institute. This step is attached by the initializer if
|
||||||
* attached by the initializer if the ccm-sci-types-project module has been
|
* the ccm-sci-types-project module has been installed.
|
||||||
* installed.
|
*
|
||||||
*
|
* @author Jens Pelzetter
|
||||||
* @author Jens Pelzetter
|
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class SciInstituteProjectsStep extends SimpleEditStep {
|
public class SciInstituteProjectsStep extends SimpleEditStep {
|
||||||
|
|
@ -29,14 +29,14 @@ public class SciInstituteProjectsStep extends SimpleEditStep {
|
||||||
final String prefix) {
|
final String prefix) {
|
||||||
super(itemModel, parent, prefix);
|
super(itemModel, parent, prefix);
|
||||||
|
|
||||||
final BasicItemForm addProjectSheet =
|
final BasicItemForm addProjectSheet
|
||||||
new GenericOrganizationalUnitSubordinateOrgaUnitAddForm(
|
= new GenericOrganizationalUnitSubordinateOrgaUnitAddForm(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer() {
|
new GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer() {
|
||||||
|
|
||||||
public String getSelectSubordinateOrgaUnitLabel() {
|
public GlobalizedMessage getSelectSubordinateOrgaUnitLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.select").localize();
|
"sciinstitute.ui.projects.select");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSubordinateOrgaUnitType() {
|
public String getSubordinateOrgaUnitType() {
|
||||||
|
|
@ -47,29 +47,26 @@ public class SciInstituteProjectsStep extends SimpleEditStep {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNothingSelectedMessage() {
|
public GlobalizedMessage getNothingSelectedMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.select.nothing").
|
"sciinstitute.ui.projects.select.nothing");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNoSuitableLanguageVariantMessage() {
|
public GlobalizedMessage getNoSuitableLanguageVariantMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.no_suitable_language_variant").
|
"sciinstitute.ui.projects.no_suitable_language_variant");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAddingToItselfMessage() {
|
public GlobalizedMessage getAddingToItselfMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.adding_to_itself").
|
"sciinstitute.ui.projects.adding_to_itself");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAlreadyAddedMessage() {
|
public GlobalizedMessage getAlreadyAddedMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.already_added").
|
"sciinstitute.ui.projects.already_added");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
add(ADD_INSTITUTE_SHEET_NAME,
|
add(ADD_INSTITUTE_SHEET_NAME,
|
||||||
SciInstituteGlobalizationUtil.globalize(
|
SciInstituteGlobalizationUtil.globalize(
|
||||||
|
|
@ -77,69 +74,67 @@ public class SciInstituteProjectsStep extends SimpleEditStep {
|
||||||
new WorkflowLockedComponentAccess(addProjectSheet, itemModel),
|
new WorkflowLockedComponentAccess(addProjectSheet, itemModel),
|
||||||
addProjectSheet.getSaveCancelSection().getCancelButton());
|
addProjectSheet.getSaveCancelSection().getCancelButton());
|
||||||
|
|
||||||
final GenericOrganizationalUnitSubordinateOrgaUnitsTable projectsTable =
|
final GenericOrganizationalUnitSubordinateOrgaUnitsTable projectsTable
|
||||||
new GenericOrganizationalUnitSubordinateOrgaUnitsTable(
|
= new GenericOrganizationalUnitSubordinateOrgaUnitsTable(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSubordinateOrgaUnitsTableCustomizer() {
|
new GenericOrgaUnitSubordinateOrgaUnitsTableCustomizer() {
|
||||||
|
|
||||||
public String getEmptyViewLabel() {
|
public GlobalizedMessage getEmptyViewLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.empty_view").localize();
|
"sciinstitute.ui.projects.empty_view");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameColumnLabel() {
|
public GlobalizedMessage getNameColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.columns.name").
|
"sciinstitute.ui.projects.columns.name");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteColumnLabel() {
|
public GlobalizedMessage getDeleteColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.columns.delete").
|
"sciinstitute.ui.projects.columns.delete");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpColumnLabel() {
|
public GlobalizedMessage getUpColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.columns.up").localize();
|
"sciinstitute.ui.projects.columns.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownColumnLabel() {
|
public GlobalizedMessage getDownColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.columns.down").
|
"sciinstitute.ui.projects.columns.down");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteLabel() {
|
public GlobalizedMessage getDeleteLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.delete").localize();
|
"sciinstitute.ui.projects.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpLabel() {
|
public GlobalizedMessage getUpLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.up").localize();
|
"sciinstitute.ui.projects.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownLabel() {
|
public GlobalizedMessage getDownLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.down").localize();
|
"sciinstitute.ui.projects.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfirmRemoveLabel() {
|
public GlobalizedMessage getConfirmRemoveLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciinstitute.ui.projects.delete.confirm").
|
"sciinstitute.ui.projects.delete.confirm");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAssocType() {
|
public String getAssocType() {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType() {
|
public String getContentType() {
|
||||||
return "com.arsdigita.cms.contenttypes.SciProject";
|
return "com.arsdigita.cms.contenttypes.SciProject";
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
setDisplayComponent(projectsTable);
|
setDisplayComponent(projectsTable);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,20 +6,20 @@ import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Step for associating a project with institutes. Activated if the
|
* Step for associating a project with institutes. Activated if the ccm-sci-types-project module is
|
||||||
* ccm-sci-types-project module is installed and the
|
* installed and the
|
||||||
* {@code com.arsdigita.cms.contenttypes.sciinstitute.enable.project_institutes_step}
|
* {@code com.arsdigita.cms.contenttypes.sciinstitute.enable.project_institutes_step} is set to
|
||||||
* is set to true.
|
* true.
|
||||||
*
|
*
|
||||||
* @author Jens Pelzetter
|
* @author Jens Pelzetter
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class SciProjectInstitutesStep extends SimpleEditStep {
|
public class SciProjectInstitutesStep extends SimpleEditStep {
|
||||||
|
|
||||||
private final static String ADD_INSTITUTE_SHEET_NAME =
|
private final static String ADD_INSTITUTE_SHEET_NAME = "SciProjectAddInstitute";
|
||||||
"SciProjectAddInstitute";
|
|
||||||
public final static String ASSOC_TYPE = "ProjectOf";
|
public final static String ASSOC_TYPE = "ProjectOf";
|
||||||
|
|
||||||
public SciProjectInstitutesStep(final ItemSelectionModel itemModel,
|
public SciProjectInstitutesStep(final ItemSelectionModel itemModel,
|
||||||
|
|
@ -32,14 +32,14 @@ public class SciProjectInstitutesStep extends SimpleEditStep {
|
||||||
final String prefix) {
|
final String prefix) {
|
||||||
super(itemModel, parent, prefix);
|
super(itemModel, parent, prefix);
|
||||||
|
|
||||||
final BasicItemForm addInstitutesSheet =
|
final BasicItemForm addInstitutesSheet
|
||||||
new GenericOrganizationalUnitSuperiorOrgaUnitAddForm(
|
= new GenericOrganizationalUnitSuperiorOrgaUnitAddForm(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
||||||
|
|
||||||
public String getSelectSuperiorOrgaUnitLabel() {
|
public GlobalizedMessage getSelectSuperiorOrgaUnitLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.institute.select").localize();
|
"sciproject.ui.institute.select");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSuperiorOrgaUnitType() {
|
public String getSuperiorOrgaUnitType() {
|
||||||
|
|
@ -50,28 +50,26 @@ public class SciProjectInstitutesStep extends SimpleEditStep {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNothingSelectedMessage() {
|
public GlobalizedMessage getNothingSelectedMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.institute.select.nothing").
|
"sciproject.ui.institute.select.nothing");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNoSuitableLanguageVariantMessage() {
|
public GlobalizedMessage getNoSuitableLanguageVariantMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.institute.no_suitable_languge_variant").localize();
|
"sciproject.ui.institute.no_suitable_languge_variant");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAddingToItselfMessage() {
|
public GlobalizedMessage getAddingToItselfMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.institute.adding_to_itself").
|
"sciproject.ui.institute.adding_to_itself");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAlreadyAddedMessage() {
|
public GlobalizedMessage getAlreadyAddedMessage() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.institute.already_added").
|
"sciproject.ui.institute.already_added");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
add(ADD_INSTITUTE_SHEET_NAME,
|
add(ADD_INSTITUTE_SHEET_NAME,
|
||||||
|
|
@ -80,64 +78,66 @@ public class SciProjectInstitutesStep extends SimpleEditStep {
|
||||||
new WorkflowLockedComponentAccess(addInstitutesSheet, itemModel),
|
new WorkflowLockedComponentAccess(addInstitutesSheet, itemModel),
|
||||||
addInstitutesSheet.getSaveCancelSection().getCancelButton());
|
addInstitutesSheet.getSaveCancelSection().getCancelButton());
|
||||||
|
|
||||||
final GenericOrganizationalUnitSuperiorOrgaUnitsTable institutesTable =
|
final GenericOrganizationalUnitSuperiorOrgaUnitsTable institutesTable
|
||||||
new GenericOrganizationalUnitSuperiorOrgaUnitsTable(
|
= new GenericOrganizationalUnitSuperiorOrgaUnitsTable(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
||||||
|
|
||||||
public String getEmptyViewLabel() {
|
public GlobalizedMessage getEmptyViewLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.instituts.empty_view").localize();
|
"sciproject.ui.instituts.empty_view");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameColumnLabel() {
|
public GlobalizedMessage getNameColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.instituts.columns.name").localize();
|
"sciproject.ui.instituts.columns.name");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteColumnLabel() {
|
public GlobalizedMessage getDeleteColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.instituts.columns.delete").localize();
|
"sciproject.ui.instituts.columns.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpColumnLabel() {
|
public GlobalizedMessage getUpColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.instituts.columns.up").localize();
|
"sciproject.ui.instituts.columns.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownColumnLabel() {
|
public GlobalizedMessage getDownColumnLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.instituts.columns.down").localize();
|
"sciproject.ui.instituts.columns.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteLabel() {
|
public GlobalizedMessage getDeleteLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.instituts.delete").localize();
|
"sciproject.ui.instituts.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpLabel() {
|
public GlobalizedMessage getUpLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.instituts.up").localize();
|
"sciproject.ui.instituts.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownLabel() {
|
public GlobalizedMessage getDownLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.instituts.down").localize();
|
"sciproject.ui.instituts.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfirmRemoveLabel() {
|
public GlobalizedMessage getConfirmRemoveLabel() {
|
||||||
return (String) SciInstituteGlobalizationUtil.globalize(
|
return SciInstituteGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.instituts.delete.confirm").localize();
|
"sciproject.ui.instituts.delete.confirm");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAssocType() {
|
public String getAssocType() {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType() {
|
public String getContentType() {
|
||||||
return "com.arsdigita.cms.contenttypes.SciInstitute";
|
return "com.arsdigita.cms.contenttypes.SciInstitute";
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
setDisplayComponent(institutesTable);
|
setDisplayComponent(institutesTable);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,130 +10,134 @@ import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Jens Pelzetter
|
* @author Jens Pelzetter
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class SciProjectInvolvedOrganizationsStep extends SimpleEditStep {
|
public class SciProjectInvolvedOrganizationsStep extends SimpleEditStep {
|
||||||
|
|
||||||
private final static String ADD_INVOLVED_ORGANIZATION_STEP =
|
private final static String ADD_INVOLVED_ORGANIZATION_STEP = "SciProjectAddInvolvedOrganization";
|
||||||
"SciProjectAddInvolvedOrganization";
|
|
||||||
public final static String ASSOC_TYPE = "InvolvedOrganization";
|
public final static String ASSOC_TYPE = "InvolvedOrganization";
|
||||||
|
|
||||||
public SciProjectInvolvedOrganizationsStep(
|
public SciProjectInvolvedOrganizationsStep(
|
||||||
final ItemSelectionModel itemModel,
|
final ItemSelectionModel itemModel,
|
||||||
final AuthoringKitWizard parent) {
|
final AuthoringKitWizard parent) {
|
||||||
this(itemModel, parent, null);
|
this(itemModel, parent, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SciProjectInvolvedOrganizationsStep(
|
public SciProjectInvolvedOrganizationsStep(
|
||||||
final ItemSelectionModel itemModel,
|
final ItemSelectionModel itemModel,
|
||||||
final AuthoringKitWizard parent,
|
final AuthoringKitWizard parent,
|
||||||
final String prefix) {
|
final String prefix) {
|
||||||
super(itemModel, parent, prefix);
|
super(itemModel, parent, prefix);
|
||||||
|
|
||||||
final BasicItemForm addInvolvedOrgaSheet =
|
final BasicItemForm addInvolvedOrgaSheet
|
||||||
new GenericOrganizationalUnitSuperiorOrgaUnitAddForm(
|
= new GenericOrganizationalUnitSuperiorOrgaUnitAddForm(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
||||||
|
|
||||||
public String getSelectSuperiorOrgaUnitLabel() {
|
public GlobalizedMessage getSelectSuperiorOrgaUnitLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.select").localize();
|
"sciproject.ui.involved_orgas.select");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSuperiorOrgaUnitType() {
|
public String getSuperiorOrgaUnitType() {
|
||||||
return GenericOrganizationalUnit.class.getName();
|
return GenericOrganizationalUnit.class.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAssocType() {
|
public String getAssocType() {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNothingSelectedMessage() {
|
public GlobalizedMessage getNothingSelectedMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.select.nothing").localize();
|
"sciproject.ui.involved_orgas.select.nothing");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNoSuitableLanguageVariantMessage() {
|
public GlobalizedMessage getNoSuitableLanguageVariantMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.no_suitable_language_variant").localize();
|
"sciproject.ui.involved_orgas.no_suitable_language_variant");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAddingToItselfMessage() {
|
public GlobalizedMessage getAddingToItselfMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.adding_to_itself").localize();
|
"sciproject.ui.involved_orgas.adding_to_itself");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAlreadyAddedMessage() {
|
public GlobalizedMessage getAlreadyAddedMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.already_added").localize();
|
"sciproject.ui.involved_orgas.already_added");
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
add(ADD_INVOLVED_ORGANIZATION_STEP,
|
add(ADD_INVOLVED_ORGANIZATION_STEP,
|
||||||
SciProjectGlobalizationUtil.globalize("sciproject.ui.involved_orgas.add"),
|
SciProjectGlobalizationUtil.globalize("sciproject.ui.involved_orgas.add"),
|
||||||
new WorkflowLockedComponentAccess(addInvolvedOrgaSheet, itemModel),
|
new WorkflowLockedComponentAccess(addInvolvedOrgaSheet, itemModel),
|
||||||
addInvolvedOrgaSheet.getSaveCancelSection().getCancelButton());
|
addInvolvedOrgaSheet.getSaveCancelSection().getCancelButton());
|
||||||
|
|
||||||
final GenericOrganizationalUnitSuperiorOrgaUnitsTable involvedTable = new GenericOrganizationalUnitSuperiorOrgaUnitsTable(
|
final GenericOrganizationalUnitSuperiorOrgaUnitsTable involvedTable
|
||||||
|
= new GenericOrganizationalUnitSuperiorOrgaUnitsTable(
|
||||||
itemModel, new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
itemModel, new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
||||||
|
|
||||||
public String getEmptyViewLabel() {
|
public GlobalizedMessage getEmptyViewLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.empty_view").localize();
|
"sciproject.ui.involved_orgas.empty_view");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameColumnLabel() {
|
public GlobalizedMessage getNameColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas..columns.name").localize();
|
"sciproject.ui.involved_orgas..columns.name");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteColumnLabel() {
|
public GlobalizedMessage getDeleteColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.columns.delete").localize();
|
"sciproject.ui.involved_orgas.columns.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpColumnLabel() {
|
public GlobalizedMessage getUpColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.columns.up").localize();
|
"sciproject.ui.involved_orgas.columns.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownColumnLabel() {
|
public GlobalizedMessage getDownColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.columns.down").localize();
|
"sciproject.ui.involved_orgas.columns.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteLabel() {
|
public GlobalizedMessage getDeleteLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.delete").localize();
|
"sciproject.ui.involved_orgas.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpLabel() {
|
public GlobalizedMessage getUpLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.up").localize();
|
"sciproject.ui.involved_orgas.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownLabel() {
|
public GlobalizedMessage getDownLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.down").localize();
|
"sciproject.ui.involved_orgas.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfirmRemoveLabel() {
|
public GlobalizedMessage getConfirmRemoveLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.involved_orgas.delete.confirm").localize();
|
"sciproject.ui.involved_orgas.delete.confirm");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getAssocType() {
|
||||||
|
return ASSOC_TYPE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContentType() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
public String getAssocType() {
|
|
||||||
return ASSOC_TYPE;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getContentType() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
setDisplayComponent(involvedTable);
|
setDisplayComponent(involvedTable);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,11 @@ import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Jens Pelzetter
|
* @author Jens Pelzetter
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class SciProjectSubProjectsStep extends SimpleEditStep {
|
public class SciProjectSubProjectsStep extends SimpleEditStep {
|
||||||
|
|
@ -27,14 +28,14 @@ public class SciProjectSubProjectsStep extends SimpleEditStep {
|
||||||
final String prefix) {
|
final String prefix) {
|
||||||
super(itemModel, parent, prefix);
|
super(itemModel, parent, prefix);
|
||||||
|
|
||||||
final BasicItemForm addSubProjectSheet =
|
final BasicItemForm addSubProjectSheet
|
||||||
new GenericOrganizationalUnitSubordinateOrgaUnitAddForm(
|
= new GenericOrganizationalUnitSubordinateOrgaUnitAddForm(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer() {
|
new GenericOrgaUnitSubordinateOrgaUnitAddFormCustomizer() {
|
||||||
|
|
||||||
public String getSelectSubordinateOrgaUnitLabel() {
|
public GlobalizedMessage getSelectSubordinateOrgaUnitLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subproject.select").localize();
|
"sciproject.ui.subproject.select");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSubordinateOrgaUnitType() {
|
public String getSubordinateOrgaUnitType() {
|
||||||
|
|
@ -45,29 +46,26 @@ public class SciProjectSubProjectsStep extends SimpleEditStep {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNothingSelectedMessage() {
|
public GlobalizedMessage getNothingSelectedMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subproject.select.nothing").
|
"sciproject.ui.subproject.select.nothing");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNoSuitableLanguageVariantMessage() {
|
public GlobalizedMessage getNoSuitableLanguageVariantMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subproject.no_suitable_language_variant").
|
"sciproject.ui.subproject.no_suitable_language_variant");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAddingToItselfMessage() {
|
public GlobalizedMessage getAddingToItselfMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subproject.adding_to_itself").
|
"sciproject.ui.subproject.adding_to_itself");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAlreadyAddedMessage() {
|
public GlobalizedMessage getAlreadyAddedMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subproject.already_added").
|
"sciproject.ui.subproject.already_added");
|
||||||
localize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
add(ADD_SUBPROJECT_SHEET_NAME,
|
add(ADD_SUBPROJECT_SHEET_NAME,
|
||||||
SciProjectGlobalizationUtil.globalize(
|
SciProjectGlobalizationUtil.globalize(
|
||||||
|
|
@ -75,67 +73,68 @@ public class SciProjectSubProjectsStep extends SimpleEditStep {
|
||||||
new WorkflowLockedComponentAccess(addSubProjectSheet, itemModel),
|
new WorkflowLockedComponentAccess(addSubProjectSheet, itemModel),
|
||||||
addSubProjectSheet.getSaveCancelSection().getCancelButton());
|
addSubProjectSheet.getSaveCancelSection().getCancelButton());
|
||||||
|
|
||||||
final GenericOrganizationalUnitSubordinateOrgaUnitsTable subProjectsTable =
|
final GenericOrganizationalUnitSubordinateOrgaUnitsTable subProjectsTable
|
||||||
new GenericOrganizationalUnitSubordinateOrgaUnitsTable(
|
= new GenericOrganizationalUnitSubordinateOrgaUnitsTable(
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSubordinateOrgaUnitsTableCustomizer() {
|
new GenericOrgaUnitSubordinateOrgaUnitsTableCustomizer() {
|
||||||
|
|
||||||
public String getEmptyViewLabel() {
|
public GlobalizedMessage getEmptyViewLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subprojects.empty_view").localize();
|
"sciproject.ui.subprojects.empty_view");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameColumnLabel() {
|
public GlobalizedMessage getNameColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subprojects.columns.name").localize();
|
"sciproject.ui.subprojects.columns.name");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteColumnLabel() {
|
public GlobalizedMessage getDeleteColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subprojects.colums.delete").localize();
|
"sciproject.ui.subprojects.colums.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpColumnLabel() {
|
public GlobalizedMessage getUpColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subprojects.columns.up").localize();
|
"sciproject.ui.subprojects.columns.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownColumnLabel() {
|
public GlobalizedMessage getDownColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subprojects.columns.down").localize();
|
"sciproject.ui.subprojects.columns.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteLabel() {
|
public GlobalizedMessage getDeleteLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subproject.delete").localize();
|
"sciproject.ui.subproject.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpLabel() {
|
public GlobalizedMessage getUpLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subproject.order.up").localize();
|
"sciproject.ui.subproject.order.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownLabel() {
|
public GlobalizedMessage getDownLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subproject.order.down").localize();
|
"sciproject.ui.subproject.order.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfirmRemoveLabel() {
|
public GlobalizedMessage getConfirmRemoveLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.subproject.remove.confirm").localize();
|
"sciproject.ui.subproject.remove.confirm");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAssocType() {
|
public String getAssocType() {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType() {
|
public String getContentType() {
|
||||||
return "com.arsdigita.cms.contenttypes.SciProjectBundle";
|
return "com.arsdigita.cms.contenttypes.SciProjectBundle";
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
setDisplayComponent(subProjectsTable);
|
setDisplayComponent(subProjectsTable);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||||
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
@ -32,9 +33,9 @@ public class SciProjectSuperProjectsStep extends SimpleEditStep {
|
||||||
itemModel,
|
itemModel,
|
||||||
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
new GenericOrgaUnitSuperiorOrgaUnitAddFormCustomizer() {
|
||||||
|
|
||||||
public String getSelectSuperiorOrgaUnitLabel() {
|
public GlobalizedMessage getSelectSuperiorOrgaUnitLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superproject.select").localize();
|
"sciproject.ui.superproject.select");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSuperiorOrgaUnitType() {
|
public String getSuperiorOrgaUnitType() {
|
||||||
|
|
@ -45,24 +46,24 @@ public class SciProjectSuperProjectsStep extends SimpleEditStep {
|
||||||
return ASSOC_TYPE;
|
return ASSOC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNothingSelectedMessage() {
|
public GlobalizedMessage getNothingSelectedMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superproject.select.nothing").localize();
|
"sciproject.ui.superproject.select.nothing");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNoSuitableLanguageVariantMessage() {
|
public GlobalizedMessage getNoSuitableLanguageVariantMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superproject.no_suitable_language_variant").localize();
|
"sciproject.ui.superproject.no_suitable_language_variant");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAddingToItselfMessage() {
|
public GlobalizedMessage getAddingToItselfMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superproject.adding_to_itself").localize();
|
"sciproject.ui.superproject.adding_to_itself");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAlreadyAddedMessage() {
|
public GlobalizedMessage getAlreadyAddedMessage() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superproject.already_added").localize();
|
"sciproject.ui.superproject.already_added");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
add(ADD_SUPERPROJECT_SHEET_NAME,
|
add(ADD_SUPERPROJECT_SHEET_NAME,
|
||||||
|
|
@ -73,49 +74,49 @@ public class SciProjectSuperProjectsStep extends SimpleEditStep {
|
||||||
final GenericOrganizationalUnitSuperiorOrgaUnitsTable superProjectsTable = new GenericOrganizationalUnitSuperiorOrgaUnitsTable(
|
final GenericOrganizationalUnitSuperiorOrgaUnitsTable superProjectsTable = new GenericOrganizationalUnitSuperiorOrgaUnitsTable(
|
||||||
itemModel, new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
itemModel, new GenericOrgaUnitSuperiorOrgaUnitsTableCustomizer() {
|
||||||
|
|
||||||
public String getEmptyViewLabel() {
|
public GlobalizedMessage getEmptyViewLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superprojects.empty_view").localize();
|
"sciproject.ui.superprojects.empty_view");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameColumnLabel() {
|
public GlobalizedMessage getNameColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superprojects.columns.name").localize();
|
"sciproject.ui.superprojects.columns.name");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteColumnLabel() {
|
public GlobalizedMessage getDeleteColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superprojects.columns.delete").localize();
|
"sciproject.ui.superprojects.columns.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpColumnLabel() {
|
public GlobalizedMessage getUpColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superprojects.columns.up").localize();
|
"sciproject.ui.superprojects.columns.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownColumnLabel() {
|
public GlobalizedMessage getDownColumnLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superprojects.columns.down").localize();
|
"sciproject.ui.superprojects.columns.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteLabel() {
|
public GlobalizedMessage getDeleteLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superproject.delete").localize();
|
"sciproject.ui.superproject.delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpLabel() {
|
public GlobalizedMessage getUpLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superproject.order.up").localize();
|
"sciproject.ui.superproject.order.up");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDownLabel() {
|
public GlobalizedMessage getDownLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superproject.order.down").localize();
|
"sciproject.ui.superproject.order.down");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfirmRemoveLabel() {
|
public GlobalizedMessage getConfirmRemoveLabel() {
|
||||||
return (String) SciProjectGlobalizationUtil.globalize(
|
return SciProjectGlobalizationUtil.globalize(
|
||||||
"sciproject.ui.superproject.remove.confirm").localize();
|
"sciproject.ui.superproject.remove.confirm");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAssocType() {
|
public String getAssocType() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue