Class UserAccountsDaoFiltering
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.dao.filtering.BaseFiltering
-
- edu.cornell.mannlib.vitro.webapp.dao.filtering.UserAccountsDaoFiltering
-
- All Implemented Interfaces:
UserAccountsDao
public class UserAccountsDaoFiltering extends BaseFiltering implements UserAccountsDao
This doesn't actually do any filtering. It's just a placeholder in case we decide to filter either UserAccounts or PermissionSets.
-
-
Constructor Summary
Constructors Constructor Description UserAccountsDaoFiltering(UserAccountsDao userDao, VitroFilters filters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteUserAccount(String userAccountUri)Remove the UserAccount with this URI from the model.Collection<PermissionSet>getAllPermissionSets()Get all of the PermissionSets in the model, sorted by URI.Collection<UserAccount>getAllUserAccounts()Get all of the UserAccounts in the model.PermissionSetgetPermissionSetByUri(String uri)Get the PermissionSet for this URI.UserAccountgetUserAccountByEmail(String emailAddress)Get the UserAccount for this Email address.UserAccountgetUserAccountByExternalAuthId(String externalAuthId)Get the UserAccount for this External Authentication IDUserAccountgetUserAccountByUri(String uri)Get the UserAccount for this URI.Collection<UserAccount>getUserAccountsWhoProxyForPage(String profilePageUri)Get any UserAccounts who act as proxy editors for this profile page.StringinsertUserAccount(UserAccount userAccount)Create a new UserAccount in the model.voidsetProxyAccountsOnProfile(String profilePageUri, Collection<String> userAccountUris)Set so that these UserAccounts, and only these, are authorized as proxies on this profile page.voidupdateUserAccount(UserAccount userAccount)Update the values on a UserAccount that already exists in the model.-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.dao.filtering.BaseFiltering
filter, filter
-
-
-
-
Constructor Detail
-
UserAccountsDaoFiltering
public UserAccountsDaoFiltering(UserAccountsDao userDao, VitroFilters filters)
-
-
Method Detail
-
getAllUserAccounts
public Collection<UserAccount> getAllUserAccounts()
Description copied from interface:UserAccountsDaoGet all of the UserAccounts in the model.- Specified by:
getAllUserAccountsin interfaceUserAccountsDao
-
getUserAccountByUri
public UserAccount getUserAccountByUri(String uri)
Description copied from interface:UserAccountsDaoGet the UserAccount for this URI.- Specified by:
getUserAccountByUriin interfaceUserAccountsDao- Returns:
- null if the URI is null, or if there is no such UserAccount
-
getUserAccountByEmail
public UserAccount getUserAccountByEmail(String emailAddress)
Description copied from interface:UserAccountsDaoGet the UserAccount for this Email address.- Specified by:
getUserAccountByEmailin interfaceUserAccountsDao- Returns:
- null if the Email address is null, or if there is no such UserAccount
-
getUserAccountByExternalAuthId
public UserAccount getUserAccountByExternalAuthId(String externalAuthId)
Description copied from interface:UserAccountsDaoGet the UserAccount for this External Authentication ID- Specified by:
getUserAccountByExternalAuthIdin interfaceUserAccountsDao- Returns:
- null if the ID is null, or if there is no such UserAccount
-
getUserAccountsWhoProxyForPage
public Collection<UserAccount> getUserAccountsWhoProxyForPage(String profilePageUri)
Description copied from interface:UserAccountsDaoGet any UserAccounts who act as proxy editors for this profile page.- Specified by:
getUserAccountsWhoProxyForPagein interfaceUserAccountsDao
-
insertUserAccount
public String insertUserAccount(UserAccount userAccount)
Description copied from interface:UserAccountsDaoCreate a new UserAccount in the model. On entry, the URI of the UserAccount should be empty. On exit, the URI which was created for this UserAccount will be stored in the UserAccount, as well as being returned by the method. Does not confirm that PermissionSet objects already exist for the PermissionSet URIs referenced by the UserAcocunt.- Specified by:
insertUserAccountin interfaceUserAccountsDao
-
updateUserAccount
public void updateUserAccount(UserAccount userAccount)
Description copied from interface:UserAccountsDaoUpdate the values on a UserAccount that already exists in the model. Does not confirm that PermissionSet objects already exist for the PermissionSet URIs referenced by the UserAcocunt.- Specified by:
updateUserAccountin interfaceUserAccountsDao
-
deleteUserAccount
public void deleteUserAccount(String userAccountUri)
Description copied from interface:UserAccountsDaoRemove the UserAccount with this URI from the model. If the URI is null, or if no UserAccount with this URI is found in the model, no action is taken.- Specified by:
deleteUserAccountin interfaceUserAccountsDao
-
setProxyAccountsOnProfile
public void setProxyAccountsOnProfile(String profilePageUri, Collection<String> userAccountUris)
Description copied from interface:UserAccountsDaoSet so that these UserAccounts, and only these, are authorized as proxies on this profile page.- Specified by:
setProxyAccountsOnProfilein interfaceUserAccountsDao
-
getPermissionSetByUri
public PermissionSet getPermissionSetByUri(String uri)
Description copied from interface:UserAccountsDaoGet the PermissionSet for this URI.- Specified by:
getPermissionSetByUriin interfaceUserAccountsDao- Returns:
- null if the URI is null, or if there is no such PermissionSet.
-
getAllPermissionSets
public Collection<PermissionSet> getAllPermissionSets()
Description copied from interface:UserAccountsDaoGet all of the PermissionSets in the model, sorted by URI.- Specified by:
getAllPermissionSetsin interfaceUserAccountsDao- Returns:
- a collection which might be empty, but is never null.
-
-