Returns the lock icon path for the given resource.<p>

Relative to <code>/system/workplace/resources/</code>.<p>

Returns <code>explorer/project_none.gif</code> if request context is <code>null</code>.<p>

@return the lock icon path for the given resource
428793
public String getIconPathLock() {

        CmsLock lock = getLock();
        String iconPath = null;
        if (!lock.isUnlocked() && (m_request != null) && isInsideProject()) {
            if (getLock().isOwnedBy(m_request.getCurrentUser())
                && (getLockedInProjectId().equals(getReferenceProject().getUuid()))) {
                if (lock.isShared()) {
                    iconPath = "shared";
                } else {
                    iconPath = "user";
                }
            } else {
                iconPath = "other";
            }
        }
        if (iconPath == null) {
            iconPath = "project_none";
        } else {
            iconPath = "lock_" + iconPath;
        }
        return "explorer/" + iconPath + ".gif";
    }
1075474
protected Optional<BufferedImage> getIcon(@NonNull String iconPath)
	{
		Optional<BufferedImage> optional = Optional.empty();
		try
		{
			BufferedImage bufferedImage = ImageIO
				.read(ClassExtensions.getResourceAsStream(iconPath));
			optional = Optional.of(bufferedImage);
		}
		catch (IOException e)
		{
			String title = e.getLocalizedMessage();
			String htmlMessage = "<html><body width='650'>" + "<h2>" + title + "</h2>" + "<p>"
				+ e.getMessage();
			JOptionPane.showMessageDialog(this, htmlMessage, title, JOptionPane.ERROR_MESSAGE);
			log.log(Level.SEVERE, e.getMessage(), e);
		}
		return optional;
	}
179341
protected String getCssPath(String resourceName) {
		String path = resourceName;
		if (jawrConfig.getGeneratorRegistry().isPathGenerated(path)) {
			path = path.replace(':', '/');
			path = JawrConstant.SPRITE_GENERATED_CSS_DIR + path;
		}
		return path;
	}
381363
public ImageIcon getIcon() {
        if (confidence == Alert.CONFIDENCE_FALSE_POSITIVE) {
            // Special case - theres no risk - use the green flag
            return DisplayUtils.getScaledIcon(Constant.OK_FLAG_IMAGE_URL);
        }

        switch (risk) {
        case Alert.RISK_INFO:
            return DisplayUtils.getScaledIcon(Constant.INFO_FLAG_IMAGE_URL);
        case Alert.RISK_LOW:
            return DisplayUtils.getScaledIcon(Constant.LOW_FLAG_IMAGE_URL);
        case Alert.RISK_MEDIUM:
            return DisplayUtils.getScaledIcon(Constant.MED_FLAG_IMAGE_URL);
        case Alert.RISK_HIGH:
            return DisplayUtils.getScaledIcon(Constant.HIGH_FLAG_IMAGE_URL);
        }
        return null;
    }
534107
public String getTinyIconPath(CmsObject cms, CmsUser user) {

        return getIconPath(cms, user, IconSize.Tiny);
    }
1293939
@Override
    public String getPath() {
        ServletRESTRequestImpl ret = castRequest();
        if (ret != null)
            return ret.getPath();
        return null;
    }
890740
public String getEditedFilePath() {

        switch (getBundleType()) {
            case DESCRIPTOR:
                return m_cms.getSitePath(m_desc);
            case PROPERTY:
                return null != m_lockedBundleFiles.get(getLocale())
                ? m_cms.getSitePath(m_lockedBundleFiles.get(getLocale()).getFile())
                : m_cms.getSitePath(m_resource);
            case XML:
                return m_cms.getSitePath(m_resource);
            default:
                throw new IllegalArgumentException();
        }
    }
616007
public String getResourcePath() {
        final StringBuilder sb = new StringBuilder();
        for (final String r : resource)
            sb.append(r + '/');
        return sb.substring(0, Math.max(0, sb.length() - 1));
    }
787387
def core__get_application_logo_sidebar_path
      dir = "#{core__get_application_root_path}/app/assets/images/lato/"
      if File.exist?("#{dir}/logo_sidebar.svg")
        return 'lato/logo_sidebar.svg'
      elsif File.exist?("#{dir}/logo_sidebar.png")
        return 'lato/logo_sidebar.png'
      elsif File.exist?("#{dir}/logo_sidebar.jpg")
        return 'lato/logo_sidebar.jpg'
      elsif File.exist?("#{dir}/logo_sidebar.gif")
        return 'lato/logo_sidebar.gif'
      end
      core__get_application_logo_path
    end
135259
protected String getResourcePath(CmsObject cms, I_CmsWidgetDialog dialog) {

        String result = null;
        if (dialog instanceof CmsDummyWidgetDialog) {
            result = ((CmsDummyWidgetDialog)dialog).getResource().getRootPath();
        } else if (dialog instanceof CmsDialog) {
            result = ((CmsDialog)dialog).getParamResource();
            if (result != null) {
                result = cms.getRequestContext().addSiteRoot(result);
            }
        }
        return result;
    }
264719
public ImageIcon retrieveIcon(URL location) throws IconProviderException
	{
		if (!getCache().containsKey(location))
		{
			getCache().put(location, new ImageIcon(location));
		}
		return getCache().get(location);
	}
407231
public static String findIconUrl( AbstractApplication app ) {

		StringBuilder sb = new StringBuilder();
		File iconFile = findIcon( app );
		if( iconFile != null ) {
			sb.append( "/" );
			sb.append( app.getName());

			if( app instanceof ApplicationTemplate ) {
				sb.append( "/" );
				sb.append(((ApplicationTemplate) app).getVersion());
			}

			sb.append( "/" );
			sb.append( iconFile.getName());
		}

		return sb.toString();
	}
1065316
public File getStylesheetPath()
    {
        String path = System.getProperty(STYLESHEET_KEY);
        return path == null ? null : new File(path);
    }
1143152
static Image getIcon(String target) {

        if (target.equalsIgnoreCase("SystemCursor")) {
            return (new ImageIcon(
                CommonSwing.class.getResource("Hourglass.gif")).getImage());
        } else if (target.equalsIgnoreCase("Frame")) {
            return (new ImageIcon(
                CommonSwing.class.getResource("hsqldb.gif")).getImage());
        } else if (target.equalsIgnoreCase("Execute")) {
            return (new ImageIcon(
                CommonSwing.class.getResource("run_exc.gif")).getImage());
        } else if (target.equalsIgnoreCase("StatusRunning")) {
            return (new ImageIcon(
                CommonSwing.class.getResource("RedCircle.gif")).getImage());
        } else if (target.equalsIgnoreCase("StatusReady")) {
            return (new ImageIcon(
                CommonSwing.class.getResource("GreenCircle.gif")).getImage());
        } else if (target.equalsIgnoreCase("Clear")) {
            return (new ImageIcon(
                CommonSwing.class.getResource("Clear.png")).getImage());
        } else if (target.equalsIgnoreCase("Problem")) {
            return (new ImageIcon(
                CommonSwing.class.getResource("problems.gif")).getImage());
        } else if (target.equalsIgnoreCase("BoldFont")) {
            return (new ImageIcon(
                CommonSwing.class.getResource("Bold.gif")).getImage());
        } else if (target.equalsIgnoreCase("ItalicFont")) {
            return (new ImageIcon(
                CommonSwing.class.getResource("Italic.gif")).getImage());
        } else if (target.equalsIgnoreCase("ColorSelection")) {
            return (new ImageIcon(
                CommonSwing.class.getResource("Colors.png")).getImage());
        } else if (target.equalsIgnoreCase("Close")) {
            return (new ImageIcon(
                CommonSwing.class.getResource("Close.png")).getImage());
        } else {
            return (null);
        }
    }
258135
public Resource getResource(String path) {
        if (hasContext()) {
            return context.getResource(path);
        }
        return getContext().getResource(getContextPath() + '/' + path);
    }
500674
public static ImageIcon loadImageIcon(final String iconName, final Class<?> clazz) {
        ImageIcon icon = null;

        if (iconName != null) {
            final URL iconResource = clazz.getResource(iconName);
            if (iconResource == null) {
                LOGGER.error("Icon could not be loaded: '" + iconName);
                icon = null;
            } else {
                icon = new ImageIcon(iconResource);
            }
        }

        return icon;
    }
129249
public String getRequestPath() {
        StringBuilder builder;

        synchronized (tryLock) {
            builder = new StringBuilder(path.length() + 10);
            builder.append('/');
            if (!path.isEmpty()) {
                try {
                    builder.append(new URI(null, null, path, null).getRawPath());
                } catch (URISyntaxException e) {
                    throw new IllegalStateException();
                }
                if (tryDir) {
                    builder.append('/');
                }
            }
            if (encodedQuery != null) {
                builder.append('?');
                builder.append(encodedQuery);
            }
        }
        return builder.toString();
    }