/** * {@inheritDoc} */ public String getSiteId() { // use local copy if no page is set if (m_page == null) { return m_siteId; } return getContainingPage().getContainingSite().getId(); }
m_custom_title = getTitleCustom(page); m_siteId = getContainingPage().getContainingSite().getId(); m_skin = bOther.m_skin;
public void duplicatePermissions(ToolConfiguration fromTool, ToolConfiguration toTool) { getPermissionManager().duplicatePermissions(getIdManager().getId(fromTool.getId()), getIdManager().getId(toTool.getId()), toTool.getContainingPage().getContainingSite()); }
if (rv != null) rv = new BaseSitePage(this,rv, rv.getContainingSite(), true); return rv;
/** * sets up the default perms for a tool. Use's the tool id as the qualifier. * Assumes that if no perms exist for the tool, the perms should be set to the defaults. * * @param toolConfig */ public void toolSiteChanged(ToolConfiguration toolConfig) { Id toolId = getIdManager().getId(toolConfig.getId()); PermissionsEdit edit = new PermissionsEdit(); edit.setQualifier(toolId); edit.setName(getPermissionEditName()); edit.setSiteId(toolConfig.getContainingPage().getContainingSite().getId()); getPermissionManager().fillPermissions(edit); if (edit.getPermissions() == null || edit.getPermissions().size() == 0) { createDefaultPermissions(edit.getSiteId(), toolId); } }