Package com.day.cq.wcm.msm.api
Interface LiveStatus
-
- All Superinterfaces:
JSONItem
@ProviderType public interface LiveStatus extends JSONItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Boolean>
getAdvancedStatus()
Returns a map of pairs (name, status) which contains advanced status for the current relationship.java.lang.Boolean
getAdvancedStatus(java.lang.String status)
Returns value of an advanced status.java.util.List<java.lang.String>
getCanceledProperties()
Returns names of properties for which inheritance is canceled.java.util.Date
getLastRolledOut()
Return the timestamp of the last roll-out on the LiveRelationship this is the LiveStatus for.java.lang.String
getLastRolledOutBy()
Return an identifier for the User that triggered the last Roll-out on the LiveRelationship this is the LiveStatus for.boolean
isCancelled()
Returns true if relationship is cancelledboolean
isCancelledForChildren()
Returns true if relationship is cancelled for children relationships.boolean
isEditable()
Returns true if relationship can be edited, ie can be cancelled.boolean
isPage()
Returns true if relationship concerns a page, false if it concerns a paragraphboolean
isSourceExisting()
Returns true if relationship's source existsboolean
isTargetExisting()
Returns true if relationship's target exists
-
-
-
Method Detail
-
isCancelled
boolean isCancelled()
Returns true if relationship is cancelled- Returns:
- true if relationship is cancelled
-
isCancelledForChildren
boolean isCancelledForChildren()
Returns true if relationship is cancelled for children relationships. Only possible if isCancelled() is true.- Returns:
- true if relationship is cancelled for children relationships
-
isEditable
boolean isEditable()
Returns true if relationship can be edited, ie can be cancelled.- Returns:
- true if relationship can be edited
-
isSourceExisting
boolean isSourceExisting()
Returns true if relationship's source exists- Returns:
- true if relationship's source exists
-
isTargetExisting
boolean isTargetExisting()
Returns true if relationship's target exists- Returns:
- true if relationship's target exists
-
getAdvancedStatus
java.util.Map<java.lang.String,java.lang.Boolean> getAdvancedStatus()
Returns a map of pairs (name, status) which contains advanced status for the current relationship.- Returns:
- map of status
-
getAdvancedStatus
java.lang.Boolean getAdvancedStatus(java.lang.String status)
Returns value of an advanced status.- Parameters:
status
- the name of the status to be accessed- Returns:
- value of advanced status
-
isPage
boolean isPage()
Returns true if relationship concerns a page, false if it concerns a paragraph- Returns:
- true if relationship concerns a page
-
getCanceledProperties
java.util.List<java.lang.String> getCanceledProperties()
Returns names of properties for which inheritance is canceled.- Returns:
- value of advanced status
-
getLastRolledOutBy
java.lang.String getLastRolledOutBy()
Return an identifier for the User that triggered the last Roll-out on the LiveRelationship this is the LiveStatus for. The identifier matches the one of the ResourceResolver used (s.ResourceResolver.getUserID()
).
The returned value can benull
. Such cases could be. A LiveRelationship that has never been rolled out, has a no LiveStatus for the User- Returns:
- an identifier of the subject that triggered the last Roll-out.
- Since:
- 5.8.0
- See Also:
ResourceResolver.getUserID()
,RolloutManager.rollout(com.day.cq.wcm.msm.api.RolloutManager.RolloutParams)
-
getLastRolledOut
java.util.Date getLastRolledOut()
Return the timestamp of the last roll-out on the LiveRelationship this is the LiveStatus for. It is not necessary that the Resource changed at that time. The returned value can benull
in case of a LiveStatus for a LiveRelationship that has never been rolled-out.- Returns:
- Calendar of the time the LiveRelationship this LiveStatus is for was roll-ed out
- Since:
- 5.8.0
- See Also:
RolloutManager.rollout(com.day.cq.wcm.msm.api.RolloutManager.RolloutParams)
-
-