public class SecurityServiceImpl extends java.lang.Object implements SecurityService
| Constructor and Description |
|---|
SecurityServiceImpl(SecurityDao securityDao)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Policy |
createNewPolicy(java.lang.String name,
java.lang.String description) |
IkasanPrincipal |
createNewPrincipal(java.lang.String name,
java.lang.String type) |
Role |
createNewRole(java.lang.String name,
java.lang.String description) |
void |
deleteAuthenticationMethod(AuthenticationMethod authenticationMethod) |
void |
deletePolicy(Policy policy) |
void |
deletePolicyLink(PolicyLink policyLink) |
void |
deletePrincipal(IkasanPrincipal principal) |
void |
deleteRole(Role role) |
Policy |
findPolicyByName(java.lang.String name) |
IkasanPrincipal |
findPrincipalByName(java.lang.String name) |
Role |
findRoleByName(java.lang.String name) |
java.util.List<Policy> |
getAllPolicies() |
java.util.List<Policy> |
getAllPoliciesWithRole(java.lang.String roleName) |
java.util.List<PolicyLinkType> |
getAllPolicyLinkTypes() |
java.util.List<IkasanPrincipalLite> |
getAllPrincipalLites() |
java.util.List<IkasanPrincipal> |
getAllPrincipals() |
java.util.List<IkasanPrincipal> |
getAllPrincipalsWithRole(java.lang.String roleName) |
java.util.List<Role> |
getAllRoles() |
AuthenticationMethod |
getAuthenticationMethod(java.lang.Long id) |
AuthenticationMethod |
getAuthenticationMethodByOrder(long order) |
java.util.List<AuthenticationMethod> |
getAuthenticationMethods() |
long |
getNumberOfAuthenticationMethods()
Get the number of AuthenticationMethod records in the database.
|
Policy |
getPolicyById(java.lang.Long id) |
java.util.List<Policy> |
getPolicyByNameLike(java.lang.String name) |
java.util.List<IkasanPrincipal> |
getPrincipalByNameLike(java.lang.String name) |
java.util.List<IkasanPrincipal> |
getPrincipalsByName(java.util.List<java.lang.String> names) |
Role |
getRoleById(java.lang.Long id) |
java.util.List<Role> |
getRoleByNameLike(java.lang.String name) |
java.util.List<User> |
getUsersAssociatedWithPrincipal(long principalId) |
void |
saveOrUpdateAuthenticationMethod(AuthenticationMethod authenticationMethod) |
void |
savePolicy(Policy policy) |
void |
savePolicyLink(PolicyLink policyLink) |
void |
savePrincipal(IkasanPrincipal principal) |
void |
saveRole(Role role) |
public SecurityServiceImpl(SecurityDao securityDao)
securityDao - public IkasanPrincipal createNewPrincipal(java.lang.String name, java.lang.String type)
createNewPrincipal in interface SecurityServicepublic void savePrincipal(IkasanPrincipal principal)
savePrincipal in interface SecurityServicepublic Role createNewRole(java.lang.String name, java.lang.String description)
createNewRole in interface SecurityServicepublic Policy createNewPolicy(java.lang.String name, java.lang.String description)
createNewPolicy in interface SecurityServicepublic void saveRole(Role role)
saveRole in interface SecurityServicepublic void savePolicy(Policy policy)
savePolicy in interface SecurityServicepublic IkasanPrincipal findPrincipalByName(java.lang.String name)
findPrincipalByName in interface SecurityServicepublic void deletePrincipal(IkasanPrincipal principal)
deletePrincipal in interface SecurityServicepublic void deleteRole(Role role)
deleteRole in interface SecurityServicepublic void deletePolicy(Policy policy)
deletePolicy in interface SecurityServicepublic java.util.List<IkasanPrincipal> getAllPrincipals()
getAllPrincipals in interface SecurityServicepublic java.util.List<IkasanPrincipalLite> getAllPrincipalLites()
getAllPrincipalLites in interface SecurityServicepublic java.util.List<IkasanPrincipal> getPrincipalByNameLike(java.lang.String name)
getPrincipalByNameLike in interface SecurityServicepublic java.util.List<Role> getAllRoles()
getAllRoles in interface SecurityServicepublic java.util.List<Policy> getAllPolicies()
getAllPolicies in interface SecurityServicepublic void saveOrUpdateAuthenticationMethod(AuthenticationMethod authenticationMethod)
saveOrUpdateAuthenticationMethod in interface SecurityServicepublic java.util.List<AuthenticationMethod> getAuthenticationMethods()
getAuthenticationMethods in interface SecurityServicepublic Role findRoleByName(java.lang.String name)
findRoleByName in interface SecurityServicepublic Policy findPolicyByName(java.lang.String name)
findPolicyByName in interface SecurityServicepublic java.util.List<IkasanPrincipal> getAllPrincipalsWithRole(java.lang.String roleName)
getAllPrincipalsWithRole in interface SecurityServicepublic java.util.List<IkasanPrincipal> getPrincipalsByName(java.util.List<java.lang.String> names)
getPrincipalsByName in interface SecurityServicepublic java.util.List<PolicyLinkType> getAllPolicyLinkTypes()
getAllPolicyLinkTypes in interface SecurityServicepublic java.util.List<Policy> getPolicyByNameLike(java.lang.String name)
getPolicyByNameLike in interface SecurityServicepublic void savePolicyLink(PolicyLink policyLink)
savePolicyLink in interface SecurityServicepublic void deletePolicyLink(PolicyLink policyLink)
deletePolicyLink in interface SecurityServicepublic java.util.List<Policy> getAllPoliciesWithRole(java.lang.String roleName)
getAllPoliciesWithRole in interface SecurityServicepublic java.util.List<Role> getRoleByNameLike(java.lang.String name)
getRoleByNameLike in interface SecurityServicepublic AuthenticationMethod getAuthenticationMethod(java.lang.Long id)
getAuthenticationMethod in interface SecurityServicepublic void deleteAuthenticationMethod(AuthenticationMethod authenticationMethod)
deleteAuthenticationMethod in interface SecurityServicepublic long getNumberOfAuthenticationMethods()
SecurityServicegetNumberOfAuthenticationMethods in interface SecurityServicepublic AuthenticationMethod getAuthenticationMethodByOrder(long order)
getAuthenticationMethodByOrder in interface SecurityServicepublic java.util.List<User> getUsersAssociatedWithPrincipal(long principalId)
getUsersAssociatedWithPrincipal in interface SecurityServicepublic Role getRoleById(java.lang.Long id)
getRoleById in interface SecurityServicepublic Policy getPolicyById(java.lang.Long id)
getPolicyById in interface SecurityServiceCopyright © 2007-2019 Ikasan. All Rights Reserved.