@Service(value="pluginService") public class PluginService<E extends Plugin,D extends PluginDao<E>> extends PermissionAwareCrudService<E,D>
Plugin model.AbstractCrudServicepermissionCollectionServicedao, logger| Modifier | Constructor and Description |
|---|---|
|
PluginService()
Default constructor, which calls the type-constructor
|
protected |
PluginService(Class<E> entityClass)
Constructor that sets the concrete entity class for the service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(E plugin)
Removes the passed plugin from all applications and afterwards deletes the plugin itself.
|
String |
getPluginNamespace() |
String |
getPluginSource(String simpleClassName) |
List<String> |
preCheckDelete(Integer pluginId) |
void |
setApplicationService(ApplicationService<Application,ApplicationDao<Application>> applicationService)
Sets the applicationService.
|
void |
setDao(D dao)
We have to use
Qualifier to define the correct dao here. |
void |
setPluginNamespace(String pluginNamespace) |
addAndSaveGroupPermissions, addAndSaveUserPermissions, findAllUserGroupPermissionsOfUserGroup, findAllUserPermissionsOfUser, getPermissionCollectionService, removeAndSaveGroupPermissions, removeAndSaveUserPermissions, setPermissionCollectionServicefindAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById, saveOrUpdate, updatePartialWithJsonNodegetDao, getEntityClasspublic PluginService()
public String getPluginNamespace()
public void setPluginNamespace(String pluginNamespace)
pluginNamespace - the pluginNamespace to set@Transactional(readOnly=true) public String getPluginSource(String simpleClassName) throws Exception
simpleClassName - Exception@PreAuthorize(value="hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#pluginId, \'de.terrestris.shoguncore.model.Plugin\', \'DELETE\')") @Transactional(readOnly=true) public List<String> preCheckDelete(Integer pluginId)
pluginId - @PreAuthorize(value="hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#plugin, \'DELETE\')") public void delete(E plugin)
AbstractCrudService.delete(de.terrestris.shoguncore.model.PersistentObject).@Autowired @Qualifier(value="pluginDao") public void setDao(D dao)
Qualifier to define the correct dao here.
Otherwise, spring can not decide which dao has to be autowired here
as there are multiple candidates.public void setApplicationService(ApplicationService<Application,ApplicationDao<Application>> applicationService)
applicationService - Copyright © 2020 terrestris GmbH & Co. KG. All rights reserved.