diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/type/AttributeTypeFactory.java')
-rw-r--r-- | plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/type/AttributeTypeFactory.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/type/AttributeTypeFactory.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/type/AttributeTypeFactory.java index 3159c37b729..2fc8c0153ac 100644 --- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/type/AttributeTypeFactory.java +++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/type/AttributeTypeFactory.java @@ -23,7 +23,7 @@ import org.eclipse.osee.framework.jdk.core.util.Strings; */ public class AttributeTypeFactory implements IOseeTypeFactory { - public AttributeType create(String guid, String name, String baseAttributeTypeId, String attributeProviderNameId, String fileTypeExtension, String defaultValue, int minOccurrences, int maxOccurrences, String tipText, String taggerId) throws OseeCoreException { + public AttributeType create(long guid, String name, String baseAttributeTypeId, String attributeProviderNameId, String fileTypeExtension, String defaultValue, int minOccurrences, int maxOccurrences, String tipText, String taggerId) throws OseeCoreException { Conditions.checkNotNullOrEmpty(name, "attribute type name"); // checkNameUnique(cache, name); Conditions.checkNotNullOrEmpty(baseAttributeTypeId, "attribute base type id"); @@ -35,14 +35,13 @@ public class AttributeTypeFactory implements IOseeTypeFactory { Conditions.checkExpressionFailOnTrue(maxOccurrences < minOccurrences, "maxOccurences can not be less than minOccurences"); - String checkedGuid = Conditions.checkGuidCreateIfNeeded(guid); - return new AttributeType(checkedGuid, name, Strings.intern(baseAttributeTypeId), + return new AttributeType(guid, name, Strings.intern(baseAttributeTypeId), Strings.intern(attributeProviderNameId), Strings.intern(fileTypeExtension), defaultValue, minOccurrences, maxOccurrences, tipText, Strings.intern(taggerId)); } - public AttributeType createOrUpdate(AttributeTypeCache cache, String guid, String typeName, String baseAttributeTypeId, String attributeProviderNameId, String fileTypeExtension, String defaultValue, OseeEnumType oseeEnumType, int minOccurrences, int maxOccurrences, String description, String taggerId) throws OseeCoreException { + public AttributeType createOrUpdate(AttributeTypeCache cache, long guid, String typeName, String baseAttributeTypeId, String attributeProviderNameId, String fileTypeExtension, String defaultValue, OseeEnumType oseeEnumType, int minOccurrences, int maxOccurrences, String description, String taggerId) throws OseeCoreException { AttributeType attributeType = cache.getByGuid(guid); if (attributeType == null) { @@ -59,7 +58,7 @@ public class AttributeTypeFactory implements IOseeTypeFactory { return attributeType; } - public AttributeType createOrUpdate(IOseeCache<String, AttributeType> cache, int uniqueId, StorageState storageState, String guid, String typeName, String baseAttributeTypeId, String attributeProviderNameId, String fileTypeExtension, String defaultValue, OseeEnumType oseeEnumType, int minOccurrences, int maxOccurrences, String description, String taggerId) throws OseeCoreException { + public AttributeType createOrUpdate(IOseeCache<Long, AttributeType> cache, int uniqueId, StorageState storageState, Long guid, String typeName, String baseAttributeTypeId, String attributeProviderNameId, String fileTypeExtension, String defaultValue, OseeEnumType oseeEnumType, int minOccurrences, int maxOccurrences, String description, String taggerId) throws OseeCoreException { AttributeType attributeType = cache.getById(uniqueId); if (attributeType == null) { attributeType = |