1 17 package org.alfresco.repo.search.results; 18 19 import java.io.Serializable ; 20 import java.util.Map ; 21 22 import org.alfresco.repo.search.AbstractResultSetRow; 23 import org.alfresco.service.cmr.repository.ChildAssociationRef; 24 import org.alfresco.service.cmr.repository.Path; 25 import org.alfresco.service.namespace.QName; 26 27 public class ChildAssocRefResultSetRow extends AbstractResultSetRow 28 { 29 public ChildAssocRefResultSetRow(ChildAssocRefResultSet resultSet, int index) 30 { 31 super(resultSet, index); 32 } 33 34 public Serializable getValue(Path path) 35 { 36 throw new UnsupportedOperationException (); 38 } 39 40 public QName getQName() 41 { 42 return ((ChildAssocRefResultSet)getResultSet()).getChildAssocRef(getIndex()).getQName(); 43 } 44 45 @Override 46 protected Map <QName, Serializable > getDirectProperties() 47 { 48 return ((ChildAssocRefResultSet)getResultSet()).getNodeService().getProperties(getNodeRef()); 49 } 50 51 public ChildAssociationRef getChildAssocRef() 52 { 53 return ((ChildAssocRefResultSet)getResultSet()).getChildAssocRef(getIndex()); 54 } 55 56 } 57 | Popular Tags |