|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.openid.server.manager.site.SiteManagerGeneric
public class SiteManagerGeneric
| Constructor Summary | |
|---|---|
SiteManagerGeneric()
|
|
| Method Summary | |
|---|---|
void |
addRPAddressRestriction(AddressRestriction restriction)
|
java.util.List |
findAllRPAddressRestrictions()
Finds all of the whitelist or blacklist server approvals. |
java.util.List |
getAllAlwaysAllowSites(User user)
Returns all the sites marked 'always allow' for a user. |
AuthRecordDAO |
getAuthRecordDAO()
|
ProfileManager |
getProfileManager()
|
Site |
getSite(java.lang.String url)
Gets the Site object corresponding to the URL or creates a Site object corresponding to the URL. |
SiteApproval |
getSiteApproval(User user,
java.lang.String url)
Gets the SiteApproval of a user for a URL. |
SiteApprovalDAO |
getSiteApprovalDAO()
|
SiteDAO |
getSiteDAO()
|
boolean |
isSiteAllowedToAuthenticate(java.net.URL url)
Determines is a URL is allowed to authenticate. |
void |
removeAllRPAddressRestrictions()
|
void |
removeRPAddressRestriction(java.lang.String address)
|
void |
removeSiteApproval(SiteApproval approval)
Removes an allow always approval from the database. |
void |
setAddressRestrictionDAO(AddressRestrictionDAO addressRestrictionDAO)
|
void |
setAuthRecordDAO(AuthRecordDAO authRecordDAO)
|
void |
setOpenIDPropertyManager(OpenIDPropertyManager openIDPropertyManager)
|
void |
setProfileManager(ProfileManager profileManager)
|
SiteApproval |
setSiteApproval(User user,
java.lang.String url,
long profileID,
boolean alwaysAllow)
Updates or creates site approval for a particular site (URL) associated with a user and a profile of that user. |
void |
setSiteApprovalDAO(SiteApprovalDAO siteApprovalDAO)
|
void |
setSiteDAO(SiteDAO siteDAO)
|
void |
updateAlwaysAllowApprovals(User user,
java.util.List urls,
java.util.List profileIDs)
Updates which sites are always allowed to authenticate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SiteManagerGeneric()
| Method Detail |
|---|
public SiteApproval getSiteApproval(User user,
java.lang.String url)
getSiteApproval in interface SiteManageruser - user to search in.url - URL of Site in SiteApproval.
public Site getSite(java.lang.String url)
getSite in interface SiteManagerurl - URL of the Site.
public SiteApproval setSiteApproval(User user,
java.lang.String url,
long profileID,
boolean alwaysAllow)
throws SiteManagerException
setSiteApproval in interface SiteManageruser - user to associate to.url - URL of site.profileID - default profile to use for attribute information when interacting with site.alwaysAllow - true if authentication with this site is always allowed.
SiteManagerException - thrown if profile with given profileID does not exist OR user does not own profile.public java.util.List getAllAlwaysAllowSites(User user)
getAllAlwaysAllowSites in interface SiteManageruser - user to search for.
public void updateAlwaysAllowApprovals(User user,
java.util.List urls,
java.util.List profileIDs)
throws SiteManagerException
updateAlwaysAllowApprovals in interface SiteManageruser - user to update.urls - list of URLS of sites.profileIDs - corresponding list of default profile IDs for the sites.
SiteManagerException - thrown if URL/ProfileID lists are null or not the same size OR profile with given profileID does not exist OR user does not own profile.public java.util.List findAllRPAddressRestrictions()
SiteManager
findAllRPAddressRestrictions in interface SiteManagerOpenIDPropertyManager.getTrustRelationShipMode()public void addRPAddressRestriction(AddressRestriction restriction)
addRPAddressRestriction in interface SiteManagerpublic void removeAllRPAddressRestrictions()
removeAllRPAddressRestrictions in interface SiteManagerpublic void removeRPAddressRestriction(java.lang.String address)
removeRPAddressRestriction in interface SiteManagerpublic boolean isSiteAllowedToAuthenticate(java.net.URL url)
isSiteAllowedToAuthenticate in interface SiteManagerurl - url of the site.
public void removeSiteApproval(SiteApproval approval)
SiteManager
removeSiteApproval in interface SiteManagerapproval - The site approval to remove.public SiteDAO getSiteDAO()
public void setSiteDAO(SiteDAO siteDAO)
public ProfileManager getProfileManager()
public void setProfileManager(ProfileManager profileManager)
public SiteApprovalDAO getSiteApprovalDAO()
public void setSiteApprovalDAO(SiteApprovalDAO siteApprovalDAO)
public AuthRecordDAO getAuthRecordDAO()
public void setAuthRecordDAO(AuthRecordDAO authRecordDAO)
public void setAddressRestrictionDAO(AddressRestrictionDAO addressRestrictionDAO)
public void setOpenIDPropertyManager(OpenIDPropertyManager openIDPropertyManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||