| java.lang.Object com.flexive.shared.content.FxContentVersionInfo
FxContentVersionInfo | public class FxContentVersionInfo implements Serializable(Code) | | Information about a content's existing versions
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Inner Class :final public static class VersionSelector extends Hashtable | |
Inner Class :static class NewLifeCycleInfoImpl implements LifeCycleInfo | |
FxContentVersionInfo | public FxContentVersionInfo(long id, int minVersion, int maxVersion, int liveVersion, int lastModifiedVersion, Map<Integer, LifeCycleInfo> versions)(Code) | | Ctor
Parameters: id - instance id Parameters: minVersion - minimum existing version Parameters: maxVersion - maximum existing version Parameters: liveVersion - live version (if not exists: -1) Parameters: lastModifiedVersion - version that has the latest modification date Parameters: versions - map of version,LifeCycleInfo entries |
containsVersion | public boolean containsVersion(FxPK pk)(Code) | | Check if the requested Pk's version exists
Parameters: pk - primary key if the requested Pk's version exists |
createEmpty | public static FxContentVersionInfo createEmpty()(Code) | | Create an empty version info for new FxContent instances using the calling user as creator
an empty version info for new FxContent instances |
getDistinctVersion | public int getDistinctVersion(int version)(Code) | | Get the correct maximum or live version if version is version constant from FxPK
Parameters: version - the requested version distinct version |
getId | public long getId()(Code) | | Get the id of the instance
id of the instance |
getLastModifiedVersion | public int getLastModifiedVersion()(Code) | | Get the version that was changed most recently
version that was changed most recently |
getLifeCycleInfo | public LifeCycleInfo getLifeCycleInfo(int version)(Code) | | Get the LifeCycleInfo for a requested version or null if the
requested version does not exist
Parameters: version - the requested version LifeCycleInfo for a requested version or null if therequested version does not exist |
getLiveVersion | public int getLiveVersion()(Code) | | Get the live version. if no live version exists then -1 is returned
live version or -1 |
getMaxVersion | public int getMaxVersion()(Code) | | Get the maximum existing version
maximum existing version |
getMinVersion | public int getMinVersion()(Code) | | Get the minimum existing version
minimum existing version |
getVersionCount | public int getVersionCount()(Code) | | How many versions exist?
number of versions |
getVersionSelector | public VersionSelector getVersionSelector()(Code) | | Get the version selector
VersionSelector |
getVersions | public Integer[] getVersions()(Code) | | Get an iterator for all available versions
iterator for all available versions |
hasLiveVersion | public boolean hasLiveVersion()(Code) | | Does a live version exist for this content instance
if a live version exists for this content instance |
isHasLiveVersion | public boolean isHasLiveVersion()(Code) | | Does a live version exist for this content instance
(EL compatible variant)
if a live version exists for this content instance See Also: FxContentVersionInfo.hasLiveVersion() |
|
|