public Collection<String> getUserNames(String nameFilter, Long domainId) throws SecurityException { return (List<String>) domainPrincipalAccess.getPrincipalNames(nameFilter, getPrincipalType(), domainId); }
public boolean userExists(String userName, Long domainId) { return domainPrincipalAccess.principalExists(userName, getPrincipalType(), domainId); }
protected List<? extends JetspeedPrincipal> getPrincipals(String nameFilter, Long domainId) { return domainPrincipalAccess.getPrincipals(nameFilter, getPrincipalType(), domainId); }
public SSOUser getUser(String userName, Long domainId) throws SecurityException { SSOUser user = (SSOUser)domainPrincipalAccess.getPrincipal(userName, getPrincipalType(), domainId); if (null == user) { throw new SecurityException(SecurityException.PRINCIPAL_DOES_NOT_EXIST.createScoped(JetspeedPrincipalType.SSO_USER, userName)); } return user; }
public Collection<JetspeedPrincipal> getPortalPrincipals(SSOUser remoteUser, Long portalPrincipalDomain) { Collection<JetspeedPrincipal> principalsFound = new ArrayList<JetspeedPrincipal>(); List<JetspeedPrincipalAssociationType> assTypes = super.getAssociationTypes(); for (JetspeedPrincipalAssociationType type : assTypes) { if (type.getAssociationName().equals(IsRemoteIdentityForPrincipalAssociationHandler.ASSOCIATION_NAME)){ Collection<JetspeedPrincipal> principalsForThisType = domainPrincipalAccess.getAssociatedFrom(remoteUser.getName(), getPrincipalType(), type.getToPrincipalType(), IsRemoteIdentityForPrincipalAssociationHandler.ASSOCIATION_NAME, remoteUser.getDomainId(), portalPrincipalDomain); principalsFound.addAll(principalsForThisType); } } return principalsFound; }
private Collection<? extends JetspeedPrincipal> _getSSOUsersForPrincipal(JetspeedPrincipal principal, Long remoteSecurityDomain) throws SecurityException { return domainPrincipalAccess.getAssociatedTo(principal.getName(), getPrincipalType(), principal.getType(), IsRemoteIdentityForPrincipalAssociationHandler.ASSOCIATION_NAME, remoteSecurityDomain, principal.getDomainId()); }