Package com.soffid.iam.service
Class CrudRegistryServiceBase
- java.lang.Object
-
- com.soffid.iam.service.CrudRegistryServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.CrudRegistryService
- Direct Known Subclasses:
CrudRegistryServiceImpl
public abstract class CrudRegistryServiceBase extends Object implements com.soffid.iam.service.CrudRegistryService
Spring Service base class for
see com.soffid.iam.service.CrudRegistryServicecom.soffid.iam.service.CrudRegistryService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description CrudRegistryServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <E> com.soffid.iam.api.CrudHandler<E>getHandler(Class<E> cl)<E> com.soffid.iam.api.CrudHandler<E>getHandler(String className)protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.protected abstract <E> com.soffid.iam.api.CrudHandler<E>handleGetHandler(Class<E> cl)protected abstract <E> com.soffid.iam.api.CrudHandler<E>handleGetHandler(String className)protected abstract voidhandleRegisterDefaultHandlers()protected abstract <E> voidhandleRegisterHandler(Class<E> cl, com.soffid.iam.api.CrudHandler<E> handler)voidregisterDefaultHandlers()<E> voidregisterHandler(Class<E> cl, com.soffid.iam.api.CrudHandler<E> handler)
-
-
-
Method Detail
-
getHandler
@Transactional(rollbackFor=java.lang.Exception.class) public <E> com.soffid.iam.api.CrudHandler<E> getHandler(Class<E> cl) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getHandlerin interfacecom.soffid.iam.service.CrudRegistryService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetHandler
protected abstract <E> com.soffid.iam.api.CrudHandler<E> handleGetHandler(Class<E> cl) throws Exception
- Throws:
Exception
-
getHandler
@Transactional(rollbackFor=java.lang.Exception.class) public <E> com.soffid.iam.api.CrudHandler<E> getHandler(String className) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getHandlerin interfacecom.soffid.iam.service.CrudRegistryService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetHandler
protected abstract <E> com.soffid.iam.api.CrudHandler<E> handleGetHandler(String className) throws Exception
- Throws:
Exception
-
registerDefaultHandlers
@Transactional(rollbackFor=java.lang.Exception.class) public void registerDefaultHandlers() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
registerDefaultHandlersin interfacecom.soffid.iam.service.CrudRegistryService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRegisterDefaultHandlers
protected abstract void handleRegisterDefaultHandlers() throws Exception- Throws:
Exception
-
registerHandler
@Transactional(rollbackFor=java.lang.Exception.class) public <E> void registerHandler(Class<E> cl, com.soffid.iam.api.CrudHandler<E> handler) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
registerHandlerin interfacecom.soffid.iam.service.CrudRegistryService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRegisterHandler
protected abstract <E> void handleRegisterHandler(Class<E> cl, com.soffid.iam.api.CrudHandler<E> handler) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-