Package org.ametys.cms.content
Class AttributeSourceFactory
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.content.AttributeSourceFactory
- All Implemented Interfaces:
LogEnabled,Component,Contextualizable,Serviceable,ThreadSafe,SourceFactory
- Direct Known Subclasses:
TaskAttributeSourceFactory
public class AttributeSourceFactory
extends AbstractLogEnabled
implements SourceFactory, ThreadSafe, Serviceable, Contextualizable
SourceFactory for content attributes.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContextThe contextprotected AmetysObjectResolverThe resolverstatic final Stringsource schemeFields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Binary_getBinary(ModelAwareDataAwareAmetysObject object, String attribute, String filename) Get binaryprotected ModelAwareDataAwareAmetysObjectGet model aware data aware ametys objectprotected StringGet URIvoidcontextualize(Context context) voidvoidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ATTRIBUTE_SCHEME
source scheme- See Also:
-
_context
The context -
_resolver
The resolver
-
-
Constructor Details
-
AttributeSourceFactory
public AttributeSourceFactory()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getSource
- Specified by:
getSourcein interfaceSourceFactory- Throws:
IOExceptionMalformedURLException
-
_getBinary
protected Binary _getBinary(ModelAwareDataAwareAmetysObject object, String attribute, String filename) Get binary- Parameters:
object- the ametys objectattribute- the attributfilename- the filename- Returns:
- the binary
-
_getURI
Get URI- Parameters:
location- the location- Returns:
- the uri
-
_getModelAwareDataAwareAmetysObject
Get model aware data aware ametys object- Returns:
- model aware data aware ametys object
-
release
- Specified by:
releasein interfaceSourceFactory
-