Package org.javlo.ztatic
Interface IStaticContainer
-
- All Known Subinterfaces:
IVideo
- All Known Implementing Classes:
AbstractFileComponent
,ArrayFileComponent
,CSVArrayComponent
,DynamicComponent
,EmbedVideo
,FieldFile
,FieldImage
,FieldSound
,FreeImage
,FreeImageWithVisibleLabel
,GenericFile
,GlobalImage
,GlobalImageSession
,Image
,ImageBackground
,ImageTitle
,InvisibleImage
,Multimedia
,OnlineVideo
,PDFMultimedia
,ReactionComponent
,SimpleVideo
,Sound
,StaticMapComponent
,VFSFile
,Video
,VideoContentMultimedia
public interface IStaticContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(ContentContext ctx, String uri)
check if the class contains the static resources define by a URICollection<Resource>
getAllResources(ContentContext ctx)
return all resources found in the component.Collection<Link>
getAllResourcesLinks(ContentContext ctx)
create link to resources.String
getDirSelected(ContentContext ctx)
get folder with ressourcesList<File>
getFiles(ContentContext ctx)
int
getPopularity(ContentContext ctx)
return indice of popularityboolean
renameResource(ContentContext ctx, File oldName, File newName)
rename a resourcevoid
setDirSelected(String dir)
set folder with resources
-
-
-
Method Detail
-
contains
boolean contains(ContentContext ctx, String uri)
check if the class contains the static resources define by a URI- Parameters:
uri
- a uri to a static resources- Returns:
- true if the class conatins this static resources.
-
getAllResources
Collection<Resource> getAllResources(ContentContext ctx)
return all resources found in the component.- Returns:
-
renameResource
boolean renameResource(ContentContext ctx, File oldName, File newName)
rename a resource- Parameters:
oldName
-newName
-- Returns:
- true if rename, false else
-
getAllResourcesLinks
Collection<Link> getAllResourcesLinks(ContentContext ctx)
create link to resources.- Returns:
-
getPopularity
int getPopularity(ContentContext ctx)
return indice of popularity- Parameters:
ctx
-- Returns:
-
setDirSelected
void setDirSelected(String dir)
set folder with resources- Parameters:
dir
-
-
getDirSelected
String getDirSelected(ContentContext ctx)
get folder with ressources- Returns:
-
getFiles
List<File> getFiles(ContentContext ctx)
-
-