Changeset 7038
- Timestamp:
- Dec 4, 2015, 1:00:05 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/User.java
r7037 r7038 43 43 import net.sf.basedb.core.query.Expressions; 44 44 import net.sf.basedb.core.query.ResultList; 45 import net.sf.basedb.core.query.Selects;46 45 47 46 import java.util.ArrayList; -
trunk/www/views/items/list_items.jsp
r7037 r7038 37 37 import="net.sf.basedb.core.Shareable" 38 38 import="net.sf.basedb.core.SharedItem" 39 import="net.sf.basedb.core.Subtypable" 39 40 import="net.sf.basedb.core.File" 40 41 import="net.sf.basedb.core.Directory" … … 106 107 Restriction description = Restrictions.conditionalRestriction(new ReturnClassFilter(Nameable.class), 107 108 cc.getFilterRestriction("description", dc, null), null, true); 108 Restriction restriction = Restrictions.nullSafeAnd(sharedTo, name, description, id); 109 Restriction subtype = Restrictions.conditionalRestriction(new ReturnClassFilter(Subtypable.class), 110 cc.getFilterRestriction("itemSubtype.name", dc, null), null, true); 111 Restriction restriction = Restrictions.nullSafeAnd(sharedTo, name, description, id, subtype); 109 112 110 113 User loggedInUser = User.getById(dc, sc.getLoggedInUserId()); … … 168 171 datatype="int" 169 172 title="ID" 173 filterable="true" 174 /> 175 <tbl:columndef 176 id="itemSubtype" 177 property="itemSubtype.name" 178 datatype="string" 179 title="Subtype" 170 180 filterable="true" 171 181 /> … … 353 363 <tbl:cell column="name"><%=link%></tbl:cell> 354 364 <tbl:cell column="id"><%=item.getId()%></tbl:cell> 365 <tbl:cell column="itemSubtype"><% 366 if (item instanceof Subtypable) 367 { 368 %><base:propertyvalue item="<%=item%>" property="itemSubtype" /><% 369 } 370 %></tbl:cell> 355 371 <tbl:cell column="description"><%=HTML.encodeTags(description)%></tbl:cell> 356 372 <tbl:cell column="sharedTo">
Note: See TracChangeset
for help on using the changeset viewer.