
com.activitystream.model.interfaces.BaseStreamElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of as-sdk Show documentation
Show all versions of as-sdk Show documentation
AS-SDK is a java library to allow easy interoperability with Activity Stream.
package com.activitystream.model.interfaces;
import com.activitystream.model.entities.BusinessEntity;
import com.activitystream.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();
void addEntityReferences(BaseStreamElement baseStreamElement);
/************ 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