1 13 package info.magnolia.module.workflow.inbox; 14 15 import info.magnolia.cms.gui.controlx.list.AbstractListModel; 16 import info.magnolia.module.workflow.WorkflowUtil; 17 18 import java.util.Collection ; 19 20 21 25 public class InboxListModel extends AbstractListModel { 26 27 private String userName; 28 29 32 public InboxListModel(String userName) { 33 super(); 34 this.userName = userName; 35 this.setValueProvider(new InboxValueProvider()); 36 } 37 38 41 protected Collection getResult() throws Exception { 42 return WorkflowUtil.getUserInbox(this.userName); 43 } 44 45 48 public String getUserName() { 49 return this.userName; 50 } 51 52 55 public void setUserName(String userName) { 56 this.userName = userName; 57 } 58 59 } 60 | Popular Tags |