|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.harvester.webinterface.DomainDefinition
public class DomainDefinition
Utility class for handling update of domain from the domain jsp page.
Method Summary | |
---|---|
static java.util.List<java.lang.String> |
createDomains(java.lang.String... domains)
Creates domains with default attributes. |
static java.lang.String |
createDomainUrlWithFlippedShowConfigurations(javax.servlet.ServletRequest request)
Creates a url based on the supplied request where all the parameters are the same, except the ShowUnusedConfigurations boolean, which is flipped. |
static java.lang.String |
createDomainUrlWithFlippedShowSeeds(javax.servlet.ServletRequest request)
Creates a url based on the supplied request where all the parameters are the same, except the ShowUnusedSeedLists boolean, which is flipped. |
static java.util.List<java.lang.String> |
getDomains(javax.servlet.jsp.PageContext context,
I18n i18n,
java.lang.String searchQuery,
java.lang.String searchType)
Search for domains matching the following criteria. |
static java.util.List<SeedList> |
getSeedLists(java.util.List<DomainConfiguration> configurations)
Returnes the seed lists associated with the supplied configurations. |
static java.util.List<DomainConfiguration> |
getUsedConfiguration(Domain domain,
java.util.Locale locale)
Returns the list of domain configurations which are either used in a concrete harvest or is a 'default configuration'. |
static java.lang.String |
makeDomainLink(java.lang.String domain)
Creates a link to the domain edit page. |
static void |
processRequest(javax.servlet.jsp.PageContext context,
I18n i18n)
Extracts all required parameters from the request, checks for any inconsistencies, and passes the requisite data to the updateDomain method for processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void processRequest(javax.servlet.jsp.PageContext context, I18n i18n)
context
- The context of this requesti18n
- I18n information
IOFailure
- on updateerrors in the DAO
ForwardedToErrorPage
- if domain is not found, if the edition is
out-of-date, or if parameters are missing or invalidpublic static java.util.List<java.lang.String> createDomains(java.lang.String... domains)
domains
- a list of domain names
public static java.lang.String makeDomainLink(java.lang.String domain)
domain
- The domain to show with a link
public static java.lang.String createDomainUrlWithFlippedShowConfigurations(javax.servlet.ServletRequest request)
ShowUnusedConfigurations
boolean, which is flipped.
request
- The original 'create domain' request to based the new url on.
ShowUnusedConfigurations
boolean switched.public static java.lang.String createDomainUrlWithFlippedShowSeeds(javax.servlet.ServletRequest request)
ShowUnusedSeedLists
boolean, which is flipped.
request
- The original 'create domain' request to based the new url on.
ShowUnusedSeedLists
boolean switched.public static java.util.List<java.lang.String> getDomains(javax.servlet.jsp.PageContext context, I18n i18n, java.lang.String searchQuery, java.lang.String searchType)
context
- the context of the JSP page callingi18n
- The translation properties file usedsearchQuery
- The given searchQuery for searching for among the domains.searchType
- The given searchCriteria (TODO use Enum instead)
public static java.util.List<DomainConfiguration> getUsedConfiguration(Domain domain, java.util.Locale locale)
domain
- The domain to find the used configurations for.locale
- The locale to base the sorting on
public static java.util.List<SeedList> getSeedLists(java.util.List<DomainConfiguration> configurations)
configurations
- The configurations to find seed lists for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |