Returns the workplace settings of the current user.<p>

@return the workplace settings
513495
private CmsWorkplaceSettings getWorkplaceSettings() {

        if (m_workplaceSettings == null) {
            m_workplaceSettings = CmsWorkplace.getWorkplaceSettings(getCmsObject(), getRequest());
        }
        return m_workplaceSettings;
    }
441501
public PropertyOwner retrieveUserProperties()
    {
        if (m_registration == null)
        {
            BasePanel parent = this.getParentScreen();
            if (parent == null)
                return null;
            if (!(parent instanceof TopScreen))
                return parent.retrieveUserProperties();     // Register with the highest screen below the AppletScreen
            String strKey = Constant.BLANK;
            String strFileName = Constant.BLANK;
            String strScreen = this.getClass().getName().toString();
            strKey += strScreen + MenuConstants.REGSEPARATOR; // Screen
            Record record = this.getMainRecord();
            if (record == null)
                record = this.getScreenRecord();
            if (record != null)
                strFileName = record.getTableNames(false);  // File name of the main file
            else
                strFileName = "No Main Query";
            if (strFileName.length() == 0)
                strFileName = "No Query Name";
            strKey += strFileName;  // Main file Key
            m_registration = this.retrieveUserProperties(strKey);
        }
        return m_registration;
    }
786855
public com.google.api.ads.admanager.axis.v201902.CompanySettings getSettings() {
        return settings;
    }
1193342
public String getPublishButton() {

        String publishButton = OpenCms.getWorkplaceManager().getDefaultUserSettings().getPublishButtonAppearance();
        if (CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_NEVER.equals(publishButton)) {
            return "";
        }

        int buttonStyle = getSettings().getUserSettings().getWorkplaceButtonStyle();

        if (CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_AUTO.equals(publishButton)) {
            if (getCms().isManagerOfProject()) {
                return button(
                    "../../workplace/commons/publish_project.jsp",
                    "body",
                    "publish.png",
                    Messages.GUI_BUTTON_PUBLISH_0,
                    buttonStyle);
            } else {
                return "";
            }
        }

        if (getCms().isManagerOfProject()) {
            return (button(
                "../../workplace/commons/publish_project.jsp",
                "body",
                "publish.png",
                Messages.GUI_BUTTON_PUBLISH_0,
                buttonStyle));
        } else {
            return (button(null, null, "publish_in.png", Messages.GUI_BUTTON_PUBLISH_0, buttonStyle));
        }
    }
1106860
public CmsUserEditParameters getUserEditParameters(CmsUser user) {

        CmsUserEditParameters params = new CmsUserEditParameters();
        params.setEditEnabled(true);
        params.setPasswordChangeEnabled(true);
        return params;
    }
95788
public UserInfoModel getUserInfo()
    {
        UserInfoModel recUserInfo = null;
        if (m_systemRecordOwner != null)
            recUserInfo = (UserInfoModel)m_systemRecordOwner.getRecord(UserInfoModel.USER_INFO_FILE);
        return recUserInfo;
    }
1349124
public @Nonnull List<String> getJobs() {
        List<String> r = new ArrayList<>();
        r.addAll(usages.keySet());
        Collections.sort(r);
        return r;
    }
725191
public String getPrincipal() {
        String principal = target.getPrincipal();
        if (StringUtils.hasText(principal)) {
            return principal;
        } else {
            return defaultUser;
        }
    }
187585
protected I_CmsCredentialsResolver getCredentialsResolver() {

        if (m_credentialsResolver == null) {
            CmsSystemConfiguration systemConfig = (CmsSystemConfiguration)m_configurationManager.getConfiguration(
                CmsSystemConfiguration.class);
            return systemConfig.getCredentialsResolver();
        }

        return m_credentialsResolver;
    }
4350
private CmsSessionInfo getSessionForUser(CmsUser user) {

        List<CmsSessionInfo> sessions = OpenCms.getSessionManager().getSessionInfos(user.getId());

        if (sessions.isEmpty()) {
            return null;
        }

        CmsSessionInfo currentSession = sessions.get(0);
        for (CmsSessionInfo session : sessions) {
            if (session.getTimeUpdated() > currentSession.getTimeUpdated()) {
                currentSession = session;
            }
        }
        return currentSession;
    }
1004290
public java.util.List<IpRuleItem> getUserRules() {
        if (userRules == null) {
            userRules = new com.amazonaws.internal.SdkInternalList<IpRuleItem>();
        }
        return userRules;
    }
461268
public ConfigurationRequest getEnrichedRequestedConfiguration() {
        final Map<String, String> regularUsers = userService.loadAll().stream()
                .collect(Collectors.toMap(User::getName, User::getName));

        final Map<String, String> userNames = ImmutableMap.<String, String>builder()
                .put(graylogConfig.getRootUsername(), graylogConfig.getRootUsername())
                .putAll(regularUsers)
                .build();

        return getConfigurationRequest(userNames);
    }
925631
public int getFlags() {

        int flags = 0;
        if (isNologin()) {
            flags += CmsOrganizationalUnit.FLAG_HIDE_LOGIN;
        }
        if (isWebusers()) {
            flags += CmsOrganizationalUnit.FLAG_WEBUSERS;
        }
        return flags;
    }
1125401
@InterfaceAudience.Public
    public Map<String, Object> getUserProperties() {

        Map<String, Object> result = new HashMap<String, Object>();

        Map<String, Object> sourceMap = getProperties();
        for (String key : sourceMap.keySet()) {
            if (!key.startsWith("_")) {
                result.put(key, sourceMap.get(key));
            }
        }
        return result;
    }
619967
public static Object getUser()
    {
        HttpSession session = WebContextFactory.get().getSession(true);
        return session.getAttribute(USER);
    }
1278094
public function get_setting() {
        $roles = role_fix_names(get_all_roles());
        $result = array();
        foreach ($roles as $role) {
            $contexts = $this->config_read('contexts_role'.$role->id);
            $memberattribute = $this->config_read('memberattribute_role'.$role->id);
            $result[] = array('id' => $role->id,
                              'name' => $role->localname,
                              'contexts' => $contexts,
                              'memberattribute' => $memberattribute);
        }
        return $result;
    }
321614
public java.security.Principal getUserPrincipal()
    {
        if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
            checkRequestObjectInUse();
        }
        IWebAppSecurityCollaborator webAppSec=null;
        if (getDispatchContext()!=null && getDispatchContext().getWebApp() != null) {
            webAppSec = CollaboratorHelperImpl.getCurrentSecurityCollaborator(getDispatchContext().getWebApp());
        } else {
            webAppSec = CollaboratorHelperImpl.getCurrentSecurityCollaborator();           
        } 
            
        if (webAppSec != null) {
            if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)){  //306998.15
                logger.logp(Level.FINE, CLASS_NAME,"getUserPrincipal", "calling getUserPrincipal on " + webAppSec.getClass().getName());
            }
            return webAppSec.getUserPrincipal();
        } else {
            if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)){  //306998.15
                logger.logp(Level.FINE, CLASS_NAME,"getUserPrincipal", "returning null");
            }
            // No IWebAppSecurityCollaborator means no security, so no Principal 
            return null;
        }
    }