|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.esupportail.portal.channels.CStockage.provider.ChannelResource
org.esupportail.portal.channels.CStockage.provider.SortedChannelResource
Id: SortedChannelResource.java,v 1.0 13 avr. 2005 Copyright (c) 2005 Esup Portail (www.esup-portail.org) Classes: SortedChannelResource Original Author: Yohan Colmant This is a channel resource used to sort
Field Summary | |
static java.lang.String |
SORT_DATE
|
static java.lang.String |
SORT_DATE_REVERSE
|
static java.lang.String |
SORT_NAME
|
static java.lang.String |
SORT_NAME_REVERSE
|
static java.lang.String |
SORT_TYPE
|
static java.lang.String |
SORT_TYPE_REVERSE
|
static java.lang.String |
SORT_WEIGHT
|
static java.lang.String |
SORT_WEIGHT_REVERSE
|
private java.lang.String |
sortType
The osrt type of the resource |
Fields inherited from class org.esupportail.portal.channels.CStockage.provider.ChannelResource |
|
Constructor Summary | |
SortedChannelResource(ChannelResource resource,
java.lang.String sortType)
|
Method Summary | |
int |
compareSortDate(java.lang.Object arg0)
Compare this to an other object, for the SORT_DATE sort |
int |
compareSortDateReverse(java.lang.Object arg0)
Compare this to an other object, for the SORT_DATE_REVERSE sort |
int |
compareSortName(java.lang.Object arg0)
Compare this to an other object, for the SORT_NAME sort |
int |
compareSortNameReverse(java.lang.Object arg0)
Compare this to an other object, for the SORT_NAME_REVERSE sort |
int |
compareSortType(java.lang.Object arg0)
Compare this to an other object, for the SORT_TYPE sort |
int |
compareSortTypeReverse(java.lang.Object arg0)
Compare this to an other object, for the SORT_TYPE_REVERSE sort |
int |
compareSortWeight(java.lang.Object arg0)
Compare this to an other object, for the SORT_WEIGHT sort |
int |
compareSortWeightReverse(java.lang.Object arg0)
Compare this to an other object, for the SORT_WEIGHT_REVERSE sort |
int |
compareTo(java.lang.Object arg0)
Compare this to an other object |
static java.util.TreeSet |
sortResources(ChannelResource[] resources,
java.lang.String sortType)
Sort the resources to a tree set |
Methods inherited from class org.esupportail.portal.channels.CStockage.provider.ChannelResource |
getContentLength, getContentType, getDisplayName, getInputStream, getLastModified, getPath, getState, isCollection, setState, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String SORT_TYPE
public static final java.lang.String SORT_TYPE_REVERSE
public static final java.lang.String SORT_NAME
public static final java.lang.String SORT_NAME_REVERSE
public static final java.lang.String SORT_WEIGHT
public static final java.lang.String SORT_WEIGHT_REVERSE
public static final java.lang.String SORT_DATE
public static final java.lang.String SORT_DATE_REVERSE
private java.lang.String sortType
Constructor Detail |
public SortedChannelResource(ChannelResource resource, java.lang.String sortType)
resource
- sortType
- Method Detail |
public int compareTo(java.lang.Object arg0)
compareTo
in interface java.lang.Comparable
arg0
- the object we want to compare to
public int compareSortType(java.lang.Object arg0)
arg0
- the object we want to compare to
public int compareSortTypeReverse(java.lang.Object arg0)
arg0
- the object we want to compare to
public int compareSortName(java.lang.Object arg0)
arg0
- the object we want to compare to
public int compareSortNameReverse(java.lang.Object arg0)
arg0
- the object we want to compare to
public int compareSortWeight(java.lang.Object arg0)
arg0
- the object we want to compare to
public int compareSortWeightReverse(java.lang.Object arg0)
arg0
- the object we want to compare to
public int compareSortDate(java.lang.Object arg0)
arg0
- the object we want to compare to
public int compareSortDateReverse(java.lang.Object arg0)
arg0
- the object we want to compare to
public static java.util.TreeSet sortResources(ChannelResource[] resources, java.lang.String sortType)
resources
- the resources list in an arraysortType
- the type of sort
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |