Kleine Bereinigungen bei ccm-ldn-portal
git-svn-id: https://svn.libreccm.org/ccm/trunk@329 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
aaf77021a0
commit
b341967c31
|
|
@ -90,13 +90,16 @@ public class Loader extends PackageLoader {
|
|||
* @param ctx
|
||||
*/
|
||||
public void run(final ScriptContext ctx) {
|
||||
|
||||
new KernelExcursion() {
|
||||
public void excurse() {
|
||||
setEffectiveParty(Kernel.getSystemParty());
|
||||
createApplication((String) get(m_url),
|
||||
(Boolean) get(m_isPublic), (String) get(m_title));
|
||||
|
||||
createApplication((String) get(m_url),
|
||||
(Boolean) get(m_isPublic),
|
||||
(String) get(m_title));
|
||||
setupWorkspacePageType();
|
||||
|
||||
loadTimeOfDayPortlet();
|
||||
loadContentDirectoryPortlet();
|
||||
loadRSSFeedPortlet();
|
||||
|
|
@ -167,13 +170,21 @@ public class Loader extends PackageLoader {
|
|||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
private ResourceType setupWorkspacePageType() {
|
||||
ResourceType type = ResourceType.createResourceType(
|
||||
"Portal Workspace Page", WorkspacePage.BASE_DATA_OBJECT_TYPE);
|
||||
"Portal Workspace Page",
|
||||
WorkspacePage.BASE_DATA_OBJECT_TYPE);
|
||||
type.setDescription("Pages for the portal workspaces");
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private void loadTimeOfDayPortlet() {
|
||||
PortletType type = PortletType.createPortletType("Time of Day",
|
||||
PortletType.WIDE_PROFILE,
|
||||
|
|
|
|||
|
|
@ -162,7 +162,8 @@ public class Workspace extends Application {
|
|||
* @return
|
||||
*/
|
||||
public static Workspace createWorkspace(String url, String title,
|
||||
PageLayout layout, Application parent, boolean isPublic) {
|
||||
PageLayout layout, Application parent,
|
||||
boolean isPublic) {
|
||||
if (s_log.isDebugEnabled()) {
|
||||
s_log.debug("Creating group workspace, isPublic:" + isPublic
|
||||
+ " on " + url + " with parent "
|
||||
|
|
@ -214,6 +215,7 @@ public class Workspace extends Application {
|
|||
* @return
|
||||
*/
|
||||
public static Workspace getDefaultHomepageWorkspace() {
|
||||
|
||||
if (null == defaultHomepageWorkspace) {
|
||||
// default homepage workspace is created during
|
||||
// com.arsdigita.london.portal.Loader
|
||||
|
|
@ -232,7 +234,6 @@ public class Workspace extends Application {
|
|||
defaultHomepageWorkspace = workspaces.getWorkspace();
|
||||
}
|
||||
workspaces.close();
|
||||
|
||||
}
|
||||
return defaultHomepageWorkspace;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue