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
 
 public class SkinSource extends PathSource A skin source is a path source that supports for inheritance
- 
- 
Field SummaryFields Modifier and Type Field Description protected List<Path>_filesThe files and inherited filesPathSource._pathis the first existing one- 
Fields inherited from class org.ametys.core.util.path.PathSource_path, _scheme, _uri
 
- 
 - 
Constructor SummaryConstructors Constructor Description SkinSource(String scheme, String uri, List<Path> files)Builds a SkinSource, given an URI scheme, URI and a Path.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static Path_getFirstExistingFile(List<Path> files)SourcegetChild(String name)CollectiongetChildren()SourcegetParent()SourceValiditygetValidity()- 
Methods inherited from class org.ametys.core.util.path.PathSourcecanCancel, cancel, copyTo, delete, exists, getContentLength, getFile, getInputStream, getLastModified, getMimeType, getName, getOutputStream, getScheme, getURI, isCollection, makeCollection, moveTo, refresh
 
- 
 
- 
- 
- 
Field Detail- 
_filesprotected List<Path> _files The files and inherited filesPathSource._pathis the first existing one
 
- 
 - 
Constructor Detail- 
SkinSourcepublic SkinSource(String scheme, String uri, List<Path> files) Builds a SkinSource, given an URI scheme, URI and a Path.- Parameters:
- scheme- The scheme
- uri- the URI
- files- The files (inheritance) Cannot be null nor empty
 
 
- 
 - 
Method Detail- 
_getFirstExistingFileprivate static Path _getFirstExistingFile(List<Path> files) 
 - 
getChildpublic Source getChild(String name) throws SourceException - Specified by:
- getChildin interface- TraversableSource
- Overrides:
- getChildin class- PathSource
- Throws:
- SourceException
 
 - 
getChildrenpublic Collection getChildren() throws SourceException - Specified by:
- getChildrenin interface- TraversableSource
- Overrides:
- getChildrenin class- PathSource
- Throws:
- SourceException
 
 - 
getParentpublic Source getParent() throws SourceException - Specified by:
- getParentin interface- TraversableSource
- Overrides:
- getParentin class- PathSource
- Throws:
- SourceException
 
 - 
getValiditypublic SourceValidity getValidity() - Specified by:
- getValidityin interface- Source
- Overrides:
- getValidityin class- PathSource
 
 
- 
 
-