|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.installer.api.UpdateResult
public class UpdateResult
The update result is returned by an UpdateHandler if
a resource could be persisted by the handler.
The update result always contains the complete url where the
resource has been persisted.
If this url is different from the previous location of this
resource, the getResourceIsMoved() flag tells the
installer whether the resource has moved to a new location
or if the resource has been additionally added to a new
location (old location contains the old version of
the resource).
| Constructor Summary | |
|---|---|
UpdateResult(java.lang.String url)
Create an update result |
|
| Method Summary | |
|---|---|
java.lang.String |
getDigest()
Return this resource's digest. |
int |
getPriority()
Return the priority of this resource. |
java.lang.String |
getResourceId()
Return just the resource id (everything in the url after the colon) |
boolean |
getResourceIsMoved()
Has this resource been moved or added? |
java.lang.String |
getScheme()
Return the scheme of the provider. |
java.lang.String |
getURL()
Return this data's url. |
void |
setDigest(java.lang.String digest)
Set the digest. |
void |
setPriority(java.lang.Integer prio)
Set the priority. |
void |
setResourceIsMoved(boolean flag)
Sett whether this resource has been moved or added. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateResult(java.lang.String url)
url - Unique url for the resource. This should include the scheme!| Method Detail |
|---|
public java.lang.String getURL()
OsgiInstaller
but should uniquely identify the resource within the namespace of
the used installation mechanism.
The url includes the scheme followed by a colon followed by the unique id.
public java.lang.String getScheme()
public java.lang.String getResourceId()
public java.lang.String getDigest()
public int getPriority()
public void setPriority(java.lang.Integer prio)
public void setDigest(java.lang.String digest)
public void setResourceIsMoved(boolean flag)
public boolean getResourceIsMoved()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||