/** * Constructs a HierObjectID by root (UID) and extension * * @param root * @param extension * @throws IllegalArgumentException if root is null */ public HierObjectID(UID root, String extension) { if(root == null) { throw new IllegalArgumentException("null root"); } if(StringUtils.isEmpty(extension)) { super.setValue(root.getValue()); } else { super.setValue(root.getValue() + "::" + extension); } this.root = root; this.extension = extension; }
public ObjectVersionID(UID objectID, HierObjectID creatingSystemID, VersionTreeID versionTreeID) { this(objectID.toString() + "::" + creatingSystemID.toString() + "::" + versionTreeID.toString()); this.objectID = objectID; this.creatingSystemID = creatingSystemID; this.versionTreeID = versionTreeID; }
private void commitVersionCheck(ObjectVersionID vUid, ObjectVersionID precedingVUid) { if (versionCount() > 0 && !hasVersionID(precedingVUid)) { throw new IllegalArgumentException("precedingVersionID not found"); } if(!vUid.objectID().equals(this.uid.root())) { throw new IllegalArgumentException("ownerID different from versionedObject"); } }
public ObjectVersionID(UID objectID, HierObjectID creatingSystemID, VersionTreeID versionTreeID) { this(objectID.toString() + "::" + creatingSystemID.toString() + "::" + versionTreeID.toString()); this.objectID = objectID; this.creatingSystemID = creatingSystemID; this.versionTreeID = versionTreeID; }
private void commitVersionCheck(ObjectVersionID vUid, ObjectVersionID precedingVUid) { if (versionCount() > 0 && !hasVersionID(precedingVUid)) { throw new IllegalArgumentException("precedingVersionID not found"); } if(!vUid.objectID().equals(this.uid.root())) { throw new IllegalArgumentException("ownerID different from versionedObject"); } }
/** * Constructs a HierObjectID by root (UID) and extension * * @param root * @param extension * @throws IllegalArgumentException if root is null */ public HierObjectID(UID root, String extension) { if(root == null) { throw new IllegalArgumentException("null root"); } if(StringUtils.isEmpty(extension)) { super.setValue(root.getValue()); } else { super.setValue(root.getValue() + "::" + extension); } this.root = root; this.extension = extension; }