|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.repository.bindings.DeltaInfo
public class DeltaInfo
This class maintains information helpful to synchronizing local copies of resources with those in the Repository.
It provides status constants that store bitmasks used to determine whether there are changes to content and metadata, as well as information about resource locking. It also provides methods that can be used to specify and retrieve resources and their status.
Field Summary | |
---|---|
static short |
CHANGE_TO_CONTENT
There have been changes to the content. |
static short |
CHANGE_TO_METADATA
There have been changes to the metadata. |
static short |
LOCKED_BY_OTHERS
The resource is locked by others. |
static short |
LOCKED_BY_USER
The resource is locked by the user. |
static short |
NO_CHANGE_AND_NO_LOCKS
There have been no changes to metadata or content, and there are no locks. |
Constructor Summary | |
---|---|
DeltaInfo()
|
Method Summary | |
---|---|
void |
addResource(Resource resource)
Sets the resource to be synchronized. |
Resource |
getResource()
Retrieves the resource being synchronized. |
short |
getStatus()
Retrieves the status of the resource. |
void |
initStatus()
Resets the status to indicate that the resource is not locked and that there have been no changes to content or metadata. |
void |
setStatus(short mask)
Sets the status of the resource. |
boolean |
testStatus(short mask)
Compares the current status with the status specified in mask . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short NO_CHANGE_AND_NO_LOCKS
public static final short CHANGE_TO_CONTENT
public static final short CHANGE_TO_METADATA
public static final short LOCKED_BY_USER
public static final short LOCKED_BY_OTHERS
Constructor Detail |
---|
public DeltaInfo()
Method Detail |
---|
public void addResource(Resource resource)
resource
- The resource to be synchronized.public Resource getResource()
Resource
object containing the resource.public short getStatus()
OR
of one or more
of the status constants contained in this class.public void setStatus(short mask)
mask
- The bitmask status value, which must be equal to one of the status constants contained in this class.public boolean testStatus(short mask)
mask
.
mask
- The status value to be compared with the stored status value.
true
if the values match, false
otherwise.public void initStatus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |