Project

General

Profile

« Previous | Next » 

Revision cfdb11fc

Added by Andreas Müller almost 2 years ago

cleanup

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/agent/Team.java
347 347

  
348 348
    //#4311
349 349
    @Override
350
    public String getCollectorTitleCache() {
350
    public String getCollectorTitleCache(){
351 351
        if (protectedCollectorTitleCache == PROTECTED){
352 352
            return this.collectorTitleCache;
353 353
        }
......
355 355
            this.collectorTitleCache = cacheStrategy().getCollectorTitleCache(this);
356 356
        }else{
357 357
            try {
358

  
358 359
                //as long as team members do not inform the team about changes the cache must be created new each time
359 360
                collectorTitleCache = cacheStrategy().getCollectorTitleCache(this);
360 361
            } catch (Exception e) {
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/json/util/InitializedHibernatePropertyFilter.java
1 1
/**
2 2
 * Copyright (C) 2007 EDIT
3
 * European Distributed Institute of Taxonomy 
3
 * European Distributed Institute of Taxonomy
4 4
 * http://www.e-taxonomy.eu
5
 * 
5
 *
6 6
 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
 * See LICENSE.TXT at the top of this package for the full license terms.
8 8
 */
9

  
10 9
package eu.etaxonomy.cdm.remote.json.util;
11 10

  
12
import net.sf.json.util.PropertyFilter;
13

  
14
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
11
import org.apache.logging.log4j.LogManager;
12
import org.apache.logging.log4j.Logger;
15 13
import org.hibernate.Hibernate;
16 14

  
15
import net.sf.json.util.PropertyFilter;
16

  
17 17
public class InitializedHibernatePropertyFilter implements PropertyFilter {
18 18

  
19 19
	private static final Logger logger = LogManager.getLogger(InitializedHibernatePropertyFilter.class);
20 20

  
21
	/* (non-Javadoc)
22
	 * @see net.sf.json.util.PropertyFilter#apply(java.lang.Object, java.lang.String, java.lang.Object)
23
	 */
24
	public boolean apply(Object source, String name, Object value) {
21
	@Override
22
    public boolean apply(Object source, String name, Object value) {
25 23
		if (logger.isDebugEnabled()) {
26 24
			logger.debug("Property " + name + " : Hibernate.isInitialized? " + Hibernate.isInitialized(value));
27 25
		}

Also available in: Unified diff