Package org.javlo.ztatic
Class StaticInfoFile
- java.lang.Object
-
- org.javlo.ztatic.StaticInfoFile
-
public class StaticInfoFile extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StaticInfoFile.StaticFileSort
static class
StaticInfoFile.StaticFileSortByAccess
static class
StaticInfoFile.StaticFileSortByPopularity
static class
StaticInfoFile.StaticSort
-
Field Summary
Fields Modifier and Type Field Description static String
_STATIC_INFO_DIR
static int
ACCES_DAYS
protected Map<String,Object>
cache
protected static Logger
logger
create a static logger.
-
Method Summary
-
-
-
Field Detail
-
logger
protected static Logger logger
create a static logger.
-
_STATIC_INFO_DIR
public static final String _STATIC_INFO_DIR
- See Also:
- Constant Field Values
-
ACCES_DAYS
public static final int ACCES_DAYS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPropertiesFileNameFromResourceFile
protected static File getPropertiesFileNameFromResourceFile(ContentContext ctx, File file)
-
getInstance
public static StaticInfoFile getInstance(ContentContext ctx, File file) throws Exception
- Throws:
Exception
-
getInstance
public static StaticInfoFile getInstance(ContentContext ctx, String inStaticURL) throws Exception
- Throws:
Exception
-
getFullDescription
public String getFullDescription(ContentContext ctx)
-
getFullDescription
public String getFullDescription(ContentContext ctx, boolean showTitle)
-
getManualDescription
public String getManualDescription(ContentContext ctx)
-
getDescription
public String getDescription(ContentContext ctx)
-
save
protected void save()
-
setDescription
public void setDescription(ContentContext ctx, String description)
-
getManualLocation
public String getManualLocation(ContentContext ctx)
-
getLocation
public String getLocation(ContentContext ctx)
-
setLocation
public void setLocation(ContentContext ctx, String location)
-
getTitle
public String getTitle(ContentContext ctx)
-
getManualTitle
public String getManualTitle(ContentContext ctx)
-
setTitle
public void setTitle(ContentContext ctx, String title)
-
getManualDate
public Date getManualDate()
-
getDate
public Date getDate(ContentContext ctx)
-
setDate
public void setDate(Date date)
-
getResource
public String getResource()
-
setResource
public void setResource(String resource)
-
setEmptyDate
public void setEmptyDate()
-
isEmptyDate
public boolean isEmptyDate()
-
getSize
public long getSize()
-
getLinkedPageId
public String getLinkedPageId()
-
setLinkedPageId
public void setLinkedPageId(String pageId)
-
getStaticURL
public String getStaticURL()
-
getContainers
public Collection<MenuElement> getContainers()
-
setContainers
public void setContainers(Collection<MenuElement> containers)
-
getFocusZoneX
public int getFocusZoneX()
-
getFocusZoneY
public int getFocusZoneY()
-
isShared
public boolean isShared()
-
setShared
public void setShared(boolean shared)
-
setFocusZoneX
public void setFocusZoneX(int focusZoneX)
-
setFocusZoneY
public void setFocusZoneY(int focusZoneY)
-
setLinkedPage
public void setLinkedPage(String linkedPage)
-
getLinkedPage
public MenuElement getLinkedPage(ContentContext ctx)
-
getLinkedDate
public Date getLinkedDate(ContentContext ctx)
-
setLinkedDate
public void setLinkedDate(Date linkedDate)
-
getLinkedTitle
public String getLinkedTitle(ContentContext ctx)
-
setLinkedTitle
public void setLinkedTitle(String linkedTitle)
-
getLinkedDescription
public String getLinkedDescription(ContentContext ctx)
-
setLinkedDescription
public void setLinkedDescription(String linkedDescription)
-
setLinkedLocation
public void setLinkedLocation(String linkedLocation)
-
getLinkedLocation
public String getLinkedLocation(ContentContext ctx)
-
isPertinent
public boolean isPertinent(ContentContext ctx)
-
delete
public boolean delete()
-
setFile
public void setFile(File file)
-
getFile
public File getFile()
-
getCRC32
public long getCRC32()
-
renameFile
public void renameFile(ContentContext ctx, File newFile)
-
getAccessFromSomeDays
public int getAccessFromSomeDays(ContentContext ctx) throws Exception
- Throws:
Exception
-
main
public static void main(String[] args)
-
getAccess
public int getAccess(Date date)
-
addAccess
public void addAccess()
-
-