public static String getPolicyDisplayName(String uri){ ServicePolicy policy = SLACommon.LoadPolicyPooled(uri); if (policy==null){ //very unexpected return uri; } if (policy.getDisplayName()!=null && policy.getDisplayName().length()>0) return policy.getDisplayName(); return uri; } protected static boolean isPolicyTypeOf(String uri, PolicyType p) {
comm.setNull(4, Types.DOUBLE); if (Utility.stringIsNullOrEmpty(policy.getDisplayName())) { comm.setNull(5, java.sql.Types.VARCHAR); } else { comm.setString(5, policy.getDisplayName());
Name n = new Name(); n.setLang(PublicationConstants.lang); if (!Utility.stringIsNullOrEmpty(servicePolicy.getPolicy().getDisplayName())) { n.setValue(servicePolicy.getPolicy().getDisplayName()); } else { n.setValue(servicePolicy.getPolicy().getURL());