Package hudson.model
Class DirectoryBrowserSupport.Path
- java.lang.Object
-
- hudson.model.DirectoryBrowserSupport.Path
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DirectoryBrowserSupport
public static final class DirectoryBrowserSupport.Path extends Object implements Serializable
Represents information about one file or folder.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DirectoryBrowserSupport.Path
createNotReadableVersionOf(DirectoryBrowserSupport.Path that)
String
getHref()
String
getIconClassName()
String
getIconName()
long
getLastModified()
Calendar
getLastModifiedAsCalendar()
long
getSize()
String
getTitle()
boolean
isFolder()
boolean
isReadable()
-
-
-
Constructor Detail
-
Path
@Deprecated public Path(String href, String title, boolean isFolder, long size, boolean isReadable)
Deprecated.
-
-
Method Detail
-
isFolder
public boolean isFolder()
-
isReadable
public boolean isReadable()
-
getHref
public String getHref()
-
getTitle
public String getTitle()
-
getIconName
public String getIconName()
-
getIconClassName
public String getIconClassName()
-
getSize
public long getSize()
-
getLastModified
public long getLastModified()
- Returns:
- A long value representing the time the file was last modified, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970), or 0L if is not possible to obtain the times.
- Since:
- 2.127
-
getLastModifiedAsCalendar
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Calendar getLastModifiedAsCalendar()
- Returns:
- A Calendar representing the time the file was last modified, it lastModified is 0L it will return 00:00:00 GMT, January 1, 1970.
- Since:
- 2.127
-
createNotReadableVersionOf
public static DirectoryBrowserSupport.Path createNotReadableVersionOf(DirectoryBrowserSupport.Path that)
-
-