|
||||||||||
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 | |
---|---|
java.lang.String |
getAction()
Method to get the Action. |
java.lang.String |
getActualPath()
Method to get the Actual Path. |
Aspect |
getAspect()
Method to get the Aspect. |
java.lang.String |
getAssociationType()
Method to get the Association Type. |
long |
getBytesRead()
Method to get the bytes read when performing a registry restoration operation. |
long |
getBytesWritten()
Method to get the bytes written when performing a registry dump operation. |
Comment |
getComment()
Method to get the Comment. |
java.io.Reader |
getDumpingReader()
Method to get the Dumping Reader. |
java.io.Writer |
getDumpingWriter()
Method to get the Dumping Writer. |
java.lang.String |
getHandlerExecutionIdString()
Method to get the Handler Execution Id |
java.util.Map<java.lang.String,java.util.List<java.lang.String[]>> |
getHandlerExecutionStatusMap()
Method to get the HandlerExecutionStatusMap. |
java.lang.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. |
java.lang.String |
getParentPath()
Method to get the Parent Path. |
java.lang.Object |
getProperty(java.lang.String name)
Method to get the Property by name. |
java.util.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. |
java.lang.String |
getSourcePath()
Method to get the Source Path. |
java.lang.String |
getSourceURL()
Method to get the Source URL. |
Registry |
getSystemRegistry()
Method to get the System Registry. |
java.lang.String |
getTag()
Method to get the Tag. |
java.lang.String |
getTargetPath()
Method to get the Target Path. |
java.lang.String |
getTargetSubPath()
Method to get the Target Sub Path. |
java.lang.String |
getUserName()
Method to get the User Name. |
java.lang.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 |
isLoggingActivity()
Check whether activities must be logged or not. |
boolean |
isProcessingComplete()
Method to determine whether processing is complete or not. |
boolean |
isSimulation()
Check whether this is running in simulation mode |
void |
setAction(java.lang.String action)
Method to set Action. |
void |
setActualPath(java.lang.String actualPath)
Method to set Actual Path. |
void |
setAspect(Aspect aspect)
Method to set Aspect. |
void |
setAssociationType(java.lang.String associationType)
Method to set Association Type. |
void |
setBytesRead(long bytesRead)
Method to set the bytes read when performing a registry restoration operation. |
void |
setBytesWritten(long bytesWritten)
Method to set the bytes written when performing a registry dump operation. |
void |
setComment(Comment comment)
Method to set Comment. |
void |
setDumpingReader(java.io.Reader dumpingReader)
Method to set Dumping Reader. |
void |
setDumpingWriter(java.io.Writer dumpingWriter)
Method to set Dumping Writer. |
void |
setExecutionStatus(Handler handler,
boolean status)
Method to set Execution Status. |
void |
setExecutionStatus(Handler handler,
java.lang.Throwable exception)
Method to set Execution Status. |
void |
setKeywords(java.lang.String keywords)
Method to set Keywords. |
void |
setLoggingActivity(boolean loggingActivity)
Method to set whether activities must be logged for this operation. |
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(java.lang.String parentPath)
Method to set Parent Path. |
void |
setProcessingComplete(boolean processingComplete)
Method to set Processing Complete. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Method to set Property. |
void |
setQueryParameters(java.util.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(java.lang.String sourcePath)
Method to set Source Path. |
void |
setSourceURL(java.lang.String sourceURL)
Method to set Source URL. |
void |
setTag(java.lang.String tag)
Method to set Tag. |
void |
setTargetPath(java.lang.String targetPath)
Method to set Target Path. |
void |
setTargetSubPath(java.lang.String targetSubPath)
Method to set Target Sub Path. |
void |
setUserName(java.lang.String userName)
Method to set User Name. |
void |
setVersionPath(java.lang.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 java.lang.String getSourceURL()
public void setSourceURL(java.lang.String sourceURL)
sourceURL
- the Source URL.public java.lang.String getActualPath()
public void setActualPath(java.lang.String actualPath)
actualPath
- the Actual Path.public Resource getResource()
public void setResource(Resource resource)
resource
- the Resource.public java.lang.String getParentPath()
public void setParentPath(java.lang.String parentPath)
parentPath
- the Parent Path.public Aspect getAspect()
public void setAspect(Aspect aspect)
aspect
- the Aspect.public java.lang.String getAction()
public void setAction(java.lang.String action)
action
- the Action.public Collection getParentCollection()
public void setParentCollection(Collection parentCollection)
parentCollection
- the Parent Collection.public void setProperty(java.lang.String name, java.lang.Object value)
name
- the name of the property.value
- the value of the property.public java.lang.Object getProperty(java.lang.String name)
name
- the name of the property.
public java.lang.String getSourcePath()
public void setSourcePath(java.lang.String sourcePath)
sourcePath
- the Source Path.public java.lang.String getTargetPath()
public void setTargetPath(java.lang.String targetPath)
targetPath
- the Target Path.public java.lang.String getTargetSubPath()
public void setTargetSubPath(java.lang.String targetSubPath)
targetSubPath
- the Target Sub Path.public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName
- the User Name.public java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- the Tag.public java.lang.String getAssociationType()
public void setAssociationType(java.lang.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 java.lang.String getVersionPath()
public void setVersionPath(java.lang.String versionPath)
versionPath
- the Version Path.public java.util.Map getQueryParameters()
public void setQueryParameters(java.util.Map queryParameters)
queryParameters
- the Query Parameters.public java.lang.String getKeywords()
public void setKeywords(java.lang.String keywords)
keywords
- the Keywords.public long getBytesRead()
public void setBytesRead(long bytesRead)
bytesRead
- the number of bytes read.public long getBytesWritten()
public void setBytesWritten(long bytesWritten)
bytesWritten
- the number of bytes written.public java.io.Reader getDumpingReader()
public void setDumpingReader(java.io.Reader dumpingReader)
dumpingReader
- the Dumping Reader.public java.io.Writer getDumpingWriter()
public void setDumpingWriter(java.io.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 java.lang.String getHandlerExecutionIdString()
public void setExecutionStatus(Handler handler, boolean status)
handler
- the Execution Status.status
- the status.public void setExecutionStatus(Handler handler, java.lang.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 java.util.Map<java.lang.String,java.util.List<java.lang.String[]>> getHandlerExecutionStatusMap()
public boolean isSimulation()
public boolean isLoggingActivity()
public void setLoggingActivity(boolean loggingActivity)
loggingActivity
- whether activities should be logged or not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |