public Entity createEntity(JetspeedPrincipal principal) { Set<Attribute> ldapAttrValues = new HashSet<Attribute>(); SecurityAttributes sas = principal.getSecurityAttributes(); for (AttributeDef attrDef : searchConfiguration.getEntityAttributeDefinitionsMap().values()) { if (attrDef.isMapped()) { SecurityAttribute sa = sas.getAttribute(attrDef.getMappedName()); if (sa != null) { // currently only single-valued attributes are supported AttributeImpl attr = new AttributeImpl(attrDef); attr.setValue(sa.getStringValue()); ldapAttrValues.add(attr); } } } return internalCreateEntity(principal.getName(), null, ldapAttrValues); }
public Map<String, String> getInfoMap() { return getSecurityAttributes().getInfoMap(); }
SecurityAttribute principalAttr = principalAttrs.getAttribute(attrDef.getMappedName()); if (principalAttr != null) principalAttrs.removeAttribute(principalAttr.getName()); updated = true; SecurityAttribute principalAttr = principalAttrs.getAttribute(attrDef.getMappedName(), true); if (feedbackLogger.isDebugEnabled()) SecurityAttribute principalAttr = principalAttrs.getAttribute(attrDef.getMappedName(), true); if (!StringUtils.equals(principalAttr.getStringValue(), attr.getValue()))
_jsPrincipal.setSecurityAttributes(principal.getSecurityAttributes().getAttributeMap());
user.getSecurityAttributes().getAttribute("user.name.given", true).setStringValue(userNameGiven); user.getSecurityAttributes().getAttribute("user.name.family", true).setStringValue(userNameFamily); user.getSecurityAttributes().getAttribute("user.business-info.online.email", true).setStringValue(userEmail);
public Map<String, String> getInfoMap() { return getSecurityAttributes().getInfoMap(); }
user.getSecurityAttributes().getAttribute("user.name.given", true).setStringValue(userNameGiven); user.getSecurityAttributes().getAttribute("user.name.family", true).setStringValue(userNameFamily); user.getSecurityAttributes().getAttribute("user.business-info.online.email", true).setStringValue(userEmail);
SecurityAttributes userAttrs = user.getSecurityAttributes(); for (Map.Entry<String, String> entry : userInfo.entrySet()) { userAttrs.getAttribute(entry.getKey(), true).setStringValue(entry.getValue());
SecurityAttribute attrib = user.getSecurityAttributes().getAttribute(PortalReservedParameters.PREFERED_LOCALE_ATTRIBUTE); if (attrib != null)
SecurityAttribute userAttribute = portalUserAttributes.getAttribute(name, true); if (!value.equals(userAttribute.getStringValue()))
public Object run() { try { if (innerUserFolderPath != null) { innerUser.getSecurityAttributes().getAttribute(User.JETSPEED_USER_SUBSITE_ATTRIBUTE, true).setStringValue(innerUserFolderPath); userManager.updateUser(innerUser);
user.getSecurityAttributes().getAttribute(elem.getKey(), true).setStringValue(elem.getValue());
SecurityAttribute secAtttr = secAttrs.getAttribute(PortalReservedParameters.USER_HOMEPAGE_REFRESH_FLAG); SecurityAttribute secAttrTemplatePath = secAttrs.getAttribute(PortalReservedParameters.USER_HOMEPAGE_TEMPLATE_PATH);
userSecAttrs.getAttribute(securityAttributeKey, true).setStringValue(securityAttributeValue); userSecAttrs.getAttribute(element.getKey(), true).setStringValue(element.getValue()); principal.getSecurityAttributes().getAttribute(elem.getKey(), true).setStringValue(elem.getValue());
innerUser.getSecurityAttributes().getAttribute(User.JETSPEED_USER_SUBSITE_ATTRIBUTE, true).setStringValue(innerSubsite); userManager.updateUser(innerUser);