Examples of EntityDescriptor


Examples of org.apache.deltaspike.data.impl.meta.unit.EntityDescriptor

    private final List<MappedSuperclassDescriptor> superClasses = new LinkedList<MappedSuperclassDescriptor>();

    @Before
    public void before()
    {
        entities.add(new EntityDescriptor("test", null, EntityLevel3.class.getName(), null, null));
        entities.add(new EntityDescriptor("test", null, EntityLevel5.class.getName(), null, null));

        superClasses.add(new MappedSuperclassDescriptor("test", null, MappedLevel1.class.getName(), null, "id"));
        superClasses.add(new MappedSuperclassDescriptor("test", null, MappedLevel4.class.getName(), null, null));
        superClasses.add(new MappedSuperclassDescriptor("test", null, MappedUnrelated.class.getName(), null, null));
        superClasses.add(new MappedSuperclassDescriptor("test", null, MappedLevel2.class.getName(), null, null));
View Full Code Here

Examples of org.hibernate.search.cfg.EntityDescriptor

    private void initAnnotations() {
      if ( annotationsArray == null ) {
        annotations = new HashMap<Class<? extends Annotation>, Annotation>();
        delegatesAnnotationReading();
        if ( entityType != null ) {
          final EntityDescriptor entity = mapping.getEntityDescriptor( entityType );
          if ( entity != null ) {
            if ( propertyName == null ) {
              //entityType overriding
              createIndexed( entity );
            }
            else {
              final PropertyDescriptor property = entity.getPropertyDescriptor(
                  propertyName, elementType
              );
              if ( property != null ) {
                // property name overriding
                createDocumentId( property );
View Full Code Here

Examples of org.hibernate.search.cfg.EntityDescriptor

    private void initAnnotations() {
      if ( annotationsArray == null ) {
        annotations = new HashMap<Class<? extends Annotation>, Annotation>();
        delegatesAnnotationReading();
        if ( entityType != null ) {
          final EntityDescriptor entity = mapping.getEntityDescriptor( entityType );
          if ( entity != null ) {
            if ( propertyName == null ) {
              //entityType overriding
              createIndexed( entity );
            }
            else {
              final PropertyDescriptor property = entity.getPropertyDescriptor(
                  propertyName, elementType
              );
              if ( property != null ) {
                // property name overriding
                createDocumentId( property );
View Full Code Here

Examples of org.hibernate.search.cfg.EntityDescriptor

   */
  public Map<FieldBridge, ClassBridge> getClassBridgeInstances(Class<?> type) {
    Map<FieldBridge, ClassBridge> classBridgeInstances = null;

    if ( searchMapping != null ) {
      EntityDescriptor entityDescriptor = searchMapping.getEntityDescriptor( type );
      if ( entityDescriptor != null ) {
        classBridgeInstances = entityDescriptor.getClassBridgeConfigurations();
      }
    }

    return classBridgeInstances != null ? classBridgeInstances : Collections.<FieldBridge, ClassBridge>emptyMap();
  }
View Full Code Here

Examples of org.hibernate.search.cfg.EntityDescriptor

   */
  public Map<FieldBridge, ClassBridge> getClassBridgeInstances(Class<?> type) {
    Map<FieldBridge, ClassBridge> classBridgeInstances = null;

    if ( searchMapping != null ) {
      EntityDescriptor entityDescriptor = searchMapping.getEntityDescriptor( type );
      if ( entityDescriptor != null ) {
        classBridgeInstances = entityDescriptor.getClassBridgeConfigurations();
      }
    }

    return classBridgeInstances != null ? classBridgeInstances : Collections.<FieldBridge, ClassBridge>emptyMap();
  }
View Full Code Here

Examples of org.hibernate.search.cfg.EntityDescriptor

    private void initAnnotations() {
      if ( annotationsArray == null ) {
        annotations = new HashMap<Class<? extends Annotation>, Annotation>();
        delegatesAnnotationReading();
        if ( entityType != null ) {
          final EntityDescriptor entity = mapping.getEntityDescriptor( entityType );
          if ( entity != null ) {
            if ( propertyName == null ) {
              //entityType overriding
              createIndexed( entity );
            }
            else {
              final PropertyDescriptor property = entity.getPropertyDescriptor(
                  propertyName, elementType
              );
              if ( property != null ) {
                // property name overriding
                createDocumentId( property );
View Full Code Here

Examples of org.jitterbit.integration.data.entity.EntityDescriptor

   
    private static class ToDescriptorImpl implements Function<IntegrationEntity, EntityDescriptor> {

        @Override
        public EntityDescriptor apply(IntegrationEntity e) {
            return new EntityDescriptor(e);
        }
View Full Code Here

Examples of org.jitterbit.integration.server.data.EntityDescriptor

            }
            Long dbId = guidToIdMapper.getId(entityId);
            if (dbId == null) {
                return false;
            }
            EntityDescriptor ed = new EntityDescriptor(entityId.getEntityType(), dbId);
            return hasPermissionImpl(user, ed, p, false);
        } catch (GuidToIdMappingException ex) {
            throw new AccessLookupException(ex);
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.EntityDescriptor

        if (DatatypeHelper.isEmpty(entityID)) {
            log.debug("EntityDescriptor entityID was null or empty, skipping search for it");
            return null;
        }

        EntityDescriptor descriptor = doGetEntityDescriptor(entityID);
        if (descriptor == null) {
            log.debug("Metadata document does not contain an EntityDescriptor with the ID {}", entityID);
            return null;
        } else if (!isValid(descriptor)) {
            log.debug("Metadata document contained an EntityDescriptor with the ID {}, but it was no longer valid",
View Full Code Here

Examples of org.opensaml.saml2.metadata.EntityDescriptor

     * @return the modifiable list of identified roles or an empty list if no roles exists
     *
     * @throws MetadataProviderException thrown if there is a problem searching for the roles
     */
    protected List<RoleDescriptor> doGetRole(String entityID, QName roleName) throws MetadataProviderException {
        EntityDescriptor entity = doGetEntityDescriptor(entityID);
        if (entity == null) {
            log.debug("Metadata document did not contain a descriptor for entity {}", entityID);
            return Collections.emptyList();
        }

        List<RoleDescriptor> descriptors = entity.getRoleDescriptors(roleName);
        if (descriptors != null && !descriptors.isEmpty()) {
            return new ArrayList<RoleDescriptor>(descriptors);
        }

        return Collections.emptyList();
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.