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

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

The newest version!
package com.enonic.xp.node;

import com.enonic.xp.annotation.PublicApi;

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy