| java.lang.Object ru.emdev.EmForge.svn.web.Helper
Helper | public class Helper (Code) | | Helper class to the svn browser
author: Walter Mourao |
dirPathFromFilePath | public static String dirPathFromFilePath(String filePath)(Code) | | Extract the path from the fully qualified file path
Parameters: filePath - the fully qualified file path the path without the file name |
fileNameFromFilePath | public static String fileNameFromFilePath(String filePath)(Code) | | Extracts the file name from the file path
Parameters: filePath - the fully qualified file path the fille name extracted from the path |
formatAge | public static String formatAge(java.util.Date entryDate)(Code) | | Formats a date to a text format
Parameters: entryDate - the date to be formatted a text in the format "xx days ago", "yy months ago" and so on |
formatSize | public static String formatSize(long sz)(Code) | | Formats the size to the text format
Parameters: sz - the size a string in the form "xxx bytes", "yyy kbytes" and so on |
getCurrentRevision | public static long getCurrentRevision(Long revision)(Code) | | Transforms the url parameter "revision" into subversion revision
Parameters: revision - the revision as Long (can be null) the subversion revision, -1 if the parameter revision was null |
getLogEntries | public static Collection<SVNLogEntry> getLogEntries(SVNRepository repository, String path, long startRevision, long endRevision, boolean changedPath) throws SVNException(Code) | | Reads log entries from a subversion file or directory
Parameters: repository - the subversion repository Parameters: path - the directory/file path Parameters: startRevision - the starting log entry revision Parameters: endRevision - the ending log entry revision Parameters: changedPath - true if the list of changed files must be retrieved the desired log entries throws: SVNException - |
isDirectory | public static Boolean isDirectory(SVNRepository repository, String path, long revision) throws SVNException(Code) | | Checks, is specified path directory or file
|
isUserProperty | public static boolean isUserProperty(String key)(Code) | | Filters the user properties from the internal subversion properties
Parameters: key - the property key true if the property is a user property, false if not |
listEntries | public static SvnDataVO[] listEntries(SVNRepository repository, String path, long revision) throws SVNException(Code) | | Read a repository directory
Parameters: repository - the subversion repository Parameters: path - the directory path Parameters: revision - the revision to be used a list of file/directories entries throws: SVNException - |
|
|