Update of
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/repository/forms
In directory
james.mmbase.org:/tmp/cvs-serv28855/cmsc/contentrepository/src/java/com/finalist/cmsc/repository/forms
Modified Files:
AssetAction.java
Log Message:
CMSC-681 Asset Maintenance add a checkbox in paging
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/repository/forms
See also: http://www.mmbase.org/jira/browse/CMSC-681
Index: AssetAction.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/repository/forms/AssetAction.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- AssetAction.java 16 Dec 2008 06:33:28 -0000 1.6
+++ AssetAction.java 16 Dec 2008 07:55:46 -0000 1.7
@@ -35,6 +35,7 @@
public class AssetAction extends MMBaseAction {
private final static String MOVEASSETTOCHANNEL = "moveAssetToChannel";
+ private static final String IMAGES = "images";
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
@@ -98,14 +99,16 @@
if (StringUtils.isNotEmpty(parentchannel)) {
Node channel = cloud.getNode(parentchannel);
NodeList assets;
+ NodeList created;
if("yes".equals(imageOnly)){
- assets = RepositoryUtil.getCreatedAssets(channel,
Arrays.<String>asList("images"), orderby, direction, false,
+ assets = RepositoryUtil.getCreatedAssets(channel,
Arrays.<String>asList(IMAGES), orderby, direction, false,
offset * maxNumber, maxNumber, -1, -1, -1);
+ created = RepositoryUtil.getCreatedAssets(channel, IMAGES);
}else{
assets = RepositoryUtil.getCreatedAssets(channel, null, orderby,
direction, false,
offset * maxNumber, maxNumber, -1, -1, -1);
+ created = RepositoryUtil.getCreatedAssets(channel);
}
- NodeList created = RepositoryUtil.getCreatedAssets(channel);
int assetCount = 0;
if (!created.isEmpty()) {
assetCount = created.size();
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs