|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CustomResourceBuilder
A CustomResourceBuilder allows to build
s. This interface
allows to filter out resources, e. g. if certain users have no permissions on
a resource. Additionally this interface allows to provide
Localized
information about a resource, i. e. titles
and descrptions.
This interface is designed to be implemented by clients. |
Nested Class Summary | |
---|---|
static interface |
CustomResourceBuilder.ResourceParameters
Interface containing all paramteres that are needed to build a custom resource. |
Method Summary | |
---|---|
CustomResource |
build(CustomResourceBuilder.ResourceParameters resourceParameters)
This method will be called by the com.ibm.portal.cp.resources.ResourceModel when a resource has
to be assembled. |
java.util.List<CustomResource> |
build(java.util.List<CustomResourceBuilder.ResourceParameters> resourceParameters)
Method for batch processing. |
Method Detail |
---|
CustomResource build(CustomResourceBuilder.ResourceParameters resourceParameters) throws ResourceBuilderException
com.ibm.portal.cp.resources.ResourceModel
when a resource has
to be assembled. Implementations must be able to build a
CustomResource
even for the case that not yet a tag or
rating have been persisted for the given resource (parameters), i. e.
there will not be a database representation of this custom resource yet.
resourceParameters
- The parameters needed to build a custom resource, never
null
.
null
can be returned.
ResourceBuilderException
- In case the assembly of the resource failed, e. g. if a
backend cannot be reached.java.util.List<CustomResource> build(java.util.List<CustomResourceBuilder.ResourceParameters> resourceParameters) throws ResourceBuilderException
a
- (potentially) unmodifiable list of resourceParameters which
are needed to build the custom resources, never
null
. Implementations must be able to build
CustomResource
s even for the case that not yet a
tag or rating have been persisted for the given resources
(parameters), i. e. there will not be a database
representation of these custom resources yet.
null
,
but may be empty if all resources have been filtered out.
ResourceBuilderException
- In case the assembly of the resource failed, e. g. if a
backend cannot be reached.build(ResourceParameters)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |