Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions api/src/org/labkey/api/action/BaseViewAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -450,29 +448,6 @@ else if (!value.getClass().isArray())
return errors;
}

protected Map<String,Object> _fixupPropertyMap(Map<String,Object> in)
{
Map<String,Object> out = new HashMap<>(in);

/** see TableViewForm.setTypedValues() */
for (Map.Entry<String,Object> entry : in.entrySet())
{
String propName = entry.getKey();
Object o = entry.getValue();

if (Character.isUpperCase(propName.charAt(0)))
{
out.remove(propName);
propName = Introspector.decapitalize(propName);
out.put(propName,o);
}
}

out.remove("container");
out.remove("user");
return out;
}

@Override
public boolean supports(Class clazz)
{
Expand Down
7 changes: 1 addition & 6 deletions api/src/org/labkey/api/action/SimpleViewAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
import org.springframework.validation.Errors;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;

/**
* Base class for actions that want to display a single page in response to a GET, including
* form parameters. Not intended for actions that may separately receive a POST.
Expand Down Expand Up @@ -81,8 +78,7 @@ public ModelAndView handleRequest() throws Exception
return v;
}


private static void validateUnicodePropertyValues(PropertyValues pvs) throws ServletException
private static void validateUnicodePropertyValues(PropertyValues pvs)
{
for (PropertyValue pv : pvs.getPropertyValues())
{
Expand Down Expand Up @@ -112,7 +108,6 @@ else if (value.getClass().isArray())
}
}


@Override
protected String getCommandClassMethodName()
{
Expand Down
4 changes: 2 additions & 2 deletions api/src/org/labkey/api/view/FolderManagement.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private static void validateContainer(TYPE type, Class<? extends ManagementActio
/**
* Base action class for management actions that only need to display a view (no post handling).
*/
private static abstract class ManagementViewAction extends SimpleViewAction<Void> implements ManagementAction
private static abstract class ManagementViewAction extends SimpleViewAction<Object> implements ManagementAction
{
@Override
public ModelAndView handleRequest() throws Exception
Expand All @@ -201,7 +201,7 @@ public ModelAndView handleRequest() throws Exception
}

@Override
public ModelAndView getView(Void form, BindException errors) throws Exception
public ModelAndView getView(Object form, BindException errors) throws Exception
{
return wrapViewInTabStrip(this, getType(), getTabView(), errors);
}
Expand Down
4 changes: 2 additions & 2 deletions core/src/org/labkey/core/admin/sql/SqlScriptController.java
Original file line number Diff line number Diff line change
Expand Up @@ -885,10 +885,10 @@ private void deleteScripts(File dir, List<SqlScript> scripts)


@RequiresPermission(AdminOperationsPermission.class)
public class OrphanedScriptsAction extends SimpleViewAction<Void>
public class OrphanedScriptsAction extends SimpleViewAction<Object>
{
@Override
public ModelAndView getView(Void form, BindException errors) throws IOException
public ModelAndView getView(Object form, BindException errors) throws IOException
{
Set<SqlScript> orphanedScripts = new TreeSet<>();
Set<String> unclaimedFiles = new TreeSet<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,12 +583,12 @@ private ApiQueryResponse getApiResponse(ViewContext context, UserSchema schema,


@RequiresSiteAdmin
public class TestGetDataAction extends SimpleViewAction<Void>
public class TestGetDataAction extends SimpleViewAction<Object>
{
@Override
public ModelAndView getView(Void noform, BindException errors)
public ModelAndView getView(Object noform, BindException errors)
{
return new JspView("/org/labkey/visualization/test/test.jsp");
return new JspView<>("/org/labkey/visualization/test/test.jsp");
}

@Override
Expand Down Expand Up @@ -675,12 +675,12 @@ private ApiQueryResponse getApiResponse(ViewContext context, UserSchema schema,


@RequiresSiteAdmin
public class cdsTestGetDataAction extends SimpleViewAction<Void>
public class cdsTestGetDataAction extends SimpleViewAction<Object>
{
@Override
public ModelAndView getView(Void noform, BindException errors)
public ModelAndView getView(Object noform, BindException errors)
{
return new JspView("/org/labkey/visualization/test/test.jsp");
return new JspView<>("/org/labkey/visualization/test/test.jsp");
}

@Override
Expand Down