- Change password link: Added URL and title to CMSGlobalNavigation and
UserBanner (like logout link) and added support to Mandalay - Some formatting git-svn-id: https://svn.libreccm.org/ccm/trunk@2629 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
71f625a792
commit
6382af5c68
|
|
@ -1,6 +1,6 @@
|
|||
model com.arsdigita.cms.contenttypes;
|
||||
|
||||
import com.arsdigita.cms.contenttypes.GenricOrganization;
|
||||
import com.arsdigita.cms.contenttypes.GenricOrganizationalUnit;
|
||||
import com.arsdigita.cms.contenttypes.GenericAddress;
|
||||
import com.arsdigita.cms.contenttypes.GenericContact;
|
||||
|
||||
|
|
@ -8,29 +8,10 @@ import com.arsdigita.kernel.ACSObject;
|
|||
import com.arsdigita.cms.*;
|
||||
|
||||
// HealthCareFacility Object
|
||||
object type HealthCareFacility extends GenericOrganization {
|
||||
object type HealthCareFacility extends GenericOrganizationalUnit {
|
||||
|
||||
GenericAddress[0..1] address = join ct_healthCareFacilities.address_id
|
||||
to cms_addresses.address_id;
|
||||
|
||||
reference key ( ct_healthCareFacilities.hcf_id );
|
||||
}
|
||||
|
||||
association {
|
||||
|
||||
GenericContact[0..n] contacts = join ct_healthCareFacilities.hcf_id
|
||||
to ct_healthCareFacility_contact_map.hcf_id,
|
||||
join ct_healthCareFacility_contact_map.contact_id
|
||||
to cms_contacts.contact_id;
|
||||
|
||||
HealthCareFacility[0..n] healthCareFacilities = join cms_contacts.contact_id
|
||||
to ct_healthCareFacility_contact_map.contact_id,
|
||||
join ct_healthCareFacility_contact_map.hcf_id
|
||||
to ct_healthCareFacilities.hcf_id;
|
||||
|
||||
// Link Attribute
|
||||
String contact_type = ct_healthCareFacility_contact_map.contact_type VARCHAR(100);
|
||||
BigDecimal contact_order = ct_healthCareFacility_contact_map.contact_order INTEGER;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ import org.apache.log4j.Logger;
|
|||
*
|
||||
* @author Sören Bernstein <quasi@quasiweb.de>
|
||||
*/
|
||||
public class HealthCareFacility extends GenericOrganization {
|
||||
public class HealthCareFacility extends GenericOrganizationalUnit {
|
||||
|
||||
//private static final HealthCareFacilityConfig s_config = new HealthCareFacilityConfig();
|
||||
private static final Logger s_log = Logger.getLogger(HealthCareFacility.class);
|
||||
|
|
@ -122,48 +122,48 @@ public class HealthCareFacility extends GenericOrganization {
|
|||
}
|
||||
|
||||
|
||||
/* accessors *************************************************/
|
||||
|
||||
// Get the address for this contact
|
||||
public com.arsdigita.cms.contenttypes.GenericAddress getAddress() {
|
||||
return (com.arsdigita.cms.contenttypes.GenericAddress)DomainObjectFactory.newInstance((DataObject)get(ADDRESS));
|
||||
}
|
||||
|
||||
// Set the address for this contact
|
||||
public void setAddress(com.arsdigita.cms.contenttypes.GenericAddress address) {
|
||||
set(ADDRESS, address);
|
||||
}
|
||||
|
||||
// Unset the address for this contact
|
||||
public void unsetAddress() {
|
||||
set(ADDRESS, null);
|
||||
}
|
||||
|
||||
// Get all contacts for this health care facility
|
||||
public HealthCareFacilityContactCollection getContacts() {
|
||||
return new HealthCareFacilityContactCollection((DataCollection) get(CONTACTS));
|
||||
}
|
||||
|
||||
// Add a contact for this health care facility
|
||||
public void addContact(com.arsdigita.cms.contenttypes.GenericContact contact, String contactType) {
|
||||
Assert.exists(contact, com.arsdigita.cms.contenttypes.GenericContact.class);
|
||||
|
||||
DataObject link = add(CONTACTS, contact);
|
||||
|
||||
link.set(CONTACT_TYPE, contactType);
|
||||
link.set(CONTACT_ORDER, BigDecimal.valueOf(getContacts().size()));
|
||||
// this.save();
|
||||
|
||||
// add(CONTACTS, contact);
|
||||
}
|
||||
|
||||
// Remove a contect for this health care facility
|
||||
public void removeContactEntry(com.arsdigita.cms.contenttypes.GenericContact contact) {
|
||||
Assert.exists(contact, com.arsdigita.cms.contenttypes.GenericContact.class);
|
||||
remove(CONTACTS, contact);
|
||||
}
|
||||
|
||||
public boolean hasContacts() {
|
||||
return !this.getContacts().isEmpty();
|
||||
}
|
||||
// /* accessors *************************************************/
|
||||
//
|
||||
// // Get the address for this contact
|
||||
// public com.arsdigita.cms.contenttypes.GenericAddress getAddress() {
|
||||
// return (com.arsdigita.cms.contenttypes.GenericAddress)DomainObjectFactory.newInstance((DataObject)get(ADDRESS));
|
||||
// }
|
||||
//
|
||||
// // Set the address for this contact
|
||||
// public void setAddress(com.arsdigita.cms.contenttypes.GenericAddress address) {
|
||||
// set(ADDRESS, address);
|
||||
// }
|
||||
//
|
||||
// // Unset the address for this contact
|
||||
// public void unsetAddress() {
|
||||
// set(ADDRESS, null);
|
||||
// }
|
||||
//
|
||||
// // Get all contacts for this health care facility
|
||||
// public HealthCareFacilityContactCollection getContacts() {
|
||||
// return new HealthCareFacilityContactCollection((DataCollection) get(CONTACTS));
|
||||
// }
|
||||
//
|
||||
// // Add a contact for this health care facility
|
||||
// public void addContact(com.arsdigita.cms.contenttypes.GenericContact contact, String contactType) {
|
||||
// Assert.exists(contact, com.arsdigita.cms.contenttypes.GenericContact.class);
|
||||
//
|
||||
// DataObject link = add(CONTACTS, contact);
|
||||
//
|
||||
// link.set(CONTACT_TYPE, contactType);
|
||||
// link.set(CONTACT_ORDER, BigDecimal.valueOf(getContacts().size()));
|
||||
//// this.save();
|
||||
//
|
||||
//// add(CONTACTS, contact);
|
||||
// }
|
||||
//
|
||||
// // Remove a contect for this health care facility
|
||||
// public void removeContactEntry(com.arsdigita.cms.contenttypes.GenericContact contact) {
|
||||
// Assert.exists(contact, com.arsdigita.cms.contenttypes.GenericContact.class);
|
||||
// remove(CONTACTS, contact);
|
||||
// }
|
||||
//
|
||||
// public boolean hasContacts() {
|
||||
// return !this.getContacts().isEmpty();
|
||||
// }
|
||||
}
|
||||
|
|
@ -1070,3 +1070,4 @@ cms.ui.category.cantmoved=This category can't be moved
|
|||
cms.ui.authoring.error_conflicts_with_this_url=There are conflicts with this URL. Specifically, there is at least one item in the same category as this item with the name (url) of
|
||||
cms.ui.search.help=To search for content items, please enter at least 3 letters into the search field. You can narrow the result by using additional parameters.
|
||||
cms.ui.search.no_results=Sorry. Not content items found which match your search.
|
||||
cms.ui.change_password=Change password
|
||||
|
|
|
|||
|
|
@ -1064,3 +1064,4 @@ cms.ui.category.cantmoved=Diese Kategorie kann nicht verschoben werden
|
|||
cms.ui.authoring.error_conflicts_with_this_url=Es gibt Konflikte mit dieser URL. Insbesondere gibt es mindestens ein Dokument in der gleichen Kategorie wie dieser mit dem Namen (URL)
|
||||
cms.ui.search.help=Geben sie mindestens drei Buchstaben ein, um nach Content Items zu suchen. Sie k\u00f6nnen das Ergebnis mit weiteren Parametern einschr\u00e4nken.
|
||||
cms.ui.search.no_results=Es wurden keine Content Items gefunden, die Ihren Suchparametern entsprechen
|
||||
cms.ui.change_password=Passwort \u00e4ndern
|
||||
|
|
|
|||
|
|
@ -118,3 +118,4 @@ cms.ui.category.cantmoved=This category can't be moved
|
|||
cms.ui.authoring.error_conflicts_with_this_url=There are conflicts with this URL. Specifically, there is at least one item in the same category as this item with the name (url) of
|
||||
cms.ui.search.help=
|
||||
cms.ui.search.no_results=
|
||||
cms.ui.change_password=
|
||||
|
|
|
|||
|
|
@ -592,3 +592,4 @@ cms.ui.category.cantmoved=This category can't be moved
|
|||
cms.ui.authoring.error_conflicts_with_this_url=There are conflicts with this URL. Specifically, there is atleast one item in the same category as this item with the name (url) of
|
||||
cms.ui.search.help=
|
||||
cms.ui.search.no_results=
|
||||
cms.ui.change_password=
|
||||
|
|
|
|||
|
|
@ -36,7 +36,8 @@ import org.apache.log4j.Logger;
|
|||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* <p>Global navigation elements for the CMS admin UIs.</p>
|
||||
* <p>
|
||||
* Global navigation elements for the CMS admin UIs.</p>
|
||||
*
|
||||
* @author Justin Ross <jross@redhat.com>
|
||||
* @version $Id: GlobalNavigation.java 1942 2009-05-29 07:53:23Z terry $
|
||||
|
|
@ -45,21 +46,23 @@ import javax.servlet.http.HttpServletRequest;
|
|||
public class GlobalNavigation extends SimpleComponent {
|
||||
|
||||
private static final Logger s_log = Logger.getLogger(GlobalNavigation.class);
|
||||
private final String m_centerPath;
|
||||
private final String m_adminPath;
|
||||
private final String m_wspcPath;
|
||||
private final String m_signOutPath;
|
||||
private final String m_centerPath;
|
||||
private final String m_changePasswordPath;
|
||||
private final String m_helpPath;
|
||||
private final String m_signOutPath;
|
||||
private final String m_wspcPath;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public GlobalNavigation() {
|
||||
m_centerPath = ContentCenter.getURL();
|
||||
m_adminPath = Admin.getInstance().getServletPath();
|
||||
m_wspcPath = UI.getWorkspaceURL();
|
||||
m_signOutPath = LoginServlet.getLogoutPageURL();
|
||||
m_centerPath = ContentCenter.getURL();
|
||||
m_changePasswordPath = LoginServlet.getChangePasswordPageURL();
|
||||
m_helpPath = "/nowhere"; // We don't have this yet XXX.
|
||||
m_signOutPath = LoginServlet.getLogoutPageURL();
|
||||
m_wspcPath = UI.getWorkspaceURL();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -78,6 +81,7 @@ public class GlobalNavigation extends SimpleComponent {
|
|||
final String wspcTitle = lz("cms.ui.my_workspace");
|
||||
final String signOutTitle = lz("cms.ui.sign_out");
|
||||
final String helpTitle = lz("cms.ui.help");
|
||||
final String changePasswordTitle = lz("cms.ui.change_password");
|
||||
|
||||
link(sreq, nav, "cms:contentCenter", m_centerPath, centerTitle);
|
||||
|
||||
|
|
@ -90,6 +94,7 @@ public class GlobalNavigation extends SimpleComponent {
|
|||
}
|
||||
|
||||
link(sreq, nav, "cms:workspace", m_wspcPath, wspcTitle);
|
||||
link(sreq, nav, "cms:changePassword", m_changePasswordPath, changePasswordTitle);
|
||||
link(sreq, nav, "cms:signOut", m_signOutPath, signOutTitle);
|
||||
link(sreq, nav, "cms:help", m_helpPath, helpTitle);
|
||||
}
|
||||
|
|
@ -102,6 +107,7 @@ public class GlobalNavigation extends SimpleComponent {
|
|||
* @param name
|
||||
* @param path
|
||||
* @param title
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
private static Element link(final HttpServletRequest sreq,
|
||||
|
|
@ -120,9 +126,11 @@ public class GlobalNavigation extends SimpleComponent {
|
|||
/**
|
||||
*
|
||||
* @param key
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
private static String lz(final String key) {
|
||||
return (String) ContentSectionPage.globalize(key).localize();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,3 +28,4 @@ com.arsdigita.ui.admin.applications.desc.valiation.minmaxlength=The maximum leng
|
|||
com.arsdigita.ui.admin.applications.url.label=URL
|
||||
com.arsdigita.ui.admin.applications.title.label=Title
|
||||
com.arsdigita.ui.admin.applications.desc.label=Description
|
||||
ui.change_password=Change password
|
||||
|
|
|
|||
|
|
@ -28,3 +28,4 @@ com.arsdigita.ui.admin.applications.desc.valiation.minmaxlength=Die Beschreibung
|
|||
com.arsdigita.ui.admin.applications.url.label=URL
|
||||
com.arsdigita.ui.admin.applications.title.label=Bezeichnung
|
||||
com.arsdigita.ui.admin.applications.desc.label=Beschreibung
|
||||
ui.change_password=Passwort \u00e4ndern
|
||||
|
|
|
|||
|
|
@ -28,3 +28,4 @@ com.arsdigita.ui.admin.applications.desc.valiation.minmaxlength=
|
|||
com.arsdigita.ui.admin.applications.url.label=
|
||||
com.arsdigita.ui.admin.applications.title.label=
|
||||
com.arsdigita.ui.admin.applications.desc.label=
|
||||
ui.change_password=
|
||||
|
|
|
|||
|
|
@ -24,3 +24,4 @@ com.arsdigita.ui.admin.applications.desc.valiation.minmaxlength=
|
|||
com.arsdigita.ui.admin.applications.url.label=
|
||||
com.arsdigita.ui.admin.applications.title.label=
|
||||
com.arsdigita.ui.admin.applications.desc.label=
|
||||
ui.change_password=
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ import com.arsdigita.web.URL;
|
|||
import com.arsdigita.xml.Element;
|
||||
import com.arsdigita.ui.util.GlobalizationUtil;
|
||||
import com.arsdigita.globalization.GlobalizedMessage;
|
||||
import com.arsdigita.ui.login.Login;
|
||||
import com.arsdigita.ui.login.LoginServlet;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -38,6 +40,7 @@ public class UserBanner extends SimpleComponent {
|
|||
private static GlobalizedMessage s_signout;
|
||||
private static GlobalizedMessage s_portal;
|
||||
private static GlobalizedMessage s_greet;
|
||||
private static GlobalizedMessage s_changePassword;
|
||||
|
||||
private static boolean initialized = false;
|
||||
|
||||
|
|
@ -53,6 +56,7 @@ public class UserBanner extends SimpleComponent {
|
|||
s_signout = GlobalizationUtil.globalize("ui.admin.signout");
|
||||
s_portal = GlobalizationUtil.globalize("ui.admin.portal");
|
||||
s_greet = GlobalizationUtil.globalize("ui.admin.greeting");
|
||||
s_changePassword = GlobalizationUtil.globalize("ui.change_password");
|
||||
|
||||
initialized = true;
|
||||
}
|
||||
|
|
@ -87,6 +91,9 @@ public class UserBanner extends SimpleComponent {
|
|||
user.getOID().toString());
|
||||
}
|
||||
|
||||
content.addAttribute("changePasswordLabel",
|
||||
(String) s_changePassword.localize(state.getRequest()));
|
||||
|
||||
content.addAttribute("helpLabel",
|
||||
(String) s_help.localize(state.getRequest()));
|
||||
|
||||
|
|
@ -99,7 +106,6 @@ public class UserBanner extends SimpleComponent {
|
|||
content.addAttribute("greeting",
|
||||
(String) s_greet.localize(state.getRequest()));
|
||||
|
||||
|
||||
content.addAttribute(
|
||||
"workspaceURL",
|
||||
URL.there(state.getRequest(),
|
||||
|
|
@ -110,20 +116,25 @@ public class UserBanner extends SimpleComponent {
|
|||
content.addAttribute(
|
||||
"loginURL",
|
||||
URL.there(state.getRequest(),
|
||||
UI.getLoginPageURL()).toString());
|
||||
Login.getLoginPageURL()).toString());
|
||||
// LegacyInitializer.getFullURL(LegacyInitializer.LOGIN_PAGE_KEY,
|
||||
// state.getRequest())).toString());
|
||||
|
||||
content.addAttribute(
|
||||
"loginExcursionURL",
|
||||
URL.excursion(state.getRequest(),
|
||||
UI.getLoginPageURL()).toString());
|
||||
Login.getLoginPageURL()).toString());
|
||||
// LegacyInitializer.getFullURL(LegacyInitializer.LOGIN_PAGE_KEY,
|
||||
// state.getRequest())).toString());
|
||||
|
||||
content.addAttribute(
|
||||
"logoutURL",
|
||||
URL.there(state.getRequest(),UI.getLogoutPageURL()).toString());
|
||||
URL.there(state.getRequest(), LoginServlet.getLogoutPageURL()).toString());
|
||||
|
||||
content.addAttribute("changePasswordURL",
|
||||
URL.there(state.getRequest(),
|
||||
LoginServlet.getChangePasswordPageURL()).toString());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
*/
|
||||
|
||||
package com.arsdigita.ui.login;
|
||||
|
||||
import com.arsdigita.bebop.Component;
|
||||
|
|
@ -41,70 +40,75 @@ import javax.servlet.http.HttpServletRequest;
|
|||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Login Application Servlet class, central entry point to create and process
|
||||
* the Login application UI.
|
||||
* Login Application Servlet class, central entry point to create and process the Login application
|
||||
* UI.
|
||||
*
|
||||
* It manages user registration page, new user page, user workspace, logout,
|
||||
* and permissions admin pages.
|
||||
* It manages user registration page, new user page, user workspace, logout, and permissions admin
|
||||
* pages.
|
||||
*
|
||||
* It just defines a mapping URL <-> various pages and uses the super class
|
||||
* to actually server the pages. Additionally is provides service methods
|
||||
* to expose various properties, especially the URL's of public subpages
|
||||
* (e.g. logout) and initializes the creation of the UI.
|
||||
* It just defines a mapping URL <-> various pages and uses the super class to actually server the
|
||||
* pages. Additionally is provides service methods to expose various properties, especially the
|
||||
* URL's of public subpages (e.g. logout) and initializes the creation of the UI.
|
||||
*
|
||||
* @author Peter Boy <pboy@barkhof.uni-bremen.de>
|
||||
* @version $Id: LoginServlet.java 2161 2012-03-15 00:16:13Z pboy $
|
||||
*/
|
||||
public class LoginServlet extends BebopApplicationServlet {
|
||||
|
||||
/** Logger instance for debugging */
|
||||
/**
|
||||
* Logger instance for debugging
|
||||
*/
|
||||
private static final Logger s_log = Logger.getLogger(LoginServlet.class);
|
||||
|
||||
|
||||
// ////////////////////////////////////////////////////////////////////////
|
||||
// Define various URLs to subpages of Login to manage administrative tasks.
|
||||
// ////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/** PathInfo into the Login application to access the (optional) newUser *
|
||||
* page. Ends with "/" because it is a servlet/directory */
|
||||
/**
|
||||
* PathInfo into the Login application to access the (optional) newUser * page. Ends with "/"
|
||||
* because it is a servlet/directory
|
||||
*/
|
||||
public static final String EDIT_USER_PROFILE_PATH_INFO = "/edit-profile/";
|
||||
|
||||
/** PathInfo into the Login application to access the (optional) newUser *
|
||||
* page. Ends with "/" because it is a servlet/directory */
|
||||
/**
|
||||
* PathInfo into the Login application to access the (optional) newUser * page. Ends with "/"
|
||||
* because it is a servlet/directory
|
||||
*/
|
||||
public static final String NEW_USER_PATH_INFO = "/new-user/";
|
||||
|
||||
/** PathInfo into the Login application to access the (optional) newUser *
|
||||
* page. Ends with "/" because it is a servlet/directory */
|
||||
/**
|
||||
* PathInfo into the Login application to access the (optional) newUser * page. Ends with "/"
|
||||
* because it is a servlet/directory
|
||||
*/
|
||||
public static final String CHANGE_USER_PASSWORD_PATH_INFO = "/change-password/";
|
||||
|
||||
/** PathInfo into the Login application to access the (optional) newUser
|
||||
* page. Ends with "/" because it is a servlet/directory
|
||||
/**
|
||||
* PathInfo into the Login application to access the (optional) newUser page. Ends with "/"
|
||||
* because it is a servlet/directory
|
||||
*/
|
||||
public static final String RECOVER_USER_PASSWORD_PATH_INFO = "/recover-password/";
|
||||
|
||||
/** PathInfo into the Login application to access the (optional) newUser
|
||||
* page. Ends with "/" because it is a servlet/directory
|
||||
/**
|
||||
* PathInfo into the Login application to access the (optional) newUser page. Ends with "/"
|
||||
* because it is a servlet/directory
|
||||
*/
|
||||
public static final String EXPLAIN_PERSISTENT_COOKIES_PATH_INFO =
|
||||
"/explain-persistent-cookies/";
|
||||
public static final String EXPLAIN_PERSISTENT_COOKIES_PATH_INFO = "/explain-persistent-cookies/";
|
||||
|
||||
/** PathInfo into the Login application to access the (optional) newUser
|
||||
* page. Ends with "/" because it is a servlet/directory
|
||||
/**
|
||||
* PathInfo into the Login application to access the (optional) newUser page. Ends with "/"
|
||||
* because it is a servlet/directory
|
||||
*/
|
||||
public static final String LOGIN_EXPIRED_PATH_INFO = "/login-expired/";
|
||||
|
||||
/** PathInfo into the Login application to access the (optional) newUser
|
||||
* page. Ends with "/" because it is a servlet/directory
|
||||
/**
|
||||
* PathInfo into the Login application to access the (optional) newUser page. Ends with "/"
|
||||
* because it is a servlet/directory
|
||||
*/
|
||||
public static final String LOGOUT_PATH_INFO = "/logout/";
|
||||
|
||||
|
||||
|
||||
/** Base URL of the Login application for internal use, fetched from
|
||||
* Login domain class. */
|
||||
/**
|
||||
* Base URL of the Login application for internal use, fetched from Login domain class.
|
||||
*/
|
||||
private final static String s_loginURL = Login.LOGIN_PAGE_URL;
|
||||
|
||||
// define namespace URI
|
||||
|
|
@ -113,8 +117,7 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
public static final String APPLICATION_NAME = "login";
|
||||
|
||||
/**
|
||||
* User extension point used to create the pages to server and setup a
|
||||
* URL - page mapping.
|
||||
* User extension point used to create the pages to server and setup a URL - page mapping.
|
||||
*
|
||||
* @throws ServletException
|
||||
*/
|
||||
|
|
@ -180,7 +183,6 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
put(LOGOUT_PATH_INFO, buildLogOutPage());
|
||||
disableClientCaching(LOGOUT_PATH_INFO);
|
||||
|
||||
|
||||
Page workspace = checkForPageSubClass();
|
||||
if (workspace == null) {
|
||||
workspace = buildSimplePage("login.workspacePage.title",
|
||||
|
|
@ -202,14 +204,13 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check wether a custom base Page class (top-level container for all Bebop
|
||||
* components and containersPages) is configured and return the appropriate
|
||||
* Page. Here used (only) for UserInfo() workspace.
|
||||
* Check wether a custom base Page class (top-level container for all Bebop components and
|
||||
* containersPages) is configured and return the appropriate Page. Here used (only) for
|
||||
* UserInfo() workspace.
|
||||
*
|
||||
* @return Page to use for top-level container for all Bebop components and
|
||||
* containersPage, null to use default class
|
||||
* @return Page to use for top-level container for all Bebop components and containersPage, null
|
||||
* to use default class
|
||||
*/
|
||||
private static Page checkForPageSubClass() {
|
||||
//check to see if there is subclass of Page defined in Config
|
||||
|
|
@ -232,7 +233,8 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
* Creates a Page with the given title and body component.
|
||||
*
|
||||
* @return the new Page
|
||||
**/
|
||||
*
|
||||
*/
|
||||
private static Page buildSimplePage(String title, Component body, String id) {
|
||||
|
||||
Page page = PageFactory.buildPage(APPLICATION_NAME,
|
||||
|
|
@ -244,8 +246,7 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates a page informing the user the login has expired. Provides links
|
||||
* to login again, etc.
|
||||
* Creates a page informing the user the login has expired. Provides links to login again, etc.
|
||||
*
|
||||
* @return Page (login expired info)
|
||||
*/
|
||||
|
|
@ -256,15 +257,14 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
);
|
||||
page.add(new SimpleContainer() {
|
||||
{ // constructor
|
||||
add(new Label(LoginHelper.getMessage
|
||||
("login.loginExpiredPage.before")));
|
||||
add(new Label(LoginHelper.getMessage("login.loginExpiredPage.before")));
|
||||
add(new DynamicLink("login.loginExpiredPage.link",
|
||||
Login.getLoginPageURL()));
|
||||
add(new Label(LoginHelper.getMessage
|
||||
("login.loginExpiredPage.after")));
|
||||
add(new Label(LoginHelper.getMessage("login.loginExpiredPage.after")));
|
||||
add(new ElementComponent("subsite:explainLoginExpired",
|
||||
SUBSITE_NS_URI));
|
||||
}
|
||||
|
||||
});
|
||||
page.lock();
|
||||
return page;
|
||||
|
|
@ -290,24 +290,21 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
|
||||
throw new ReturnSignal(req, URL.there(req, path));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
page.lock();
|
||||
return page;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Provides an (absolute) URL to a user profile editig page.
|
||||
* It is relative to document root without any constant prefix if there is
|
||||
* one configured.
|
||||
* Provides an (absolute) URL to a user profile editig page. It is relative to document root
|
||||
* without any constant prefix if there is one configured.
|
||||
*
|
||||
* XXX This implementation starts with a leading slash and ends with a slash.
|
||||
* In previous configurations String urls began without a slash in order
|
||||
* to be able to provide a full URL which also contains the context part.
|
||||
* Since version 5.2 the context part is handled by (new) dispatcher.
|
||||
* The leading slash it API change! It's impacts have to be checked. (2011-02)
|
||||
* XXX This implementation starts with a leading slash and ends with a slash. In previous
|
||||
* configurations String urls began without a slash in order to be able to provide a full URL
|
||||
* which also contains the context part. Since version 5.2 the context part is handled by (new)
|
||||
* dispatcher. The leading slash it API change! It's impacts have to be checked. (2011-02)
|
||||
*
|
||||
* @return url to EditUserProfile page as String
|
||||
*/
|
||||
|
|
@ -315,16 +312,19 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
return s_loginURL + EDIT_USER_PROFILE_PATH_INFO;
|
||||
}
|
||||
|
||||
public static String getChangePasswordPageURL() {
|
||||
return s_loginURL + CHANGE_USER_PASSWORD_PATH_INFO;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides an (absolute URL) to an optional new user registration page
|
||||
* (accessible only if activated). It is relative to document root
|
||||
* without any constant prefix if there is one configured.
|
||||
* Provides an (absolute URL) to an optional new user registration page (accessible only if
|
||||
* activated). It is relative to document root without any constant prefix if there is one
|
||||
* configured.
|
||||
*
|
||||
* XXX This implementation starts with a leading slash and ends with a slash.
|
||||
* In previous configurations String urls began without a slash in order
|
||||
* to be able to provide a full URL which also contains the context part.
|
||||
* Since version 5.2 the context part is handled by (new) dispatcher.
|
||||
* The leading slash it API change! It's impacts have to be checked. (2011-02)
|
||||
* XXX This implementation starts with a leading slash and ends with a slash. In previous
|
||||
* configurations String urls began without a slash in order to be able to provide a full URL
|
||||
* which also contains the context part. Since version 5.2 the context part is handled by (new)
|
||||
* dispatcher. The leading slash it API change! It's impacts have to be checked. (2011-02)
|
||||
*
|
||||
* @return url to new user registration page as String
|
||||
*/
|
||||
|
|
@ -333,15 +333,13 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
}
|
||||
|
||||
/**
|
||||
* Provides an absolute URL (leading slash) for a password recovery page.
|
||||
* It is relative to document root without any constant prefix if there is
|
||||
* one configured.
|
||||
* Provides an absolute URL (leading slash) for a password recovery page. It is relative to
|
||||
* document root without any constant prefix if there is one configured.
|
||||
*
|
||||
* XXX This implementation starts with a leading slash and ends with a slash.
|
||||
* In previous configurations String urls began without a slash in order
|
||||
* to be able to provide a full URL which also contains the context part.
|
||||
* Since version 5.2 the context part is handled by (new) dispatcher.
|
||||
* The leading slash it API change! It's impacts have tp be checked. (2011-02)
|
||||
* XXX This implementation starts with a leading slash and ends with a slash. In previous
|
||||
* configurations String urls began without a slash in order to be able to provide a full URL
|
||||
* which also contains the context part. Since version 5.2 the context part is handled by (new)
|
||||
* dispatcher. The leading slash it API change! It's impacts have tp be checked. (2011-02)
|
||||
*
|
||||
* @return url String for new user registration page as String
|
||||
*/
|
||||
|
|
@ -350,15 +348,13 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
}
|
||||
|
||||
/**
|
||||
* Provides an absolute URL (leading slash) for a cookie explanation page.
|
||||
* It is relative to document root without any constant prefix if there is
|
||||
* one configured.
|
||||
* Provides an absolute URL (leading slash) for a cookie explanation page. It is relative to
|
||||
* document root without any constant prefix if there is one configured.
|
||||
*
|
||||
* XXX This implementation starts with a leading slash and ends with a slash.
|
||||
* In previous configurations String urls began without a slash in order
|
||||
* to be able to provide a full URL which also contains the context part.
|
||||
* Since version 5.2 the context part is handled by (new) dispatcher.
|
||||
* The leading slash it API change! It's impacts have tp be checked. (2011-02)
|
||||
* XXX This implementation starts with a leading slash and ends with a slash. In previous
|
||||
* configurations String urls began without a slash in order to be able to provide a full URL
|
||||
* which also contains the context part. Since version 5.2 the context part is handled by (new)
|
||||
* dispatcher. The leading slash it API change! It's impacts have tp be checked. (2011-02)
|
||||
*
|
||||
* @return url String for new user registration page as String
|
||||
*/
|
||||
|
|
@ -367,15 +363,13 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
}
|
||||
|
||||
/**
|
||||
* Provides an absolute URL (leading slash) for a login expired info page.
|
||||
* It is relative to document root without any constant prefix if there is
|
||||
* one configured.
|
||||
* Provides an absolute URL (leading slash) for a login expired info page. It is relative to
|
||||
* document root without any constant prefix if there is one configured.
|
||||
*
|
||||
* XXX This implementation starts with a leading slash and ends with a slash.
|
||||
* In previous configurations String urls began without a slash in order
|
||||
* to be able to provide a full URL which also contains the context part.
|
||||
* Since version 5.2 the context part is handled by (new) dispatcher.
|
||||
* The leading slash it API change! It's impacts have tp be checked. (2011-02)
|
||||
* XXX This implementation starts with a leading slash and ends with a slash. In previous
|
||||
* configurations String urls began without a slash in order to be able to provide a full URL
|
||||
* which also contains the context part. Since version 5.2 the context part is handled by (new)
|
||||
* dispatcher. The leading slash it API change! It's impacts have tp be checked. (2011-02)
|
||||
*
|
||||
* @return url String for new user registration page as String
|
||||
*/
|
||||
|
|
@ -384,15 +378,13 @@ public class LoginServlet extends BebopApplicationServlet {
|
|||
}
|
||||
|
||||
/**
|
||||
* Provides an absolute URL (leading slash) for the system logout page. It
|
||||
* is relative to document root without any constant prefix if there is one
|
||||
* configured.
|
||||
* Provides an absolute URL (leading slash) for the system logout page. It is relative to
|
||||
* document root without any constant prefix if there is one configured.
|
||||
*
|
||||
* XXX This implementation starts with a leading slash and ends with a slash.
|
||||
* In previous configurations String urls began without a slash in order
|
||||
* to be able to provide a full URL which also contains the context part.
|
||||
* Since version 5.2 the context part is handled by (new) dispatcher.
|
||||
* The leading slash it API change! It's impacts have tp be checked. (2011-02)
|
||||
* XXX This implementation starts with a leading slash and ends with a slash. In previous
|
||||
* configurations String urls began without a slash in order to be able to provide a full URL
|
||||
* which also contains the context part. Since version 5.2 the context part is handled by (new)
|
||||
* dispatcher. The leading slash it API change! It's impacts have tp be checked. (2011-02)
|
||||
*
|
||||
* @return URL for logout page as String
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
com.arsdigita.cms.contentassets.about.discusses.label=Discusses
|
||||
com.arsdigita.cms.contentassets.about.discussing.label=Discussed by
|
||||
com.arsdigita.cms.contentassets.about.discusses.label=Discussed publications
|
||||
com.arsdigita.cms.contentassets.about.discussing.label=Discussing publications
|
||||
com.arsdigita.cms.contentassets.about.discusses.add=Add a discussed publication
|
||||
com.arsdigita.cms.contentassets.about.discusses.none=No publications found
|
||||
com.arsdigita.cms.contentassets.about.discusses.publication=Publication
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
com.arsdigita.cms.contentassets.about.discusses.label=Behandelt
|
||||
com.arsdigita.cms.contentassets.about.discusses.label=Behandelte Publikationen
|
||||
com.arsdigita.cms.contentassets.about.discussing.label=Wird behandelt in
|
||||
com.arsdigita.cms.contentassets.about.discusses.add=Behandelte Publikation hinzuf\u00fcgen
|
||||
com.arsdigita.cms.contentassets.about.discusses.none=Keine Publikationen gefunden
|
||||
|
|
|
|||
|
|
@ -95,6 +95,12 @@
|
|||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cms:changePassword">
|
||||
<span class="cmsGlobalNavigationChangePassword">
|
||||
<xsl:call-template name="cms:globalNavigationEntry"/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<!-- DE -->
|
||||
<!-- EN -->
|
||||
<xsl:template match="cms:signOut">
|
||||
|
|
|
|||
|
|
@ -52,7 +52,12 @@
|
|||
<script type="text/javascript" src="/assets/fancybox/jquery.mousewheel.pack.js"/>
|
||||
<link rel="stylesheet" href="/assets/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen"/>
|
||||
|
||||
<script type="text/javascript">$(document).ready(function() {$("a.imageZoom").fancybox({'type':'image'}); $("a.imageGallery").fancybox({'type':'image'});});</script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$("a.imageZoom").fancybox({'type':'image'});
|
||||
$("a.imageGallery").fancybox({'type':'image'});
|
||||
});
|
||||
</script>
|
||||
<!--
|
||||
</xsl:if>
|
||||
-->
|
||||
|
|
|
|||
|
|
@ -805,6 +805,21 @@
|
|||
<xsl:apply-templates select="$resultTree/cms:globalNavigation/cms:workspace"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="useChangePasswordLink">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$resultTree/cms:globalNavigation">
|
||||
<xsl:apply-templates select="$resultTree/cms:globalNavigation/cms:changePassword"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$resultTree/ui:userBanner">
|
||||
<span class="cmsGlobalNavigationChangePassword">
|
||||
<a href="{$resultTree/ui:userBanner/@changePasswordURL}">
|
||||
<xsl:apply-templates select="$resultTree/ui:userBanner/@changePasswordLabel"/>
|
||||
</a>
|
||||
</span>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="useLogoutLink">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$resultTree/cms:globalNavigation">
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@
|
|||
<div id="userwidget" class="cmsHeaderMenu">
|
||||
<showCMSGreeting/>
|
||||
<showCMSGlobalNavigation>
|
||||
<useChangePasswordLink/>
|
||||
<useLogoutLink/>
|
||||
</showCMSGlobalNavigation>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -29,10 +29,10 @@
|
|||
version="1.0">
|
||||
<!-- DE Leadtext -->
|
||||
<!-- EN lead text view -->
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciOrganization']" mode="lead">
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SimpleOrganization']" mode="lead">
|
||||
<xsl:variable name="setLeadText">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciOrganization'"/>
|
||||
<xsl:with-param name="module" select="'SimpleOrganization'"/>
|
||||
<xsl:with-param name="setting" select="'setLeadText'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
|
|
@ -47,34 +47,34 @@
|
|||
|
||||
<!-- DE Bild -->
|
||||
<!-- EN image -->
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciOrganization']" mode="image">
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SimpleOrganization']" mode="image">
|
||||
|
||||
<!-- DE Hole alle benötigten Einstellungen-->
|
||||
<!-- EN Getting all needed setting-->
|
||||
<xsl:variable name="setImage">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciOrganization'"/>
|
||||
<xsl:with-param name="module" select="'SimpleOrganization'"/>
|
||||
<xsl:with-param name="setting" select="'setImage'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setImageMaxHeight">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciOrganization'"/>
|
||||
<xsl:with-param name="module" select="'SimpleOrganization'"/>
|
||||
<xsl:with-param name="setting" select="'setImageMaxHeight'"/>
|
||||
<xsl:with-param name="default" select="''"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setImageMaxWidth">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciOrganization'"/>
|
||||
<xsl:with-param name="module" select="'SimpleOrganization'"/>
|
||||
<xsl:with-param name="setting" select="'setImageMaxWidth'"/>
|
||||
<xsl:with-param name="default" select="''"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setImageCaption">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciOrganization'"/>
|
||||
<xsl:with-param name="module" select="'SimpleOrganization'"/>
|
||||
<xsl:with-param name="setting" select="'setImageCaption'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue