ServiceException, ForceRemoteException, InterruptedException {
return (isNameUniqueLocalCheck() && isNameUniqueRemoteCheck(monitor));
}
public boolean isNameUniqueLocalCheck() {
final Component componentToCheck = getComponent();
final String dirPath =
(componentToCheck != null) ? (new StringBuffer(Constants.SOURCE_FOLDER_NAME).append(File.separator)
.append(componentToCheck.getDefaultFolder())).toString() : null;
final String fileName =
(componentToCheck != null) ? (new StringBuffer(componentToCheck.getName()).append(".")
.append(componentToCheck.getFileExtension())).toString() : null;
final String componentName_Absolute =
(dirPath != null && fileName != null) ? (new StringBuffer(dirPath).append(fileName)).toString() : null;
if (logger.isInfoEnabled()) {
logger.info("Ensure local uniqueness for '"
+ (Utils.isEmpty(componentName_Absolute) ? "" : componentName_Absolute.toString()) + "'");
}
return (!componentToCheck.isCaseSensitive()) ? checkInFolder(dirPath, fileName) : true;
}