public class SVNPropertiesManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection |
NOT_ALLOWED_FOR_DIR |
private static java.util.Collection |
NOT_ALLOWED_FOR_FILE |
Constructor and Description |
---|
SVNPropertiesManager() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map |
computeAutoProperties(ISVNOptions options,
java.io.File file,
java.util.Map properties) |
private static boolean |
contains(java.lang.String[] values,
java.lang.String value) |
static void |
deleteWCProperties(SVNAdminArea dir,
java.lang.String name,
boolean recursive) |
static java.lang.String |
determineEncodingByMimeType(java.lang.String mimeType) |
private static java.util.Collection |
getKeywords(java.lang.String value) |
static SVNPropertyValue |
getProperty(SVNWCAccess access,
java.io.File path,
java.lang.String propName) |
static SVNPropertyValue |
getWCProperty(SVNWCAccess access,
java.io.File path,
java.lang.String propName) |
static java.util.Map |
getWorkingCopyPropertyValues(java.io.File path,
SVNEntry entry,
java.lang.String propName,
SVNDepth depth,
boolean base) |
private static void |
handleInconsistentEOL(SVNException svne,
java.lang.Object path) |
private static boolean |
hasSVNProperties(SVNProperties props) |
static boolean |
isValidPropertyName(java.lang.String name) |
static SVNStatusType |
mergeProperties(SVNWCAccess wcAccess,
java.io.File path,
SVNProperties baseProperties,
SVNProperties diff,
boolean baseMerge,
boolean dryRun) |
static java.util.Map |
parseMergeInfo(java.io.File path,
SVNEntry entry,
boolean base) |
static boolean |
propNeedsTranslation(java.lang.String propertyName) |
static void |
recordWCMergeInfo(java.io.File path,
java.util.Map mergeInfo,
SVNWCAccess wcAccess) |
static boolean |
setProperty(SVNWCAccess access,
java.io.File path,
java.lang.String propName,
SVNPropertyValue propValue,
boolean skipChecks) |
static boolean |
setWCProperty(SVNWCAccess access,
java.io.File path,
java.lang.String propName,
SVNPropertyValue propValue,
boolean write) |
static void |
validateEOLProperty(java.lang.Object path,
ISVNFileContentFetcher fetcher) |
static void |
validateMimeType(java.lang.String value) |
private static void |
validatePropertyName(java.lang.Object path,
java.lang.String name,
SVNNodeKind kind) |
static SVNPropertyValue |
validatePropertyValue(java.lang.Object path,
SVNNodeKind kind,
java.lang.String name,
SVNPropertyValue value,
boolean force,
ISVNOptions options,
ISVNFileContentFetcher fileContentFetcher) |
static void |
validateRevisionProperties(SVNProperties revisionProperties) |
private static final java.util.Collection NOT_ALLOWED_FOR_FILE
private static final java.util.Collection NOT_ALLOWED_FOR_DIR
public static void validateRevisionProperties(SVNProperties revisionProperties) throws SVNException
SVNException
public static boolean setWCProperty(SVNWCAccess access, java.io.File path, java.lang.String propName, SVNPropertyValue propValue, boolean write) throws SVNException
SVNException
public static SVNPropertyValue getWCProperty(SVNWCAccess access, java.io.File path, java.lang.String propName) throws SVNException
SVNException
public static void deleteWCProperties(SVNAdminArea dir, java.lang.String name, boolean recursive) throws SVNException
SVNException
public static SVNPropertyValue getProperty(SVNWCAccess access, java.io.File path, java.lang.String propName) throws SVNException
SVNException
public static boolean setProperty(SVNWCAccess access, java.io.File path, java.lang.String propName, SVNPropertyValue propValue, boolean skipChecks) throws SVNException
SVNException
public static SVNStatusType mergeProperties(SVNWCAccess wcAccess, java.io.File path, SVNProperties baseProperties, SVNProperties diff, boolean baseMerge, boolean dryRun) throws SVNException
SVNException
public static java.util.Map computeAutoProperties(ISVNOptions options, java.io.File file, java.util.Map properties) throws SVNException
SVNException
public static java.util.Map getWorkingCopyPropertyValues(java.io.File path, SVNEntry entry, java.lang.String propName, SVNDepth depth, boolean base) throws SVNException
SVNException
public static void recordWCMergeInfo(java.io.File path, java.util.Map mergeInfo, SVNWCAccess wcAccess) throws SVNException
SVNException
public static java.util.Map parseMergeInfo(java.io.File path, SVNEntry entry, boolean base) throws SVNException
SVNException
public static boolean isValidPropertyName(java.lang.String name) throws SVNException
SVNException
public static boolean propNeedsTranslation(java.lang.String propertyName)
private static java.util.Collection getKeywords(java.lang.String value)
private static boolean contains(java.lang.String[] values, java.lang.String value)
public static SVNPropertyValue validatePropertyValue(java.lang.Object path, SVNNodeKind kind, java.lang.String name, SVNPropertyValue value, boolean force, ISVNOptions options, ISVNFileContentFetcher fileContentFetcher) throws SVNException
SVNException
private static boolean hasSVNProperties(SVNProperties props)
private static void validatePropertyName(java.lang.Object path, java.lang.String name, SVNNodeKind kind) throws SVNException
SVNException
public static void validateMimeType(java.lang.String value) throws SVNException
SVNException
public static java.lang.String determineEncodingByMimeType(java.lang.String mimeType)
public static void validateEOLProperty(java.lang.Object path, ISVNFileContentFetcher fetcher) throws SVNException
SVNException
private static void handleInconsistentEOL(SVNException svne, java.lang.Object path) throws SVNException
SVNException