@Transactional @Service(value="permissionDomainService") public class PermissionDomainService extends de.alpharogroup.service.domain.AbstractDomainService<Integer,Permission,de.alpharogroup.user.entities.Permissions,de.alpharogroup.user.repositories.PermissionsDao,PermissionsMapper> implements PermissionService
PermissionDomainService.| Constructor and Description |
|---|
PermissionDomainService() |
| Modifier and Type | Method and Description |
|---|---|
Permission |
createAndSavePermissions(String name,
String description)
Factory method to create and save a new
Permission object. |
Permission |
createAndSavePermissions(String name,
String description,
String shortcut)
Factory method to create and save a new
Permission object. |
List<Permission> |
find(String description,
String permissionName,
String shortcut)
Find all
Permission objects by the given parameters. |
Permission |
findByName(String name)
Find the
Permission object by the given name. |
Permission |
findByShortcut(String shortcut)
Find the
Permission object by the given shortcut. |
void |
setPermissionsDao(de.alpharogroup.user.repositories.PermissionsDao permissionsDao)
Sets the specific
PermissionsDao. |
void |
setPermissionsMapper(PermissionsMapper mapper)
Sets the specific
PermissionsMapper. |
create, delete, exists, findAll, getDao, getDomainObjectClass, getEntityClass, getMapper, persist, read, setDao, setMapper, updatepublic Permission createAndSavePermissions(String name, String description)
Permission object.createAndSavePermissions in interface PermissionServicename - the namedescription - the descriptionPermission object.public Permission createAndSavePermissions(String name, String description, String shortcut)
Permission object.createAndSavePermissions in interface PermissionServicename - the namedescription - the descriptionshortcut - the shortcutPermission object.public List<Permission> find(String description, String permissionName, String shortcut)
Permission objects by the given parameters.find in interface PermissionServicedescription - the descriptionpermissionName - the permission nameshortcut - the shortcutPermission objects.public Permission findByName(String name)
Permission object by the given name.findByName in interface PermissionServicename - the namePermission object or null if not.public Permission findByShortcut(String shortcut)
Permission object by the given shortcut.findByShortcut in interface PermissionServiceshortcut - the shortcutPermission object or null if not.@Autowired public void setPermissionsDao(de.alpharogroup.user.repositories.PermissionsDao permissionsDao)
PermissionsDao.permissionsDao - the new PermissionsDao.@Autowired public void setPermissionsMapper(PermissionsMapper mapper)
PermissionsMapper.mapper - the new PermissionsMapper.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.