Package org.openengsb.core.services.internal.security.model

Examples of org.openengsb.core.services.internal.security.model.EntryElement


            for (Node property : permission.getChildren()) {

                List<EntryElement> entryElements = new LinkedList<EntryElement>();
                TimebasedOrderFilter.sortByIdNode(property.getChildren());
                for (Node propertyValue : property.getChildren()) {
                    EntryElement entryElement = new EntryElement();
                    entryElement.setType(LdapUtils.extractAttributeEmptyCheck(propertyValue.getEntry(),
                            SchemaConstants.JAVA_CLASS_NAME_ATTRIBUTE));
                    entryElement.setValue(LdapUtils.extractAttributeEmptyCheck(propertyValue.getEntry(),
                            SchemaConstants.STRING_ATTRIBUTE));
                    entryElements.add(entryElement);
                }
                String key = LdapUtils.extractAttributeEmptyCheck(property.getEntry(), SchemaConstants.CN_ATTRIBUTE);
                EntryValue entryValue = new EntryValue(key, entryElements);
View Full Code Here


    private List<Object> extractUserAttributeValues(List<Entry> entries) {
        List<EntryElement> entryElements = new LinkedList<EntryElement>();
        for (Entry entry : entries) {
            String type = LdapUtils.extractAttributeEmptyCheck(entry, SchemaConstants.JAVA_CLASS_NAME_ATTRIBUTE);
            String value = LdapUtils.extractAttributeEmptyCheck(entry, SchemaConstants.STRING_ATTRIBUTE);
            entryElements.add(new EntryElement(type, value));
        }
        return EntryUtils.convertAllEntryElementsToObject(entryElements);
    }
View Full Code Here

     */
    public static List<EntryElement> makeEntryElementList(Object... value) {
        List<EntryElement> valueElements = new ArrayList<EntryElement>();
        for (Object o : value) {
            Class<?> type = ClassUtils.primitiveToWrapper(o.getClass());
            EntryElement entryElement = new EntryElement(type.getName(), o.toString());
            valueElements.add(entryElement);
        }
        return valueElements;
    }
View Full Code Here

    /**
     * converts an Object to an {@link EntryElement} so its Bean-data can be saved to the DB
     */
    public static EntryElement makeEntryElement(Object value) {
        Class<?> type = ClassUtils.primitiveToWrapper(value.getClass());
        return new EntryElement(type.getName(), value.toString());
    }
View Full Code Here

        }
        return result;
    }

    private static EntryElement transformObjectToEntryElement(Object o) {
        return new EntryElement(o.getClass().getName(), o.toString());
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.services.internal.security.model.EntryElement

Copyright © 2018 www.massapicom. 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.