com.payneteasy.superfly.common.store.UserStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of superfly-common Show documentation
Show all versions of superfly-common Show documentation
Common classes used by other Superfly libraries
package com.payneteasy.superfly.common.store;
import java.util.Collection;
import java.util.List;
import com.payneteasy.superfly.api.SSOUserWithActions;
/**
* Store for users.
*
* @author Roman Puchkovskiy
*/
public interface UserStore {
/**
* Returns a user by username.
*
* @param username username
* @return user with the given name or null if not found
*/
SSOUserWithActions getUser(String username);
/**
* Returns true if a user with the given name exists.
*
* @param username username
* @return true if exists
*/
boolean userExists(String username);
/**
* Sets users to be stored in this store.
*
* @param users users to store
*/
void setUsers(List users);
/**
* Returns an unmodifiable collection if users stored here.
*
* @return users
*/
Collection getUsers();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy