public boolean isEmpty() { return m_impl.isEmpty(); }
public void addMetaAttributeInfo(TableIdentifier tableIdentifier, String name, MultiMap map) { if(map!=null && !map.isEmpty()) { columnMetaAttributes.put(new TableColumnKey( tableIdentifier, name ), map); } }
public void addMetaAttributeInfo(Table table, MultiMap map) { if(map!=null && !map.isEmpty()) { tableMetaAttributes.put(TableIdentifier.create(table), map); } }
public void addMetaAttributeInfo(Table table, MultiMap map) { if(map!=null && !map.isEmpty()) { tableMetaAttributes.put(TableIdentifier.create(table), map); } }
public void addMetaAttributeInfo(TableIdentifier tableIdentifier, String name, MultiMap map) { if(map!=null && !map.isEmpty()) { columnMetaAttributes.put(new TableColumnKey( tableIdentifier, name ), map); } }
protected Map<String, MetaAttribute> columnToMetaAttributes(TableIdentifier tableIdentifier, String column) { MultiMap specific = columnMetaAttributes.get( new TableColumnKey(tableIdentifier, column) ); if(specific!=null && !specific.isEmpty()) { return toMetaAttributes(specific); } return null; }
public boolean isActive(EventType eventType) { return !(getAssociatedWorkflows(eventType, true).isEmpty() && getAssociatedNotificationSchemes(eventType).isEmpty()); }
protected Map<String, MetaAttribute> columnToMetaAttributes(TableIdentifier tableIdentifier, String column) { MultiMap specific = columnMetaAttributes.get( new TableColumnKey(tableIdentifier, column) ); if(specific!=null && !specific.isEmpty()) { return toMetaAttributes(specific); } return null; }
protected Map<String,MetaAttribute> tableToMetaAttributes(TableIdentifier identifier) { MultiMap specific = tableMetaAttributes.get( identifier ); if(specific!=null && !specific.isEmpty()) { return toMetaAttributes(specific); } Map<?,?> general = findGeneralAttributes( identifier ); if(general!=null && !general.isEmpty()) { return toMetaAttributes(general); } return null; /* inheritance not defined yet if(specific==null) { specific = Collections.EMPTY_MAP; } if(general==null) { general = Collections.EMPTY_MAP; } MultiMap map = MetaAttributeBinder.mergeMetaMaps( specific, general ); */ /* if(map!=null && !map.isEmpty()) { return toMetaAttributes(null, map); } else { return null; } */ }
private static void bindMetaAttributes(Element element, Table table, OverrideRepository repository) { MultiMap map = MetaAttributeBinder.loadAndMergeMetaMap( element, new MultiValueMap()); if(map!=null && !map.isEmpty()) { repository.addMetaAttributeInfo( table, map); } }
private static void bindMetaAttributes( Element element, Table table, OverrideRepository repository) { MultiMap map = MetaAttributeHelper.loadAndMergeMetaMap( element, new MultiValueMap()); if(map!=null && !map.isEmpty()) { repository.addMetaAttributeInfo( table, map); } }
protected Map<String,MetaAttribute> tableToMetaAttributes(TableIdentifier identifier) { MultiMap specific = tableMetaAttributes.get( identifier ); if(specific!=null && !specific.isEmpty()) { return toMetaAttributes(specific); } Map<?,?> general = findGeneralAttributes( identifier ); if(general!=null && !general.isEmpty()) { return toMetaAttributes(general); } return null; /* inheritance not defined yet if(specific==null) { specific = Collections.EMPTY_MAP; } if(general==null) { general = Collections.EMPTY_MAP; } MultiMap map = MetaAttributeBinder.mergeMetaMaps( specific, general ); */ /* if(map!=null && !map.isEmpty()) { return toMetaAttributes(null, map); } else { return null; } */ }
private static void bindTableFilters(List<?> filters, OverrideRepository respository) { Iterator<?> iterator = filters.iterator(); while(iterator.hasNext() ) { Element element = (Element) iterator.next(); TableFilter filter = new TableFilter(); filter.setMatchCatalog(element.attributeValue("match-catalog") ); filter.setMatchSchema(element.attributeValue("match-schema") ); filter.setMatchName(element.attributeValue("match-name") ); filter.setExclude(Boolean.valueOf(element.attributeValue("exclude") ) ); filter.setPackage(element.attributeValue("package") ); MultiMap map = MetaAttributeBinder.loadAndMergeMetaMap( element, new MultiValueMap()); if(map!=null && !map.isEmpty()) { filter.setMetaAttributes( map ); } else { filter.setMetaAttributes( null ); } respository.addTableFilter(filter); } }
if(map!=null && !map.isEmpty()) { repository.addMetaAttributeInfo( tableIdentifier, column.getName(), map);
if(map!=null && !map.isEmpty()) { repository.addMetaAttributeInfo( tableIdentifier, column.getName(), map);
private static void bindTableFilters( ArrayList<Element> tableFilters, OverrideRepository repository) { for (Element element : tableFilters) { TableFilter tableFilter = new TableFilter(); tableFilter.setMatchCatalog(getAttribute(element, "match-catalog")); tableFilter.setMatchSchema(getAttribute(element, "match-schema")); tableFilter.setMatchName(getAttribute(element, "match-name")); tableFilter.setExclude(Boolean.valueOf(getAttribute(element, "exclude"))); tableFilter.setPackage(getAttribute(element, "package")); MultiMap map = MetaAttributeHelper.loadAndMergeMetaMap(element, new MultiValueMap()); if (map != null && !map.isEmpty()) { tableFilter.setMetaAttributes(map); } else { tableFilter.setMetaAttributes(null); } repository.addTableFilter(tableFilter); } }
getBulkEditBean().getWorkflowTransitionMap().isEmpty())