Examples of SecurityAttributes


Examples of buri.ddmsence.ddms.security.ism.SecurityAttributes

      if (description != null)
        _description = new Description(description);
      Element taskID = element.getFirstChildElement(TaskID.getName(getDDMSVersion()), getNamespace());
      if (taskID != null)
        _taskID = new TaskID(taskID);
      _securityAttributes = new SecurityAttributes(element);
      validate();
    }
    catch (InvalidDDMSException e) {
      e.setLocator(getQualifiedName());
      throw (e);
View Full Code Here

Examples of buri.ddmsence.ddms.security.ism.SecurityAttributes

   * @throws InvalidDDMSException if any required information is missing or malformed
   */
  public Source(Element element) throws InvalidDDMSException {
    // Defaults to qualifier-value over codespace-code.
    try {
      _securityAttributes = new SecurityAttributes(element);
      setXOMElement(element, true);
    }
    catch (InvalidDDMSException e) {
      e.setLocator(getQualifiedName());
      throw (e);
View Full Code Here

Examples of buri.ddmsence.ddms.security.ism.SecurityAttributes

        _links = new ArrayList<Link>();
        Elements links = innerElement.getChildElements(Link.getName(getDDMSVersion()), getNamespace());
        for (int i = 0; i < links.size(); i++)
          _links.add(new Link(links.get(i)));
      }
      _securityAttributes = new SecurityAttributes(element);
      validate();
    }
    catch (InvalidDDMSException e) {
      e.setLocator(getQualifiedName());
      throw (e);
View Full Code Here

Examples of buri.ddmsence.ddms.security.ism.SecurityAttributes

      String revisionID = element.getAttributeValue(REVISION_ID_NAME, getNamespace());
      if (!Util.isEmpty(revisionID)) {
        _revisionID = Integer.valueOf(revisionID);
      }
      _xlinkAttributes = new XLinkAttributes(element);
      _securityAttributes = new SecurityAttributes(element);
      validate();
    }
    catch (InvalidDDMSException e) {
      e.setLocator(getQualifiedName());
      throw (e);
View Full Code Here

Examples of buri.ddmsence.ddms.security.ism.SecurityAttributes

          _approximableStart = new ApproximableDate(approximableStart);
        Element approximableEnd = element.getFirstChildElement(APPROXIMABLE_END_NAME, getNamespace());
        if (approximableEnd != null)
          _approximableEnd = new ApproximableDate(approximableEnd);
      }
      _securityAttributes = new SecurityAttributes(element);
      validate();
    }
    catch (InvalidDDMSException e) {
      e.setLocator(getQualifiedName());
      throw (e);
View Full Code Here

Examples of buri.ddmsence.ddms.security.ism.SecurityAttributes

        _noticeList = new NoticeList(component);
      component = element.getFirstChildElement(Access.getName(getDDMSVersion()),
        getDDMSVersion().getNtkNamespace());
      if (component != null)
        _access = new Access(component);
      _securityAttributes = new SecurityAttributes(element);
      populatedOrderedList();
      validate();
    }
    catch (InvalidDDMSException e) {
      e.setLocator(getQualifiedName());
View Full Code Here

Examples of buri.ddmsence.ddms.security.ism.SecurityAttributes

   * @throws InvalidDDMSException if any required information is missing or malformed
   */
  public Type(Element element) throws InvalidDDMSException {
    // Defaults to qualifier-value over codespace-code.
    try {
      _securityAttributes = new SecurityAttributes(element);
      setXOMElement(element, true);
    }
    catch (InvalidDDMSException e) {
      e.setLocator(getQualifiedName());
      throw (e);
View Full Code Here

Examples of buri.ddmsence.ddms.security.ism.SecurityAttributes

      Elements processingInfos = element.getChildElements(ProcessingInfo.getName(getDDMSVersion()),
        getNamespace());
      for (int i = 0; i < processingInfos.size(); i++) {
        _processingInfos.add(new ProcessingInfo(processingInfos.get(i)));
      }
      _securityAttributes = new SecurityAttributes(element);
      validate();
    }
    catch (InvalidDDMSException e) {
      e.setLocator(getQualifiedName());
      throw (e);
View Full Code Here

Examples of org.apache.jetspeed.security.SecurityAttributes

                // Set the prefered locale to user's perferences(persistent storage) if not anon user
                try
                {
                    User user = userManager.getUser(request.getRemoteUser());
                    // TODO if preferred lang or locale is defined in PLT.D, it's better to use it
                    SecurityAttributes secAttrs = user.getSecurityAttributes();
                    secAttrs.getAttribute(PortalReservedParameters.PREFERED_LOCALE_ATTRIBUTE, true).setStringValue(JetspeedLocale.convertLocaleToString(preferedLocale));
                    userManager.updateUser(user);
                }
                catch (SecurityException e)
                {
                    logger.error("Failed to update security attributes with preferred locale.", e);
View Full Code Here

Examples of org.apache.jetspeed.security.SecurityAttributes

    }

    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());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.