All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enonic.xp.content.CompareStatus Maven / Gradle / Ivy

There is a newer version: 7.14.4
Show newest version
package com.enonic.xp.content;

import com.enonic.xp.annotation.PublicApi;

@PublicApi
public enum CompareStatus
{
    NEW( false, "Offline" ), NEW_TARGET( false, "New in prod" ), NEWER( false, "Modified" ), OLDER( false,
                                                                                                    "Out-of-date" ), @Deprecated PENDING_DELETE(
    false, "Pending delete" ), @Deprecated PENDING_DELETE_TARGET( false, "Deleted in prod" ), EQUAL( false, "Online" ), MOVED( false,
                                                                                                                               "Moved" ), CONFLICT_PATH_EXISTS(
    true, "Conflict" ), CONFLICT_VERSION_BRANCH_DIVERGS( true, "Conflict version" );

    private final boolean conflict;

    private final String status;

    CompareStatus( final boolean conflict, final String formattedStatus )
    {
        this.conflict = conflict;
        this.status = formattedStatus;
    }

    public boolean isConflict()
    {
        return this.conflict;
    }

    public String getFormattedStatus()
    {
        return this.status;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy