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

com.enonic.xp.node.NodePublishReasonIsParent Maven / Gradle / Ivy

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

import com.enonic.xp.annotation.PublicApi;

@PublicApi
public class NodePublishReasonIsParent
    implements NodePublishReason
{
    private final NodeId nodeId;

    public NodePublishReasonIsParent( final NodeId nodeId )
    {
        this.nodeId = nodeId;
    }

    @Override
    public NodeId getContextualNodeId()
    {
        return nodeId;
    }

    @Override
    public String getMessage()
    {
        return String.format( "Parent for %s", nodeId );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy