/** * Returns the String representation of this UUID, same as {@link #toString()}.<p> * * This method is useful if bean like access to the UUID String is required.<p> * * @return the String representation of this UUID */ public String getStringValue() { return toString(); }
/** * Returns the cache key for the given parameters.<p> * * @param structureId the container page's structure id * @param keepEncoding if to keep the encoding while unmarshalling * * @return the cache key for the given container page and parameters */ public String getCacheKey(CmsUUID structureId, boolean keepEncoding) { return structureId.toString() + "_" + keepEncoding; }
/** * Returns the entity id according to the given UUID.<p> * * @param uuid the UUID * @param locale the content locale * * @return the entity id */ public static String uuidToEntityId(CmsUUID uuid, String locale) { return ENTITY_ID_PREFIX + locale + "/" + uuid.toString(); }
/** * @see org.opencms.ade.configuration.I_CmsConfigurationObject#getKey() */ public String getKey() { return m_resource.getStructureId().toString(); }
/** * @see org.opencms.file.history.I_CmsHistoryResource#getLastModifiedByName() * * @deprecated use {@link #getUserLastModifiedName(CmsObject)} instead */ public String getLastModifiedByName() { return getUserLastModified().toString(); }
/** * Returns the projects user group name.<p> * * @return the projects user group name * * @deprecated use {@link #getGroupUsersName(CmsObject)} instead */ public String getGroupName() { return getGroupId().toString(); }
/** * Adds a list of alias import results, and returns the key under which they were stored.<p> * * @param importResults the alias import results * * @return the key under which the alias import results were stored */ public synchronized String addImportResult(List<CmsAliasImportResult> importResults) { String key = (new CmsUUID()).toString(); m_entries.put(key, importResults); return key; }
/** * Caches the given user under its id AND the fully qualified name.<p> * * @param user the user to cache */ public void cacheUser(CmsUser user) { if (m_disabled.get(CacheType.USER) != null) { return; } m_cacheUser.put(user.getId().toString(), user); m_cacheUser.put(user.getName(), user); }
/** * Caches the given organizational under its id AND the fully qualified name.<p> * * @param orgUnit the organizational unit to cache */ public void cacheOrgUnit(CmsOrganizationalUnit orgUnit) { if (m_disabled.get(CacheType.ORG_UNIT) != null) { return; } m_cacheOrgUnit.put(orgUnit.getId().toString(), orgUnit); m_cacheOrgUnit.put(orgUnit.getName(), orgUnit); }
/** * Caches the given project under its id AND the fully qualified name.<p> * * @param project the project to cache */ public void cacheProject(CmsProject project) { if (m_disabled.get(CacheType.PROJECT) != null) { return; } m_cacheProject.put(project.getUuid().toString(), project); m_cacheProject.put(project.getName(), project); }
/** * Caches the given group under its id AND fully qualified name.<p> * * @param group the group to cache */ public void cacheGroup(CmsGroup group) { if (m_disabled.get(CacheType.GROUP) != null) { return; } m_cacheGroup.put(group.getId().toString(), group); m_cacheGroup.put(group.getName(), group); }
/** * Caches the given organizational under its id AND the fully qualified name.<p> * * @param orgUnit the organizational unit to cache */ public void cacheOrgUnit(CmsOrganizationalUnit orgUnit) { if (m_disabled.get(CacheType.ORG_UNIT) != null) { return; } m_cacheOrgUnit.put(orgUnit.getId().toString(), orgUnit); m_cacheOrgUnit.put(orgUnit.getName(), orgUnit); }
/** * Removes the given group from the cache.<p> * * The group is removed by name AND also by uuid.<p> * * @param group the group to remove from cache */ public void uncacheGroup(CmsGroup group) { m_cacheGroup.remove(group.getId().toString()); m_cacheGroup.remove(group.getName()); }
/** * @see org.opencms.ui.contextmenu.I_CmsSimpleContextMenuEntry#executeAction(java.lang.Object) */ public void executeAction(Set<CmsUUID> data) { CmsUUID id = data.iterator().next(); m_manager.openSubView( A_CmsWorkplaceApp.addParamToState(CmsProjectManager.PATH_NAME_EDIT, "projectId", id.toString()), true); }
/** * Returns the uri.<p> * * @return the uri */ public String getUri() { String uri = m_context.addSiteRoot(m_context.getUri()); if (m_detailViewId != null) { uri += m_detailViewId.toString() + "/"; } return uri; }
/** * Opens the categories dialog for the given resource.<p> * * @param resource the resource */ public void openCategories(CmsResource resource) { getRpcProxy(I_CmsGwtDialogClientRpc.class).openCategoriesDialog(resource.getStructureId().toString()); }
/** * Opens the lock report for the given resource.<p> * * @param resource the resource for which to display the lock report */ public void openLockReport(CmsResource resource) { String dialogTitle = CmsVaadinUtils.getMessageText(org.opencms.ui.Messages.GUI_DIALOGTITLE_LOCKREPORT_0); getRpcProxy(I_CmsGwtDialogClientRpc.class).openLockReport(dialogTitle, resource.getStructureId().toString()); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#validateParamaters() */ @Override protected void validateParamaters() throws Exception { try { getCms().readProject(new CmsUUID(getParamProjectid())); } catch (Exception e) { m_paramProjectid = getCms().getRequestContext().getCurrentProject().getUuid().toString(); } } }
/** * @see org.opencms.db.I_CmsVfsDriver#addUrlNameMappingEntry(org.opencms.db.CmsDbContext, boolean, org.opencms.db.urlname.CmsUrlNameMappingEntry) */ public void addUrlNameMappingEntry(CmsDbContext dbc, boolean online, CmsUrlNameMappingEntry entry) { I_CmsDAOUrlNameMappings m = online ? new CmsDAOOnlineUrlNameMappings() : new CmsDAOOfflineUrlNameMappings(); m.setName(entry.getName()); m.setStructureId(entry.getStructureId().toString()); m.setState(entry.getState()); m.setDateChanged(entry.getDateChanged()); m.setLocale(entry.getLocale()); m_sqlManager.persist(dbc, m); }