Package org.apache.syncope.core.persistence.beans.user

Examples of org.apache.syncope.core.persistence.beans.user.UAttr.addValue()


        assertNotNull(obscureSchema.getSecretKey());
        assertNotNull(obscureSchema.getCipherAlgorithm());

        UAttr attribute = new UAttr();
        attribute.setSchema(obscureSchema);
        attribute.addValue("testvalue", AttributableUtil.getInstance(AttributableType.USER));
        attribute.setOwner(user);
        user.addAttr(attribute);

        userDAO.save(user);
View Full Code Here


        new Random().nextBytes(bytes);
        final String photoB64Value = new String(Base64.encode(bytes), SyncopeConstants.DEFAULT_ENCODING);

        UAttr attribute = new UAttr();
        attribute.setSchema(photoSchema);
        attribute.addValue(photoB64Value, AttributableUtil.getInstance(AttributableType.USER));
        attribute.setOwner(user);
        user.addAttr(attribute);

        userDAO.save(user);
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.