Skip to content
Snippets Groups Projects
Commit 7d7e0bea authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: Some docstrings added.

parent efc5a6c4
Branches
Tags
3 merge requests!44Release 0.6,!43Merge f-GRPC-main to dev,!27F grpc f value and unit
Pipeline #13027 passed
......@@ -26,6 +26,7 @@ import java.util.HashMap;
import org.caosdb.server.entity.container.RetrieveContainer;
import org.caosdb.server.transaction.Retrieve;
/** Some types correspond to entities in the database with magic IDs. */
public enum MagicTypes {
UNIT,
NAME,
......
......@@ -7,6 +7,8 @@ import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.UUID;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.shiro.SecurityUtils;
import org.caosdb.api.entity.v1alpha1.AtomicDataType;
import org.caosdb.api.entity.v1alpha1.CollectionValues;
......@@ -85,6 +87,7 @@ public class EntityTransactionServiceImpl extends EntityTransactionServiceImplBa
private final FileTransmissionServiceImpl fileTransmissionService;
/** Get the unit as string. */
public String getStringUnit(final EntityInterface entity) {
final Iterator<Property> iterator = entity.getProperties().iterator();
while (iterator.hasNext()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment