|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SiteManager
Method Summary | |
---|---|
void |
addRPAddressRestriction(AddressRestriction restriction)
|
SiteApproval |
createApprovalFromWhitelist(User user,
String url)
Generate approval if this site is configured in the server's white list, otherwise return null . |
List |
findAllRPAddressRestrictions()
Finds all of the whitelist or blacklist server approvals. |
List |
getAllAlwaysAllowSites(User user)
Returns all the sites marked 'always allow' for a user. |
Site |
getSite(String url)
Gets the Site object corresponding to the URL or creates a Site object corresponding to the URL. |
SiteApproval |
getSiteApproval(User user,
String url)
Gets the SiteApproval of a user for a URL. |
boolean |
isSiteAllowedToAuthenticate(URL url)
Determines is a URL is allowed to authenticate. |
void |
removeAllRPAddressRestrictions()
|
void |
removeRPAddressRestriction(String address)
|
void |
removeSiteApproval(SiteApproval approval)
Removes an allow always approval from the database. |
SiteApproval |
setSiteApproval(User user,
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 |
updateAlwaysAllowApprovals(User user,
List urls,
List profileIDs)
Updates which sites are always allowed to authenticate. |
Method Detail |
---|
SiteApproval getSiteApproval(User user, String url)
user
- user to search in.url
- URL of Site in SiteApproval.
SiteApproval createApprovalFromWhitelist(User user, String url)
null
.
user
- url
-
null
Site getSite(String url)
url
- URL of the Site.
SiteApproval setSiteApproval(User user, String url, long profileID, boolean alwaysAllow) throws SiteManagerException
user
- 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.List getAllAlwaysAllowSites(User user)
user
- user to search for.
void updateAlwaysAllowApprovals(User user, List urls, List profileIDs) throws SiteManagerException
user
- 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.List findAllRPAddressRestrictions()
OpenIDPropertyManager.getTrustRelationShipMode()
void addRPAddressRestriction(AddressRestriction restriction)
void removeAllRPAddressRestrictions()
void removeRPAddressRestriction(String address)
boolean isSiteAllowedToAuthenticate(URL url)
url
- url of the site.
void removeSiteApproval(SiteApproval approval)
approval
- The site approval to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |