public WrongAttributeValueException(Attribute attribute, Object attributeHolder, String message, Throwable cause){ super(attribute.toString() + " Set for: " + attributeHolder + " - " + message, cause); this.attribute = attribute; this.attributeHolder = attributeHolder; }
public WrongAttributeValueException(Attribute attribute, Object attributeHolder, Object attributeHolderSecondary) { super(attribute.toString() + " Set for: " + attributeHolder + " and " + attributeHolderSecondary); this.attribute = attribute; this.attributeHolder = attributeHolder; this.attributeHolderSecondary = attributeHolderSecondary; }
@Override public String toString() { return "AttributeHolders{" + "attribute=" + super.toString() + ", primaryHolder=" + primaryHolder + ", secondaryHolder=" + secondaryHolder + '}'; } }
public WrongAttributeValueException(Attribute attribute, Object attributeHolder, Object attributeHolderSecondary, String message) { super(attribute.toString() + " Set for: " + attributeHolder + " and " + attributeHolderSecondary + " - " + message); this.attribute = attribute; this.attributeHolder = attributeHolder; this.attributeHolderSecondary = attributeHolderSecondary; }
public WrongAttributeValueException(Attribute attribute, Object attributeHolder, String message){ super(attribute.toString() + " Set for: " + attributeHolder + " - " + message); this.attribute = attribute; this.attributeHolder = attributeHolder; }
public AttributeValueException(Attribute attribute, String message, Throwable cause) { super(message + " " + attribute.toString(), cause); this.attribute = attribute; }
public WrongAttributeValueException(Attribute attribute) { super(attribute.toString()); this.attribute = attribute; }
public AttributeValueException(Attribute attribute, String message) { super(message + " " + attribute.toString()); this.attribute = attribute; }
public WrongAttributeValueException(Attribute attribute, String message, Throwable cause) { super(attribute.toString() + " " + message, cause); this.attribute = attribute; }
public AttributeValueException(Attribute attribute) { super(attribute.toString()); this.attribute = attribute; }
public WrongAttributeValueException(Attribute attribute, Throwable cause) { super(attribute.toString(), cause); this.attribute = attribute; }
public WrongAttributeValueException(Attribute attribute, String message) { super(attribute.toString() + " " + message); this.attribute = attribute; }
public AttributeValueException(Attribute attribute, Throwable cause) { super(attribute.toString(), cause); this.attribute = attribute; }
@Override public String toString() { StringBuilder str = new StringBuilder(); return str.append(this.getClass().getSimpleName()).append(":[").append( (attribute == null ? "Attribute: NULL." : attribute.toString())).append( " Primary holder: ").append(primaryHolder == null ? "NULL. " : primaryHolder.toString()).append( " Secondary holder: ").append(secondaryHolder == null ? "NULL. " : secondaryHolder.toString()).append( ']').toString(); } }
User user = perun.getUsersManagerBl().getUserById(session, id); Attribute emailAttribute = perun.getAttributesManagerBl().getAttribute(session, user, "urn:perun:user:attribute-def:def:preferredMail"); if (emailAttribute != null && StringUtils.hasText(emailAttribute.toString())) { emailDto.setReceiver((String) emailAttribute.getValue());
User user = perun.getUsersManagerBl().getUserById(session, id); Attribute emailAttribute = perun.getAttributesManagerBl().getAttribute(session, user, "urn:perun:user:attribute-def:def:jabber"); if (emailAttribute != null && StringUtils.hasText(emailAttribute.toString())) { message.setTo((String) emailAttribute.getValue());