Package com.blueriq.component.api
Class ProjectReference
- java.lang.Object
-
- com.blueriq.component.api.ProjectReference
-
- All Implemented Interfaces:
IProjectReference
,Serializable
- Direct Known Subclasses:
Shortcut
public class ProjectReference extends Object implements IProjectReference
Mutable project reference implementation.- Since:
- 8.0
- Author:
- Danny Roest
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProjectReference(IProjectReference other)
Copy constructorProjectReference(String projectName)
Constructs a new application request for the specified application/project.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Map<String,String[]>
getAllParameters()
This method returns all the parameters set with withsetParameters(Map)
.String
getAquimaUi()
String
getChannel()
String
getFlow()
String
getLanguageCode()
String
getParameter(String name)
This method returns the request parameter set withsetParameters(Map)
.Map<String,String[]>
getParameters()
This method returns the request parameters set withsetParameters(Map)
without the standard request parameters ("project", "flow", "version", "languageCode", "ui", "theme", "channel").String
getProjectName()
String
getTestPath()
String
getTheme()
String
getVersion()
int
hashCode()
boolean
hasPrivateAccess()
This method indicates if the project reference is private or notboolean
isDevtoolsEnabled()
void
setAquimaUi(String aquimaUi)
void
setChannel(String channel)
void
setDevtoolsEnabled(boolean devtoolsEnabled)
void
setFlow(String flow)
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
setTheme(String theme)
void
setVersion(String version)
String
toString()
String
toUrl()
String
toUrl(Map<String,String[]> parameters)
This method returns the url to start this project reference.
-
-
-
Constructor Detail
-
ProjectReference
public ProjectReference(String projectName)
Constructs a new application request for the specified application/project.- Parameters:
projectName
- the name of the application/project
-
ProjectReference
public ProjectReference(IProjectReference other)
Copy constructor- Parameters:
other
- The project reference to copy.
-
-
Method Detail
-
getProjectName
public String getProjectName()
- Specified by:
getProjectName
in interfaceIProjectReference
-
setProjectName
public void setProjectName(String projectName)
-
getVersion
public String getVersion()
- Specified by:
getVersion
in interfaceIProjectReference
-
setVersion
public void setVersion(String version)
-
getTheme
public String getTheme()
- Specified by:
getTheme
in interfaceIProjectReference
-
setTheme
public void setTheme(String theme)
-
getLanguageCode
public String getLanguageCode()
- Specified by:
getLanguageCode
in interfaceIProjectReference
-
setLanguageCode
public void setLanguageCode(String languageCode)
-
getChannel
public String getChannel()
- Specified by:
getChannel
in interfaceIProjectReference
-
setChannel
public void setChannel(String channel)
-
getFlow
public String getFlow()
- Specified by:
getFlow
in interfaceIProjectReference
-
setFlow
public void setFlow(String flow)
-
getAquimaUi
public String getAquimaUi()
- Specified by:
getAquimaUi
in interfaceIProjectReference
-
setAquimaUi
public void setAquimaUi(String aquimaUi)
-
getTestPath
public String getTestPath()
- Specified by:
getTestPath
in interfaceIProjectReference
-
setTestPath
public void setTestPath(String testPath)
-
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
public String toUrl()
-
toUrl
public String toUrl(Map<String,String[]> parameters)
Description copied from interface:IProjectReference
This method returns the url to start this project reference.- Specified by:
toUrl
in interfaceIProjectReference
- Parameters:
parameters
- The additional paramaters that should be added to the url, may be null.- Returns:
- The url to start this project reference, never null.
-
getAllParameters
public Map<String,String[]> getAllParameters()
This method returns all the parameters set with withsetParameters(Map)
.- Specified by:
getAllParameters
in interfaceIProjectReference
- Returns:
- a map all with the parameters
-
getParameters
public Map<String,String[]> 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
public void setParameters(Map<String,String[]> parameters)
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
public String getParameter(String name)
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.
-
-