public class PublicationInfo extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
CONFLICT |
static int |
DELETED |
static int |
LIVE_MODIFIED |
static int |
LIVE_ONLY |
static int |
MANDATORY_LANGUAGE_UNPUBLISHABLE |
static int |
MANDATORY_LANGUAGE_VALID |
static int |
MARKED_FOR_DELETION |
static int |
MODIFIED |
static int |
NOT_PUBLISHED |
static int |
PUBLISHED |
static int |
UNPUBLISHED |
| Constructor and Description |
|---|
PublicationInfo() |
PublicationInfo(PublicationInfoNode root) |
PublicationInfo(String rootUuid,
String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearInternalAndPublishedReferences(List<String> uuids) |
boolean |
equals(Object o) |
Set<String> |
getAllPublishedLanguages() |
List<PublicationInfo> |
getAllReferences() |
List<String> |
getAllUuids() |
List<String> |
getAllUuids(boolean includeDeleted,
boolean includePublished) |
List<String> |
getAllUuids(boolean includeDeleted,
boolean includePublished,
boolean includeWorkInProgress) |
static String |
getLabel(Integer status) |
PublicationInfoNode |
getRoot() |
Set<Integer> |
getTreeStatus(String language)
Retrieves a set of all various statuses for the tree.
|
int |
hashCode() |
Boolean |
hasLiveNode()
true by default, if false means no live node exists for the current publication info
|
boolean |
isUnpublicationPossible(String language) |
boolean |
needPublication(String language) |
void |
setHasLiveNode(boolean hasLiveNode)
set hasLiveNode (default is true)
|
void |
setRoot(PublicationInfoNode root) |
String |
toString() |
public static final int PUBLISHED
public static final int MODIFIED
public static final int NOT_PUBLISHED
public static final int UNPUBLISHED
public static final int MANDATORY_LANGUAGE_UNPUBLISHABLE
public static final int LIVE_MODIFIED
public static final int LIVE_ONLY
public static final int CONFLICT
public static final int MANDATORY_LANGUAGE_VALID
public static final int DELETED
public static final int MARKED_FOR_DELETION
public PublicationInfo()
public PublicationInfo(PublicationInfoNode root)
public PublicationInfoNode getRoot()
public void setRoot(PublicationInfoNode root)
public List<String> getAllUuids(boolean includeDeleted, boolean includePublished, boolean includeWorkInProgress)
public List<PublicationInfo> getAllReferences()
public void clearInternalAndPublishedReferences(List<String> uuids)
public Set<Integer> getTreeStatus(String language)
language - the language we are checkingpublic boolean needPublication(String language)
public boolean isUnpublicationPossible(String language)
public Boolean hasLiveNode()
public void setHasLiveNode(boolean hasLiveNode)
hasLiveNode - Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.