Class ModelEntity
java.lang.Object
org.activiti.cloud.services.modeling.jpa.audit.AuditableEntity<String>
org.activiti.cloud.services.modeling.entity.ModelEntity
- All Implemented Interfaces:
Model<ProjectEntity,,String> Auditable<String>,VersionedEntity<ModelVersionEntity>
@Entity(name="Model")
public class ModelEntity
extends AuditableEntity<String>
implements Model<ProjectEntity,String>, VersionedEntity<ModelVersionEntity>
Model model entity
-
Field Summary
Fields inherited from class org.activiti.cloud.services.modeling.jpa.audit.AuditableEntity
createdBy, creationDate, lastModifiedBy, lastModifiedDate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProject(ProjectEntity project) voidbyte[]getId()getName()getScope()getType()booleanbooleanvoidremoveProject(ProjectEntity project) voidsetCategory(String category) voidsetContent(byte[] content) voidsetContentType(String contentType) voidsetExtensions(Map<String, Object> extensions) voidvoidsetLatestVersion(ModelVersionEntity latestVersion) voidvoidsetProjectIds(Set<String> projectsId) voidsetProjects(Set<ProjectEntity> projects) voidsetScope(ModelScope scope) voidsetTemplate(String template) voidvoidsetVersions(List<ModelVersionEntity> versions) Methods inherited from class org.activiti.cloud.services.modeling.jpa.audit.AuditableEntity
getCreatedBy, getCreationDate, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreationDate, setLastModifiedBy, setLastModifiedDateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.activiti.cloud.services.auditable.Auditable
copyAuditInfo, getCreatedBy, getCreationDate, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreationDate, setLastModifiedBy, setLastModifiedDate
-
Constructor Details
-
ModelEntity
public ModelEntity() -
ModelEntity
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceModel<ProjectEntity,String> - Specified by:
getIdin interfaceVersionedEntity<ModelVersionEntity>
-
setId
- Specified by:
setIdin interfaceModel<ProjectEntity,String>
-
getName
- Specified by:
getNamein interfaceModel<ProjectEntity,String>
-
setName
- Specified by:
setNamein interfaceModel<ProjectEntity,String>
-
getType
- Specified by:
getTypein interfaceModel<ProjectEntity,String>
-
setType
- Specified by:
setTypein interfaceModel<ProjectEntity,String>
-
getProjects
- Specified by:
getProjectsin interfaceModel<ProjectEntity,String>
-
setProjects
-
addProject
- Specified by:
addProjectin interfaceModel<ProjectEntity,String>
-
removeProject
- Specified by:
removeProjectin interfaceModel<ProjectEntity,String>
-
clearProjects
public void clearProjects()- Specified by:
clearProjectsin interfaceModel<ProjectEntity,String>
-
getProjectIds
-
setProjectIds
-
getVersion
- Specified by:
getVersionin interfaceModel<ProjectEntity,String>
-
getContentType
- Specified by:
getContentTypein interfaceModel<ProjectEntity,String>
-
setContentType
- Specified by:
setContentTypein interfaceModel<ProjectEntity,String>
-
getContent
public byte[] getContent()- Specified by:
getContentin interfaceModel<ProjectEntity,String>
-
setContent
public void setContent(byte[] content) - Specified by:
setContentin interfaceModel<ProjectEntity,String>
-
getExtensions
- Specified by:
getExtensionsin interfaceModel<ProjectEntity,String>
-
setExtensions
- Specified by:
setExtensionsin interfaceModel<ProjectEntity,String>
-
getTemplate
- Specified by:
getTemplatein interfaceModel<ProjectEntity,String>
-
setTemplate
- Specified by:
setTemplatein interfaceModel<ProjectEntity,String>
-
getScope
- Specified by:
getScopein interfaceModel<ProjectEntity,String>
-
setScope
- Specified by:
setScopein interfaceModel<ProjectEntity,String>
-
getCategory
- Specified by:
getCategoryin interfaceModel<ProjectEntity,String>
-
setCategory
- Specified by:
setCategoryin interfaceModel<ProjectEntity,String>
-
hasProjects
public boolean hasProjects()- Specified by:
hasProjectsin interfaceModel<ProjectEntity,String>
-
hasMultipleProjects
public boolean hasMultipleProjects()- Specified by:
hasMultipleProjectsin interfaceModel<ProjectEntity,String>
-
getVersions
- Specified by:
getVersionsin interfaceVersionedEntity<ModelVersionEntity>
-
setVersions
- Specified by:
setVersionsin interfaceVersionedEntity<ModelVersionEntity>
-
setLatestVersion
- Specified by:
setLatestVersionin interfaceVersionedEntity<ModelVersionEntity>
-
getLatestVersion
- Specified by:
getLatestVersionin interfaceVersionedEntity<ModelVersionEntity>
-