Package org.apache.syncope.core.logic
Class NetworkServiceLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<EntityTO>
-
- org.apache.syncope.core.logic.NetworkServiceLogic
-
public class NetworkServiceLogic extends AbstractTransactionalLogic<EntityTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected SelfKeymasterEntityFactory
entityFactory
protected NetworkServiceDAO
serviceDAO
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description NetworkServiceLogic(NetworkServiceDAO serviceDAO, SelfKeymasterEntityFactory entityFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkService
get(NetworkService.Type serviceType)
List<NetworkService>
list(NetworkService.Type serviceType)
void
register(NetworkService networkService)
protected EntityTO
resolveReference(Method method, Object... args)
protected NetworkService
toNetworkService(NetworkService.Type serviceType, NetworkServiceEntity service)
void
unregister(NetworkService networkService)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
serviceDAO
protected final NetworkServiceDAO serviceDAO
-
entityFactory
protected final SelfKeymasterEntityFactory entityFactory
-
-
Constructor Detail
-
NetworkServiceLogic
public NetworkServiceLogic(NetworkServiceDAO serviceDAO, SelfKeymasterEntityFactory entityFactory)
-
-
Method Detail
-
toNetworkService
protected NetworkService toNetworkService(NetworkService.Type serviceType, NetworkServiceEntity service)
-
list
@PreAuthorize("@environment.getProperty(\'keymaster.username\') == authentication.name") @Transactional(readOnly=true) public List<NetworkService> list(NetworkService.Type serviceType)
-
get
@PreAuthorize("@environment.getProperty(\'keymaster.username\') == authentication.name") @Transactional(readOnly=true) public NetworkService get(NetworkService.Type serviceType)
-
register
@PreAuthorize("@environment.getProperty(\'keymaster.username\') == authentication.name") public void register(NetworkService networkService)
-
unregister
@PreAuthorize("@environment.getProperty(\'keymaster.username\') == authentication.name") public void unregister(NetworkService networkService)
-
resolveReference
protected EntityTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReference
in classAbstractLogic<EntityTO>
- Throws:
UnresolvedReferenceException
-
-