/** * Returns the path of the gallery to display.<p> * * @return the path of the gallery to display */ public String getParamGalleryPath() { if (CmsStringUtil.isEmpty(m_paramGalleryPath)) { m_paramGalleryPath = ""; } return m_paramGalleryPath; }
/** * Returns if the setting value is null or empty.<p> * * @return <code>true</code> if the setting value is null or empty */ @Override public boolean getIsEmpty() { return CmsStringUtil.isEmpty(m_value); }
/** * @see org.opencms.workplace.editors.directedit.A_CmsDirectEditProvider#init(org.opencms.file.CmsObject, org.opencms.workplace.editors.directedit.CmsDirectEditMode, java.lang.String) */ @Override public void init(CmsObject cms, CmsDirectEditMode mode, String fileName) { m_cms = cms; m_fileName = fileName; if (CmsStringUtil.isEmpty(m_fileName)) { m_fileName = DIRECT_EDIT_INCLUDE_FILE_URI_DEFAULT; } m_mode = mode != null ? mode : CmsDirectEditMode.AUTO; }
/** * Returns the paramTargetFrame.<p> * * @return the paramTargetFrame */ public String getParamTargetFrame() { if (CmsStringUtil.isEmpty(m_paramTargetFrame)) { return "explorer_files"; } return m_paramTargetFrame; }
/** * Sets the CurrentFolder parameter.<p> * * @param paramCurrentFolder the CurrentFolder parameter */ public void setParamCurrentFolder(String paramCurrentFolder) { if (CmsStringUtil.isEmpty(paramCurrentFolder)) { m_paramCurrentFolder = "/"; } else { m_paramCurrentFolder = paramCurrentFolder; } }
/** * Returns the property value of this resource comparator key.<p> * * @return property value of this resource comparator key */ public String getPropertyValue() { if (!CmsStringUtil.isEmpty(m_propertyValue)) { return m_propertyValue.trim(); } else { return ""; } }
/** * Sets the confirmation.<p> * * @param confirmation the confirmation to set */ public void setConfirmation(String confirmation) { // leave password unchanged, if the new password and the confirmation is empty if (CmsStringUtil.isEmpty(getNewPwd()) && CmsStringUtil.isEmpty(confirmation)) { return; } m_confirmation = confirmation; }
/** * Sets the locale.<p> * * @param locale the locale to set */ public void setLocale(String locale) { if (CmsStringUtil.isEmpty(locale)) { m_locale = null; } else { m_locale = CmsLocaleManager.getLocale(locale); } }
/** * @see org.opencms.workplace.editors.directedit.I_CmsDirectEditProvider#init(org.opencms.file.CmsObject, org.opencms.workplace.editors.directedit.CmsDirectEditMode, java.lang.String) */ @Override public void init(CmsObject cms, CmsDirectEditMode mode, String fileName) { if (CmsStringUtil.isEmpty(fileName)) { fileName = INCLUDE_FILE_JQUERY; } super.init(cms, mode, fileName); }
/** * @see org.opencms.workplace.editors.directedit.I_CmsDirectEditProvider#init(org.opencms.file.CmsObject, org.opencms.workplace.editors.directedit.CmsDirectEditMode, java.lang.String) */ @Override public void init(CmsObject cms, CmsDirectEditMode mode, String fileName) { if (CmsStringUtil.isEmpty(fileName)) { fileName = INCLUDE_FILE_JQUERY; } super.init(cms, mode, fileName); }
/** * Returns the name of the database pool to use.<p> * * @return the name of the database pool to use */ public String getPoolName() { if (CmsStringUtil.isEmpty(m_poolName)) { // use default pool as pool name m_poolName = OpenCms.getSqlManager().getDefaultDbPoolName(); } return m_poolName; }
/** * Sets the file path, should be a zip file.<p> * * @param path the file path */ public void setPath(String path) { if (CmsStringUtil.isEmpty(path) || !path.trim().equals(path)) { throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_BAD_FILE_NAME_1, path)); } m_path = path; }
/** * Returns the editor title.<p> * * @return the editor title */ public String getParamEditorTitle() { if (CmsStringUtil.isEmpty(m_paramEditorTitle)) { return key(Messages.GUI_EDITOR_TITLE_PREFIX_0) + " " + getParamResource(); } return m_paramEditorTitle; }
/** * Sets the file path, should be a zip file.<p> * * @param path the file path */ public void setPath(String path) { if (CmsStringUtil.isEmpty(path) || !path.trim().equals(path)) { throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_BAD_FILE_NAME_1, path)); } m_path = path; }
/** * @see org.opencms.frontend.templateone.form.I_CmsField#validate(CmsFormHandler) */ public String validate(CmsFormHandler formHandler) { // validate the constraints String validationError = validateConstraints(); if (CmsStringUtil.isEmpty(validationError)) { // no constraint error- validate the input value validationError = validateValue(); } return validationError; }
/** * Sets the job name.<p> * * @param jobName the job name to set */ public void setJobName(String jobName) { checkFrozen(); if (CmsStringUtil.isEmpty(jobName) || !jobName.trim().equals(jobName)) { throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_BAD_JOB_NAME_1, jobName)); } m_jobName = jobName; }
/** * Checks the ethernet address value and generates a dummy address, if necessary.<p> * */ public void checkEthernetAddress() { // check the ethernet address in order to generate a random address, if not available if (CmsStringUtil.isEmpty(getEthernetAddress())) { setEthernetAddress(CmsStringUtil.getEthernetAddress()); } }
@Override protected boolean exclude(CmsResourceTypeBean type) { String typeName = type.getType(); CmsExplorerTypeSettings explorerType = OpenCms.getWorkplaceManager().getExplorerTypeSetting(typeName); boolean noCreate = !(type.isCreatableType() && !type.isDeactivated()); return noCreate || (explorerType == null) || CmsStringUtil.isEmpty(explorerType.getNewResourceUri()); } };
/** * Validates that the confirmation matches the new password.<p> */ public void validate() { if (CmsStringUtil.isEmpty(getNewPwd())) { throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_INVALID_NEWPWD_0)); } if (!getNewPwd().equals(getConfirmation())) { throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_NEWPWD_MISMATCH_0)); } } }