Package org.wso2.carbon.registry.api
Class Activity
java.lang.Object
org.wso2.carbon.registry.api.Activity
Representation of a activity that has been performed on the registry. For example, a put
operation will lead to activity of adding a resource into the registry, or updating an existing
resource on the registry. Each activity performed on the registry will have a corresponding log
entry, which is a record of a single action performed on the registry.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFilter value for the resource adding action.static final intFilter value for the adding association action.static final intThe log action to filter with.static final intFilter value for the associating an aspect action.static final intFilter value for the resource comment action.static final intFilter value for the resource copying action.static final intFilter value for the creating remote link action.static final intFilter value for the creating symbolic link action.static final intFilter value for the action of deleting a comment.static final intFilter value for the resource deleting action.static final intFilter value for the resource moving action.static final intFilter value for the resource rating action.static final intFilter value for the removing association action.static final intFilter value for the removing link action.static final intFilter value for the action of removing a tag.static final intFilter value for the resource renaming action.static final intFilter value for the resource restoring action.static final intFilter value for the resource tagging action.static final intFilter value for the resource updating action. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMethod to get the action.Method to get the action data.getDate()Method to get the date.Get the resource path of the log entry.getText()Method to set the text for the log entry.getTitle()Method to get the title of the log entry.Method to get the user name the action is logged with.voidsetAction(int action) Method to set the action.voidsetActionData(String actionData) Method to set the action data.voidMethod to set the date.voidsetResourcePath(String resourcePath) Set the resource path to the log entry.voidsetUserName(String userName) Set the user name the action is logged with.
-
Field Details
-
ALL
public static final int ALLThe log action to filter with. All is for don't filter at all.- See Also:
-
ADD
public static final int ADDFilter value for the resource adding action.- See Also:
-
UPDATE
public static final int UPDATEFilter value for the resource updating action.- See Also:
-
COMMENT
public static final int COMMENTFilter value for the resource comment action.- See Also:
-
DELETE_COMMENT
public static final int DELETE_COMMENTFilter value for the action of deleting a comment.- See Also:
-
TAG
public static final int TAGFilter value for the resource tagging action.- See Also:
-
REMOVE_TAG
public static final int REMOVE_TAGFilter value for the action of removing a tag.- See Also:
-
RATING
public static final int RATINGFilter value for the resource rating action.- See Also:
-
DELETE_RESOURCE
public static final int DELETE_RESOURCEFilter value for the resource deleting action.- See Also:
-
RESTORE
public static final int RESTOREFilter value for the resource restoring action.- See Also:
-
RENAME
public static final int RENAMEFilter value for the resource renaming action.- See Also:
-
MOVE
public static final int MOVEFilter value for the resource moving action.- See Also:
-
COPY
public static final int COPYFilter value for the resource copying action.- See Also:
-
CREATE_REMOTE_LINK
public static final int CREATE_REMOTE_LINKFilter value for the creating remote link action.- See Also:
-
CREATE_SYMBOLIC_LINK
public static final int CREATE_SYMBOLIC_LINKFilter value for the creating symbolic link action.- See Also:
-
REMOVE_LINK
public static final int REMOVE_LINKFilter value for the removing link action.- See Also:
-
ADD_ASSOCIATION
public static final int ADD_ASSOCIATIONFilter value for the adding association action.- See Also:
-
REMOVE_ASSOCIATION
public static final int REMOVE_ASSOCIATIONFilter value for the removing association action.- See Also:
-
ASSOCIATE_ASPECT
public static final int ASSOCIATE_ASPECTFilter value for the associating an aspect action.- See Also:
-
-
Constructor Details
-
Activity
public Activity()
-
-
Method Details
-
getResourcePath
Get the resource path of the log entry.- Returns:
- the resource path
-
setResourcePath
Set the resource path to the log entry.- Parameters:
resourcePath- the resource path.
-
getUserName
Method to get the user name the action is logged with.- Returns:
- the user name
-
setUserName
Set the user name the action is logged with.- Parameters:
userName- the user name
-
getDate
Method to get the date.- Returns:
- the date
-
setDate
Method to set the date.- Parameters:
date- the date
-
getAction
public int getAction()Method to get the action.- Returns:
- the action.
-
setAction
public void setAction(int action) Method to set the action.- Parameters:
action- the action.
-
getActionData
Method to get the action data.- Returns:
- the action data
-
setActionData
Method to set the action data.- Parameters:
actionData- the action data.
-
getTitle
Method to get the title of the log entry.- Returns:
- the title
-
getText
Method to set the text for the log entry.- Returns:
- the text of the log entry
-