Package org.sakaiproject.util
Class MergedListEntryProviderFixedListWrapper
- java.lang.Object
-
- org.sakaiproject.util.MergedListEntryProviderFixedListWrapper
-
- All Implemented Interfaces:
MergedList.EntryProvider
public class MergedListEntryProviderFixedListWrapper extends Object implements MergedList.EntryProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMergedListEntryProviderFixedListWrapper.ReferenceToChannelConverterDefines a callback interface to convert a reference into a channel.
-
Constructor Summary
Constructors Constructor Description MergedListEntryProviderFixedListWrapper(MergedList.EntryProvider entryProvider, String primaryChannelReference, String[] mergedChannelsReferences, MergedListEntryProviderFixedListWrapper.ReferenceToChannelConverter refToChan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowGet(String ref)See if we can do a "get" on the calendar, channel, etc.StringgetContext(Object obj)Generically access the context of the resource provided by the getIterator() call.IteratorgetIterator()Gets an iterator for the channels, calendars, etc.ResourcePropertiesgetProperties(Object obj)Generically access the resource's properties.StringgetReference(Object obj)Generically access the reference of the resource provided by the getIterator() call.SitegetSite(Object channel)StringgetSiteUserId(Object channel)booleanisSpecialSite(Object channel)booleanisUserChannel(Object channel)
-
-
-
Constructor Detail
-
MergedListEntryProviderFixedListWrapper
public MergedListEntryProviderFixedListWrapper(MergedList.EntryProvider entryProvider, String primaryChannelReference, String[] mergedChannelsReferences, MergedListEntryProviderFixedListWrapper.ReferenceToChannelConverter refToChan)
-
-
Method Detail
-
getIterator
public Iterator getIterator()
Description copied from interface:MergedList.EntryProviderGets an iterator for the channels, calendars, etc.- Specified by:
getIteratorin interfaceMergedList.EntryProvider
-
allowGet
public boolean allowGet(String ref)
Description copied from interface:MergedList.EntryProviderSee if we can do a "get" on the calendar, channel, etc.- Specified by:
allowGetin interfaceMergedList.EntryProvider
-
getContext
public String getContext(Object obj)
Description copied from interface:MergedList.EntryProviderGenerically access the context of the resource provided by the getIterator() call.- Specified by:
getContextin interfaceMergedList.EntryProvider- Returns:
- The context.
-
getReference
public String getReference(Object obj)
Description copied from interface:MergedList.EntryProviderGenerically access the reference of the resource provided by the getIterator() call.- Specified by:
getReferencein interfaceMergedList.EntryProvider
-
getProperties
public ResourceProperties getProperties(Object obj)
Description copied from interface:MergedList.EntryProviderGenerically access the resource's properties.- Specified by:
getPropertiesin interfaceMergedList.EntryProvider- Returns:
- The resource's properties.
-
isUserChannel
public boolean isUserChannel(Object channel)
- Specified by:
isUserChannelin interfaceMergedList.EntryProvider
-
isSpecialSite
public boolean isSpecialSite(Object channel)
- Specified by:
isSpecialSitein interfaceMergedList.EntryProvider
-
getSiteUserId
public String getSiteUserId(Object channel)
- Specified by:
getSiteUserIdin interfaceMergedList.EntryProvider
-
getSite
public Site getSite(Object channel)
- Specified by:
getSitein interfaceMergedList.EntryProvider
-
-