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

com.activitystream.core.model.interfaces.BaseStreamElement Maven / Gradle / Ivy

Go to download

AS-SDK is a java library to allow easy interoperability with Activity Stream.

There is a newer version: 0.1.25
Show newest version
package com.activitystream.core.model.interfaces;

import com.activitystream.core.model.entities.BusinessEntity;
import com.activitystream.core.model.security.SecurityScope;

public interface BaseStreamElement extends VerifiableElement {

    /************  Utility Functions ************/

    //void setRootElement(SavableElement rootElement);

    void setRoot(BaseStreamElement root);

    void setSecurityScope(SecurityScope scope);

    BaseStreamElement getRoot();

    BusinessEntity getRootBusinessEntity();

    /************  Persistence ************/

    //SavableElement save(Tenant tenant, PersistenceCache cache);

    /**
     * Check for all embedded entities references and replaces them with the full entity
     */
    /*
    default void expand(Tenant tenant, StreamItemAccessPolicy accessPolicy) {
    }
    */

    /**
     * Remove nested structure
     */
    default void simplify() {
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy