Class LogUtil
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.util.LogUtil
-
public final class LogUtil extends Object
LogUtil...
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringsafeGetJCRPath(ItemState itemState, org.apache.jackrabbit.spi.commons.conversion.PathResolver pathResolver)Failsafe conversion of anItemStateto JCR path for use in error messages etc.static StringsafeGetJCRPath(org.apache.jackrabbit.spi.Path qPath, org.apache.jackrabbit.spi.commons.conversion.PathResolver pathResolver)Failsafe conversion of internalPathto JCR path for use in error messages etc.static StringsaveGetIdString(org.apache.jackrabbit.spi.ItemId itemId, org.apache.jackrabbit.spi.commons.conversion.PathResolver pathResolver)Failsafe conversion of anItemIdto a human readable string resolving the path part of the specified id using the given path resolver.static StringsaveGetJCRName(org.apache.jackrabbit.spi.Name qName, org.apache.jackrabbit.spi.commons.conversion.NameResolver nameResolver)Failsafe conversion of aNameto a JCR name for use in error messages etc.
-
-
-
Method Detail
-
safeGetJCRPath
public static String safeGetJCRPath(org.apache.jackrabbit.spi.Path qPath, org.apache.jackrabbit.spi.commons.conversion.PathResolver pathResolver)
Failsafe conversion of internalPathto JCR path for use in error messages etc.- Parameters:
qPath- path to convertpathResolver-- Returns:
- JCR path
-
safeGetJCRPath
public static String safeGetJCRPath(ItemState itemState, org.apache.jackrabbit.spi.commons.conversion.PathResolver pathResolver)
Failsafe conversion of anItemStateto JCR path for use in error messages etc.- Parameters:
itemState-pathResolver-- Returns:
- JCR path
-
saveGetJCRName
public static String saveGetJCRName(org.apache.jackrabbit.spi.Name qName, org.apache.jackrabbit.spi.commons.conversion.NameResolver nameResolver)
Failsafe conversion of aNameto a JCR name for use in error messages etc.- Parameters:
qName-nameResolver-- Returns:
- JCR name or String representation of the given
Namein case the resolution fails.
-
saveGetIdString
public static String saveGetIdString(org.apache.jackrabbit.spi.ItemId itemId, org.apache.jackrabbit.spi.commons.conversion.PathResolver pathResolver)
Failsafe conversion of anItemIdto a human readable string resolving the path part of the specified id using the given path resolver.- Parameters:
itemId-pathResolver-- Returns:
- a String representation of the given
ItemId.
-
-