Eigener XML-Namespace für PublicPersonalProfile

git-svn-id: https://svn.libreccm.org/ccm/trunk@1060 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2011-08-14 11:46:19 +00:00
parent 3a43e3df6a
commit fe50a3c468
1 changed files with 20 additions and 15 deletions

View File

@ -163,13 +163,18 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
PublicPersonalProfile profile =
(PublicPersonalProfile) DomainObjectFactory.
newInstance(profiles.getDataObject());
Element profileElem = root.newChildElement("profile");
Element profileElem =
root.newChildElement("ppp:profile",
"http://www,arsdigita.com/publicPersonalProfile/1.0");
GenericPerson owner = profile.getOwner();
if (owner == null) {
throw new IllegalStateException(
"Failed to get owner of profile.");
}
profileElem.setText(owner.getFullName());
Element profileOwnerName = profileElem.newChildElement(
"ppp:ownerName",
"http://www,arsdigita.com/publicPersonalProfile/1.0");
profileOwnerName.setText(owner.getFullName());
createNavigation(profile, root, navPath);