Class StaticPost.PostsForSite
- java.lang.Object
-
- org.fenixedu.cms.domain.component.StaticPost.PostsForSite
-
- All Implemented Interfaces:
ComponentContextProvider<Post>
- Enclosing class:
- StaticPost
public static class StaticPost.PostsForSite extends Object implements ComponentContextProvider<Post>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.fenixedu.cms.domain.component.ComponentContextProvider
ComponentContextProvider.EmptyProvider
-
-
Constructor Summary
Constructors Constructor Description PostsForSite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringpresent(Post post)Presents the given item (returned by theComponentContextProvider.provide(Page)method).Collection<Post>provide(Page page)Provide the contextual items for the given page.
-
-
-
Method Detail
-
provide
public Collection<Post> provide(Page page)
Description copied from interface:ComponentContextProviderProvide the contextual items for the given page.- Specified by:
providein interfaceComponentContextProvider<Post>- Parameters:
page- The page in which the component will be inserted.- Returns:
- The options for the given slot.
-
present
public String present(Post post)
Description copied from interface:ComponentContextProviderPresents the given item (returned by theComponentContextProvider.provide(Page)method). By default, simply invokesObject.toString().- Specified by:
presentin interfaceComponentContextProvider<Post>- Parameters:
post- The item to present.- Returns:
- The presentation of the given item.
-
-