Package com.blueriq.component.api
Class ProjectReference
java.lang.Object
com.blueriq.component.api.ProjectReference
- All Implemented Interfaces:
IProjectReference
,Serializable
- Direct Known Subclasses:
Shortcut
Mutable project reference implementation.
- Since:
- 8.0
- Author:
- Danny Roest
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCopy constructorProjectReference
(String projectName) Constructs a new application request for the specified application/project. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns all the parameters set with withsetParameters(Map)
.getFlow()
getParameter
(String name) This method returns the request parameter set withsetParameters(Map)
.This method returns the request parameters set withsetParameters(Map)
without the standard request parameters ("project", "flow", "version", "languageCode", "ui", "theme", "channel").getTheme()
int
hashCode()
boolean
This method indicates if the project reference is private or notboolean
void
setAquimaUi
(String aquimaUi) void
setChannel
(String channel) void
setDevtoolsEnabled
(boolean devtoolsEnabled) void
void
setLanguageCode
(String languageCode) void
setParameters
(Map<String, String[]> parameters) This method sets the (additional) parameters from the request (often an httpServletRequest).void
setPrivateAccess
(boolean privateAccess) void
setProjectName
(String projectName) void
setTestPath
(String testPath) void
void
setVersion
(String version) toString()
toUrl()
This method returns the url to start this project reference.
-
Constructor Details
-
ProjectReference
Constructs a new application request for the specified application/project.- Parameters:
projectName
- the name of the application/project
-
ProjectReference
Copy constructor- Parameters:
other
- The project reference to copy.
-
-
Method Details
-
getProjectName
- Specified by:
getProjectName
in interfaceIProjectReference
-
setProjectName
-
getVersion
- Specified by:
getVersion
in interfaceIProjectReference
-
setVersion
-
getTheme
- Specified by:
getTheme
in interfaceIProjectReference
-
setTheme
-
getLanguageCode
- Specified by:
getLanguageCode
in interfaceIProjectReference
-
setLanguageCode
-
getChannel
- Specified by:
getChannel
in interfaceIProjectReference
-
setChannel
-
getFlow
- Specified by:
getFlow
in interfaceIProjectReference
-
setFlow
-
getAquimaUi
- Specified by:
getAquimaUi
in interfaceIProjectReference
-
setAquimaUi
-
getTestPath
- Specified by:
getTestPath
in interfaceIProjectReference
-
setTestPath
-
isDevtoolsEnabled
public boolean isDevtoolsEnabled()- Specified by:
isDevtoolsEnabled
in interfaceIProjectReference
-
setDevtoolsEnabled
public void setDevtoolsEnabled(boolean devtoolsEnabled) -
hasPrivateAccess
public boolean hasPrivateAccess()Description copied from interface:IProjectReference
This method indicates if the project reference is private or not- Specified by:
hasPrivateAccess
in interfaceIProjectReference
- Returns:
- a boolean value
-
setPrivateAccess
public void setPrivateAccess(boolean privateAccess) -
toUrl
-
toUrl
Description copied from interface:IProjectReference
This method returns the url to start this project reference.- Specified by:
toUrl
in interfaceIProjectReference
- Parameters:
parameters
- The additional parameters that should be added to the url, may be null.- Returns:
- The url to start this project reference, never null.
-
getAllParameters
This method returns all the parameters set with withsetParameters(Map)
.- Specified by:
getAllParameters
in interfaceIProjectReference
- Returns:
- a map all with the parameters
-
getParameters
This method returns the request parameters set withsetParameters(Map)
without the standard request parameters ("project", "flow", "version", "languageCode", "ui", "theme", "channel").- Specified by:
getParameters
in interfaceIProjectReference
- Returns:
- a map with the parameters
-
setParameters
This method sets the (additional) parameters from the request (often an httpServletRequest). These parameters can be used as parameters for a flow.- Parameters:
parameters
- the parameters
-
getParameter
This method returns the request parameter set withsetParameters(Map)
. If the parameters contains multiple values, the first will be returned.- Specified by:
getParameter
in interfaceIProjectReference
- Parameters:
name
- The name of the parameter.- Returns:
- The single value parameter, may be null.
-
toString
-
hashCode
public int hashCode() -
equals
-