Project

General

Profile

Revision 52ea8a19

ID52ea8a198882b0795c9334cf6ac2840ac444e1b6
Parent 29d21df0
Child 1e3e61e8

Added by Andreas Müller over 3 years ago

minor and cleanup

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/ImportHelper.java
93 93
		Object strValue;
94 94
		try {
95 95
			strValue = rs.getObject(dbAttrName);
96
			if (strValue instanceof String && strValue != null){
96
			if (strValue instanceof String){
97 97
				strValue = ((String)strValue).trim();
98 98
				if (blankToNull &&  strValue.equals("")){
99 99
					strValue = null;
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IGroupService.java
21 21
import eu.etaxonomy.cdm.persistence.query.OrderHint;
22 22

  
23 23
/**
24
 * Service for {@link Group user groups}
25
 *
24 26
 * @author n.hoffmann
25 27
 * @created Mar 9, 2011
26
 * @version 1.0
27 28
 */
28 29
public interface IGroupService extends IService<Group>, GroupManager{
29 30

  
......
50 51
    public UUID saveGroup(Group group);
51 52

  
52 53

  
53

  
54 54
}
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/UserAndGroupServiceImplTest.java
180 180
        context.setAuthentication(authentication);
181 181

  
182 182

  
183
        List<GrantedAuthority> authorityList = new ArrayList<GrantedAuthority>();
183
        List<GrantedAuthority> authorityList = new ArrayList<>();
184 184
        GrantedAuthorityImpl rolePublishAthotrity = GrantedAuthorityImpl.NewInstance(null);
185 185
        rolePublishAthotrity.setAuthority(Role.ROLE_PUBLISH.toString()); // testing if creating a Role from string is working
186 186
        authorityList.add(rolePublishAthotrity);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)