|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.jdbc.handlers.RequestContext
public class RequestContext
Objects of this class contains the information about the current request to the registry. All attributes of such objects should be either null or should contain a *valid" value. That is, if an attribute contains a non-null value it is safe to assume that attribute contains a valid value as mentioned by the javadoc of that attribute.
Constructor Summary | |
---|---|
RequestContext(Registry registry,
Repository repository,
VersionRepository versionRepository)
Construct the request context. |
Method Summary | |
---|---|
String |
getAction()
Method to get the Action. |
String |
getActualPath()
Method to get the Actual Path. |
Aspect |
getAspect()
Method to get the Aspect. |
String |
getAssociationType()
Method to get the Association Type. |
Comment |
getComment()
Method to get the Comment. |
Reader |
getDumpingReader()
Method to get the Dumping Reader. |
Writer |
getDumpingWriter()
Method to get the Dumping Writer. |
String |
getHandlerExecutionIdString()
Method to get the Handler Execution Id |
Map<String,List<String[]>> |
getHandlerExecutionStatusMap()
Method to get the HandlerExecutionStatusMap. |
String |
getKeywords()
Method to get the Keywords. |
Association[] |
getOldAssociationsOnSource()
Method to get the Old Associations On Source. |
Association[] |
getOldAssociationsOnTarget()
Method to get the Old Associations On Target. |
float |
getOldAverageRating()
Method to get the Old Average Rating. |
Comment[] |
getOldComments()
Method to get the Old Comments. |
int |
getOldRating()
Method to get the Old Rating. |
Resource |
getOldResource()
Method to get the Old Resource. |
Tag[] |
getOldTags()
Method to get the Old Tags. |
Collection |
getParentCollection()
Method to get the Parent Collection. |
String |
getParentPath()
Method to get the Parent Path. |
Object |
getProperty(String name)
Method to get the Property by name. |
Map |
getQueryParameters()
Method to get the Query Parameters. |
int |
getRating()
Method to get the Rating. |
Registry |
getRegistry()
Method to get the Registry. |
RegistryContext |
getRegistryContext()
Method to get the Registry Context. |
Repository |
getRepository()
Method to get the Repository. |
Resource |
getResource()
Method to get the Resource. |
ResourcePath |
getResourcePath()
Method to get the Resource Path. |
String |
getSourcePath()
Method to get the Source Path. |
String |
getSourceURL()
Method to get the Source URL. |
Registry |
getSystemRegistry()
Method to get the System Registry. |
String |
getTag()
Method to get the Tag. |
String |
getTargetPath()
Method to get the Target Path. |
String |
getTargetSubPath()
Method to get the Target Sub Path. |
String |
getUserName()
Method to get the User Name. |
String |
getVersionPath()
Method to get the Version Path. |
VersionRepository |
getVersionRepository()
Method to get the Version Repository. |
boolean |
isExecutionStatusSet(Handler handler)
Check whether the execution status is set. |
boolean |
isProcessingComplete()
Method to determine whether processing is complete or not. |
boolean |
isSimulation()
Check whether this is running in simulation mode |
void |
setAction(String action)
Method to set Action. |
void |
setActualPath(String actualPath)
Method to set Actual Path. |
void |
setAspect(Aspect aspect)
Method to set Aspect. |
void |
setAssociationType(String associationType)
Method to set Association Type. |
void |
setComment(Comment comment)
Method to set Comment. |
void |
setDumpingReader(Reader dumpingReader)
Method to set Dumping Reader. |
void |
setDumpingWriter(Writer dumpingWriter)
Method to set Dumping Writer. |
void |
setExecutionStatus(Handler handler,
boolean status)
Method to set Execution Status. |
void |
setExecutionStatus(Handler handler,
Throwable exception)
Method to set Execution Status. |
void |
setKeywords(String keywords)
Method to set Keywords. |
void |
setOldAssociationsOnSource(Association[] oldAssociationsOnSource)
Method to set Old Associations On Source. |
void |
setOldAssociationsOnTarget(Association[] oldAssociationsOnTarget)
Method to set Old Associations On Target. |
void |
setOldAverageRating(float oldAverageRating)
Method to set Old Average Rating. |
void |
setOldComments(Comment[] oldComments)
Method to set Old Comments. |
void |
setOldRating(int oldRating)
Method to set Old Rating. |
void |
setOldResource(Resource oldResource)
Method to set Old Resource. |
void |
setOldTags(Tag[] oldTags)
Method to set Old Tags. |
void |
setParentCollection(Collection parentCollection)
Method to set Parent Collection. |
void |
setParentPath(String parentPath)
Method to set Parent Path. |
void |
setProcessingComplete(boolean processingComplete)
Method to set Processing Complete. |
void |
setProperty(String name,
Object value)
Method to set Property. |
void |
setQueryParameters(Map queryParameters)
Method to set Query Parameters. |
void |
setRating(int rating)
Method to set Rating. |
void |
setRegistryContext(RegistryContext registryContext)
Method to set Registry Context. |
void |
setResource(Resource resource)
Method to set Resource. |
void |
setResourcePath(ResourcePath resourcePath)
Method to set Resource Path. |
void |
setSourcePath(String sourcePath)
Method to set Source Path. |
void |
setSourceURL(String sourceURL)
Method to set Source URL. |
void |
setTag(String tag)
Method to set Tag. |
void |
setTargetPath(String targetPath)
Method to set Target Path. |
void |
setTargetSubPath(String targetSubPath)
Method to set Target Sub Path. |
void |
setUserName(String userName)
Method to set User Name. |
void |
setVersionPath(String versionPath)
Method to set Version Path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestContext(Registry registry, Repository repository, VersionRepository versionRepository)
registry
- the registryrepository
- the repository.versionRepository
- the version repository.Method Detail |
---|
public Registry getRegistry()
public Registry getSystemRegistry() throws RegistryException
RegistryException
- if the operation failed.public Repository getRepository()
public VersionRepository getVersionRepository()
public boolean isProcessingComplete()
public void setProcessingComplete(boolean processingComplete)
processingComplete
- the Processing Complete.public ResourcePath getResourcePath()
public void setResourcePath(ResourcePath resourcePath)
resourcePath
- the Resource Path.public String getSourceURL()
public void setSourceURL(String sourceURL)
sourceURL
- the Source URL.public String getActualPath()
public void setActualPath(String actualPath)
actualPath
- the Actual Path.public Resource getResource()
public void setResource(Resource resource)
resource
- the Resource.public String getParentPath()
public void setParentPath(String parentPath)
parentPath
- the Parent Path.public Aspect getAspect()
public void setAspect(Aspect aspect)
aspect
- the Aspect.public String getAction()
public void setAction(String action)
action
- the Action.public Collection getParentCollection()
public void setParentCollection(Collection parentCollection)
parentCollection
- the Parent Collection.public void setProperty(String name, Object value)
name
- the name of the property.value
- the value of the property.public Object getProperty(String name)
name
- the name of the property.
public String getSourcePath()
public void setSourcePath(String sourcePath)
sourcePath
- the Source Path.public String getTargetPath()
public void setTargetPath(String targetPath)
targetPath
- the Target Path.public String getTargetSubPath()
public void setTargetSubPath(String targetSubPath)
targetSubPath
- the Target Sub Path.public String getUserName()
public void setUserName(String userName)
userName
- the User Name.public String getTag()
public void setTag(String tag)
tag
- the Tag.public String getAssociationType()
public void setAssociationType(String associationType)
associationType
- the Association Type.public int getRating()
public void setRating(int rating)
rating
- the Rating.public Comment getComment()
public void setComment(Comment comment)
comment
- the Comment.public String getVersionPath()
public void setVersionPath(String versionPath)
versionPath
- the Version Path.public Map getQueryParameters()
public void setQueryParameters(Map queryParameters)
queryParameters
- the Query Parameters.public String getKeywords()
public void setKeywords(String keywords)
keywords
- the Keywords.public Reader getDumpingReader()
public void setDumpingReader(Reader dumpingReader)
dumpingReader
- the Dumping Reader.public Writer getDumpingWriter()
public void setDumpingWriter(Writer dumpingWriter)
dumpingWriter
- the Dumping Writer.public RegistryContext getRegistryContext()
public void setRegistryContext(RegistryContext registryContext)
registryContext
- the Registry Context.public Resource getOldResource()
public void setOldResource(Resource oldResource)
oldResource
- the Old Resource.public Association[] getOldAssociationsOnSource()
public void setOldAssociationsOnSource(Association[] oldAssociationsOnSource)
oldAssociationsOnSource
- the Old Associations On Source.public Association[] getOldAssociationsOnTarget()
public void setOldAssociationsOnTarget(Association[] oldAssociationsOnTarget)
oldAssociationsOnTarget
- the Old Associations On Target.public Tag[] getOldTags()
public void setOldTags(Tag[] oldTags)
oldTags
- the Old Tags.public Comment[] getOldComments()
public void setOldComments(Comment[] oldComments)
oldComments
- the Old Comments.public int getOldRating()
public void setOldRating(int oldRating)
oldRating
- the Old Rating.public float getOldAverageRating()
public void setOldAverageRating(float oldAverageRating)
oldAverageRating
- the Old Average Rating.public String getHandlerExecutionIdString()
public void setExecutionStatus(Handler handler, boolean status)
handler
- the Execution Status.status
- the status.public void setExecutionStatus(Handler handler, Throwable exception)
handler
- the Execution Status.exception
- the exception to throw at a failure.public boolean isExecutionStatusSet(Handler handler)
handler
- The handler the execution status checking.
public Map<String,List<String[]>> getHandlerExecutionStatusMap()
public boolean isSimulation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |