Package org.ametys.web.source
Class SkinSource
java.lang.Object
org.ametys.core.util.path.PathSource
org.ametys.web.source.SkinSource
- All Implemented Interfaces:
ModifiableSource
,ModifiableTraversableSource
,MoveableSource
,Source
,TraversableSource
A skin source is a path source that supports for inheritance
-
Field Summary
Modifier and TypeFieldDescriptionThe files and inherited filesPathSource._path
is the first existing oneFields inherited from class org.ametys.core.util.path.PathSource
_externalUri, _path, _scheme, _uri
-
Constructor Summary
ConstructorDescriptionSkinSource
(String scheme, String uri, List<Path> files) Builds a SkinSource, given an URI scheme, URI and a Path. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.ametys.core.util.path.PathSource
canCancel, cancel, copyTo, delete, exists, getContentLength, getFile, getInputStream, getLastModified, getMimeType, getName, getOutputStream, getScheme, getURI, isCollection, makeCollection, moveTo, refresh
-
Field Details
-
_files
The files and inherited filesPathSource._path
is the first existing one
-
-
Constructor Details
-
SkinSource
Builds a SkinSource, given an URI scheme, URI and a Path.- Parameters:
scheme
- The schemeuri
- the URIfiles
- The files (inheritance) Cannot be null nor empty
-
-
Method Details
-
getChild
- Specified by:
getChild
in interfaceTraversableSource
- Overrides:
getChild
in classPathSource
- Throws:
SourceException
-
getChildren
- Specified by:
getChildren
in interfaceTraversableSource
- Overrides:
getChildren
in classPathSource
- Throws:
SourceException
-
getParent
- Specified by:
getParent
in interfaceTraversableSource
- Overrides:
getParent
in classPathSource
- Throws:
SourceException
-
getValidity
- Specified by:
getValidity
in interfaceSource
- Overrides:
getValidity
in classPathSource
-