Commit 158fe5b8 authored by michael.simon's avatar michael.simon
Browse files

create generic attribute source services for frontend

parent 08ac1026
/*******************************************************************************
* Copyright (c) 2014 Michael Simon.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.service;
import edu.kit.scc.webreg.entity.as.AttributeSourceEntity;
public interface AttributeSourceService extends BaseService<AttributeSourceEntity, Long> {
}
/*******************************************************************************
* Copyright (c) 2014 Michael Simon.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.service.impl;
import javax.ejb.Stateless;
import javax.inject.Inject;
import edu.kit.scc.webreg.dao.BaseDao;
import edu.kit.scc.webreg.dao.as.AttributeSourceDao;
import edu.kit.scc.webreg.entity.as.AttributeSourceEntity;
import edu.kit.scc.webreg.service.AttributeSourceService;
@Stateless
public class AttributeSourceServiceImpl extends BaseServiceImpl<AttributeSourceEntity, Long> implements AttributeSourceService {
private static final long serialVersionUID = 1L;
@Inject
private AttributeSourceDao dao;
@Override
protected BaseDao<AttributeSourceEntity, Long> getDao() {
return dao;
}
}
......@@ -6,7 +6,7 @@ import edu.kit.scc.webreg.entity.UserEntity;
import edu.kit.scc.webreg.entity.as.AttributeSourceEntity;
import edu.kit.scc.webreg.exc.RegisterException;
public interface AttributeSourceService extends Serializable {
public interface AttributeSourceQueryService extends Serializable {
void updateUserAttributes(UserEntity user,
AttributeSourceEntity attributeSource, String executor)
......
......@@ -17,10 +17,10 @@ import edu.kit.scc.webreg.entity.UserEntity;
import edu.kit.scc.webreg.entity.as.ASUserAttrEntity;
import edu.kit.scc.webreg.entity.as.AttributeSourceEntity;
import edu.kit.scc.webreg.exc.RegisterException;
import edu.kit.scc.webreg.service.reg.AttributeSourceService;
import edu.kit.scc.webreg.service.reg.AttributeSourceQueryService;
@Stateless
public class AttributeSourceServiceImpl implements AttributeSourceService {
public class AttributeSourceQueryServiceImpl implements AttributeSourceQueryService {
private static final long serialVersionUID = 1L;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment