public class WSResource extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected int |
pathID |
protected int |
tenantId |
Constructor and Description |
---|
WSResource() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthorUserName()
Get the user name of the resource author.
|
DataHandler |
getContentFile()
Returns a data handler that contains the content.
|
long |
getCreatedTime()
Method to get the created time.
|
int |
getDbBasedContentID() |
String |
getDescription()
Method to get the description.
|
String |
getId()
The Resource ID, In the default implementation this returns the path.
|
long |
getLastModified()
Method to get the last modified date as a long integer.
|
String |
getLastUpdaterUserName()
Method to get the last updated user name.
|
long |
getMatchingSnapshotID() |
String |
getMediaType()
Get media type.
|
String |
getName() |
String |
getParentPath()
Get the parent path.
|
String |
getPath()
Method to get the path.
|
int |
getPathID() |
String |
getPermanentPath() |
WSProperty[] |
getProperties()
Returns all properties of the WSResource.
|
long |
getSnapshotID() |
int |
getState() |
int |
getTenantId() |
String |
getUserName() |
String |
getUUID()
get the UUID of the resource
|
long |
getVersionNumber() |
boolean |
isCollection()
Check whether this WSResource is actually a WSCollection.
|
boolean |
isDirectory() |
boolean |
isPropertiesModified() |
boolean |
isVersionableChange() |
void |
setAuthorUserName(String authorUserName)
Set the author name.
|
void |
setCollection(boolean isCollection)
Set whether the WSResource is a WSCollection or not.
|
void |
setContentFile(DataHandler contentFile)
Sets the data handler with the content of the resource.
|
void |
setCreatedTime(long createdTime)
Set created time.
|
void |
setDbBasedContentID(int dbBasedContentID) |
void |
setDescription(String description)
Set the description
|
void |
setDirectory(boolean directory) |
void |
setId(String id)
Set the resource ID.
|
void |
setLastModified(long lastModified)
Method to set the last modified date.
|
void |
setLastUpdaterUserName(String lastUpdaterUserName)
Set the last updated user name.
|
void |
setMatchingSnapshotID(long matchingSnapshotID) |
void |
setMediaType(String mediaType)
Set media type.
|
void |
setName(String name) |
void |
setParentPath(String parentPath)
Set the parent path,
|
void |
setPath(String path)
Set the path.
|
void |
setPathID(int pathID) |
void |
setPermanentPath(String permanentPath) |
void |
setProperties(WSProperty[] properties)
Set properties of a WSResource.
|
void |
setPropertiesModified(boolean propertiesModified) |
void |
setSnapshotID(long snapshotID) |
void |
setState(int state) |
void |
setTenantId(int tenantId) |
void |
setUserName(String userName) |
void |
setUUID(String uuid)
set the UUID of the resource
|
void |
setVersionableChange(boolean versionableChange) |
void |
setVersionNumber(long versionNumber) |
protected String name
protected int pathID
protected int tenantId
public String getUUID()
public void setUUID(String uuid)
uuid
- the uuid of the resourcepublic DataHandler getContentFile()
public void setContentFile(DataHandler contentFile)
contentFile
- public String getAuthorUserName()
public void setAuthorUserName(String authorUserName)
authorUserName
- public int getDbBasedContentID()
public void setDbBasedContentID(int dbBasedContentID)
public String getDescription()
public void setDescription(String description)
description
- public boolean isDirectory()
public void setDirectory(boolean directory)
public String getId()
public void setId(String id)
id
- public long getLastModified()
public void setLastModified(long lastModified)
lastModified
- as a long integerpublic String getLastUpdaterUserName()
public void setLastUpdaterUserName(String lastUpdaterUserName)
lastUpdaterUserName
- public long getMatchingSnapshotID()
public void setMatchingSnapshotID(long matchingSnapshotID)
public String getMediaType()
public void setMediaType(String mediaType)
mediaType
- public String getName()
public void setName(String name)
public String getParentPath()
public void setParentPath(String parentPath)
parentPath
- public String getPath()
public void setPath(String path)
path
- public int getPathID()
public void setPathID(int pathID)
public String getPermanentPath()
public void setPermanentPath(String permanentPath)
public WSProperty[] getProperties()
public void setProperties(WSProperty[] properties)
properties
- public boolean isPropertiesModified()
public void setPropertiesModified(boolean propertiesModified)
public long getSnapshotID()
public void setSnapshotID(long snapshotID)
public int getState()
public void setState(int state)
public int getTenantId()
public void setTenantId(int tenantId)
public String getUserName()
public void setUserName(String userName)
public boolean isVersionableChange()
public void setVersionableChange(boolean versionableChange)
public long getVersionNumber()
public void setVersionNumber(long versionNumber)
public long getCreatedTime()
public void setCreatedTime(long createdTime)
createdTime
- public boolean isCollection()
public void setCollection(boolean isCollection)
isCollection
- Copyright © 2019 WSO2. All rights reserved.