- GroupAdministrationTab und ApplicationsAdministrationTab sind jetzt von SimpleContainer und nicht mehr von BoxPanel abgeleitet.
- Verschiendener Kleinkram (Formatierungen) git-svn-id: https://svn.libreccm.org/ccm/trunk@2294 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
5b765e977b
commit
397a8a4622
|
|
@ -67,4 +67,8 @@ public class ApplicationManagers {
|
||||||
return Collections.unmodifiableMap(appManagers);
|
return Collections.unmodifiableMap(appManagers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected ApplicationManager<?> getApplicationManager(final String appClassName) {
|
||||||
|
return appManagers.get(appClassName);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,13 +20,13 @@ package com.arsdigita.ui.admin;
|
||||||
|
|
||||||
import com.arsdigita.bebop.BoxPanel;
|
import com.arsdigita.bebop.BoxPanel;
|
||||||
import com.arsdigita.bebop.Form;
|
import com.arsdigita.bebop.Form;
|
||||||
import com.arsdigita.bebop.Label;
|
|
||||||
import com.arsdigita.bebop.Page;
|
import com.arsdigita.bebop.Page;
|
||||||
import com.arsdigita.bebop.PageState;
|
import com.arsdigita.bebop.PageState;
|
||||||
import com.arsdigita.bebop.SimpleContainer;
|
import com.arsdigita.bebop.SimpleContainer;
|
||||||
import com.arsdigita.bebop.Tree;
|
import com.arsdigita.bebop.Tree;
|
||||||
import com.arsdigita.bebop.event.ChangeEvent;
|
import com.arsdigita.bebop.event.ChangeEvent;
|
||||||
import com.arsdigita.bebop.event.ChangeListener;
|
import com.arsdigita.bebop.event.ChangeListener;
|
||||||
|
import com.arsdigita.ui.admin.applications.ApplicationInstanceAwareContainer;
|
||||||
import com.arsdigita.ui.admin.applications.ApplicationInstancePane;
|
import com.arsdigita.ui.admin.applications.ApplicationInstancePane;
|
||||||
import com.arsdigita.ui.admin.applications.ApplicationManager;
|
import com.arsdigita.ui.admin.applications.ApplicationManager;
|
||||||
import com.arsdigita.ui.admin.applications.BaseApplicationPane;
|
import com.arsdigita.ui.admin.applications.BaseApplicationPane;
|
||||||
|
|
@ -46,11 +46,12 @@ import java.util.Map;
|
||||||
* @author pb
|
* @author pb
|
||||||
* @author Jens Pelzetter
|
* @author Jens Pelzetter
|
||||||
*/
|
*/
|
||||||
public class ApplicationsAdministrationTab extends BoxPanel implements AdminConstants {
|
public class ApplicationsAdministrationTab extends SimpleContainer implements AdminConstants {
|
||||||
|
|
||||||
private final Tree applicationTree;
|
private final Tree applicationTree;
|
||||||
private final Map<String, BaseApplicationPane> appPanes = new HashMap<String, BaseApplicationPane>();
|
private final Map<String, BaseApplicationPane> appPanes = new HashMap<String, BaseApplicationPane>();
|
||||||
private final Map<String, ApplicationInstancePane> instancePanes = new HashMap<String, ApplicationInstancePane>();
|
private final Map<String, ApplicationInstancePane> instancePanes = new HashMap<String, ApplicationInstancePane>();
|
||||||
|
private final BoxPanel appPanel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
|
@ -90,7 +91,8 @@ public class ApplicationsAdministrationTab extends BoxPanel implements AdminCons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final BoxPanel appPanel = new BoxPanel();
|
//final BoxPanel
|
||||||
|
appPanel = new BoxPanel();
|
||||||
appPanel.setClassAttr("main");
|
appPanel.setClassAttr("main");
|
||||||
for (Map.Entry<String, BaseApplicationPane> entry : appPanes.entrySet()) {
|
for (Map.Entry<String, BaseApplicationPane> entry : appPanes.entrySet()) {
|
||||||
appPanel.add(entry.getValue());
|
appPanel.add(entry.getValue());
|
||||||
|
|
@ -227,6 +229,7 @@ public class ApplicationsAdministrationTab extends BoxPanel implements AdminCons
|
||||||
//Nothing
|
//Nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stateChanged(final ChangeEvent event) {
|
public void stateChanged(final ChangeEvent event) {
|
||||||
final PageState state = event.getPageState();
|
final PageState state = event.getPageState();
|
||||||
|
|
||||||
|
|
@ -253,11 +256,12 @@ public class ApplicationsAdministrationTab extends BoxPanel implements AdminCons
|
||||||
pane = null;
|
pane = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pane != null) {
|
if (pane != null) {
|
||||||
setPaneVisible(pane, state);
|
setPaneVisible(pane, state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ import org.apache.log4j.Logger;
|
||||||
* @author David Dao
|
* @author David Dao
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class GroupAdministrationTab extends BoxPanel implements AdminConstants, ChangeListener {
|
class GroupAdministrationTab extends SimpleContainer implements AdminConstants, ChangeListener {
|
||||||
|
|
||||||
private static final Logger LOGGER = Logger.getLogger(GroupAdministrationTab.class);
|
private static final Logger LOGGER = Logger.getLogger(GroupAdministrationTab.class);
|
||||||
private final Tree groupTree;
|
private final Tree groupTree;
|
||||||
|
|
|
||||||
|
|
@ -45,11 +45,13 @@ public class ApplicationInstancePropertySheetModel implements PropertySheetModel
|
||||||
this.application = application;
|
this.application = application;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean nextRow() {
|
public boolean nextRow() {
|
||||||
currentIndex++;
|
currentIndex++;
|
||||||
return currentIndex < INST_DESC;
|
return currentIndex < INST_DESC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getLabel() {
|
public String getLabel() {
|
||||||
switch (currentIndex) {
|
switch (currentIndex) {
|
||||||
case INST_TITLE:
|
case INST_TITLE:
|
||||||
|
|
@ -69,6 +71,7 @@ public class ApplicationInstancePropertySheetModel implements PropertySheetModel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public GlobalizedMessage getGlobalizedLabel() {
|
public GlobalizedMessage getGlobalizedLabel() {
|
||||||
switch (currentIndex) {
|
switch (currentIndex) {
|
||||||
case INST_TITLE:
|
case INST_TITLE:
|
||||||
|
|
@ -85,6 +88,7 @@ public class ApplicationInstancePropertySheetModel implements PropertySheetModel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getValue() {
|
public String getValue() {
|
||||||
switch (currentIndex) {
|
switch (currentIndex) {
|
||||||
case INST_TITLE:
|
case INST_TITLE:
|
||||||
|
|
|
||||||
|
|
@ -41,10 +41,12 @@ public class ApplicationTreeModel implements TreeModel {
|
||||||
//Nothing
|
//Nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public TreeNode getRoot(final PageState state) {
|
public TreeNode getRoot(final PageState state) {
|
||||||
return new RootTreeNode();
|
return new RootTreeNode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean hasChildren(final TreeNode node, final PageState state) {
|
public boolean hasChildren(final TreeNode node, final PageState state) {
|
||||||
if (node instanceof RootTreeNode) {
|
if (node instanceof RootTreeNode) {
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -68,6 +70,7 @@ public class ApplicationTreeModel implements TreeModel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Iterator getChildren(final TreeNode node, final PageState state) {
|
public Iterator getChildren(final TreeNode node, final PageState state) {
|
||||||
if (node instanceof RootTreeNode) {
|
if (node instanceof RootTreeNode) {
|
||||||
final ApplicationTypeCollection appTypes = ApplicationType.retrieveAllApplicationTypes();
|
final ApplicationTypeCollection appTypes = ApplicationType.retrieveAllApplicationTypes();
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import com.arsdigita.util.LockableImpl;
|
||||||
*/
|
*/
|
||||||
public class ApplicationTreeModelBuilder extends LockableImpl implements TreeModelBuilder {
|
public class ApplicationTreeModelBuilder extends LockableImpl implements TreeModelBuilder {
|
||||||
|
|
||||||
|
@Override
|
||||||
public TreeModel makeModel(final Tree tree, final PageState state) {
|
public TreeModel makeModel(final Tree tree, final PageState state) {
|
||||||
tree.expand("-1", state);
|
tree.expand("-1", state);
|
||||||
return new ApplicationTreeModel();
|
return new ApplicationTreeModel();
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ public class Login extends Application {
|
||||||
/**
|
/**
|
||||||
* Getter to retrieve the base database object type name
|
* Getter to retrieve the base database object type name
|
||||||
*
|
*
|
||||||
* @return base data aoject type as String
|
* @return base data a object type as String
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected String getBaseDataObjectType() {
|
protected String getBaseDataObjectType() {
|
||||||
|
|
|
||||||
|
|
@ -182,10 +182,11 @@ public class LoginServlet extends BebopApplicationServlet {
|
||||||
|
|
||||||
|
|
||||||
Page workspace = checkForPageSubClass();
|
Page workspace = checkForPageSubClass();
|
||||||
if (workspace == null)
|
if (workspace == null) {
|
||||||
workspace = buildSimplePage("login.workspacePage.title",
|
workspace = buildSimplePage("login.workspacePage.title",
|
||||||
new UserInfo(),
|
new UserInfo(),
|
||||||
"workspace");
|
"workspace");
|
||||||
|
}
|
||||||
put(UI.getWorkspaceURL(), workspace); // usually navigation/ or portal/
|
put(UI.getWorkspaceURL(), workspace); // usually navigation/ or portal/
|
||||||
disableClientCaching(UI.getWorkspaceURL());
|
disableClientCaching(UI.getWorkspaceURL());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ public class Permissions extends Application {
|
||||||
/**
|
/**
|
||||||
* Getter to retrieve the base database object type name
|
* Getter to retrieve the base database object type name
|
||||||
*
|
*
|
||||||
* @return base data aoject type as String
|
* @return base data a object type as String
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected String getBaseDataObjectType() {
|
protected String getBaseDataObjectType() {
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,7 @@ public class PermissionsServlet extends BaseApplicationServlet
|
||||||
* Central service method, checks for required permission, determines the
|
* Central service method, checks for required permission, determines the
|
||||||
* requested page and passes the page object to PresentationManager.
|
* requested page and passes the page object to PresentationManager.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void doService(HttpServletRequest sreq,
|
public final void doService(HttpServletRequest sreq,
|
||||||
HttpServletResponse sresp,
|
HttpServletResponse sresp,
|
||||||
Application app)
|
Application app)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue