com.filenet.api.constants
Class AutoUniqueName
- java.lang.Object
-
- com.filenet.api.constants.AutoUniqueName
-
- All Implemented Interfaces:
- java.io.Serializable
public class AutoUniqueName extends java.lang.Object implements java.io.SerializableSpecifies whether naming collisions are to be detected and automatically resolved for containment names. Containment names are set onReferentialContainmentRelationshiporDynamicReferentialContainmentRelationshipobjects.If auto-unique naming is enabled, and a naming collision is detected, the containment name of the object is automatically appended with a suffix to make the name unique. For details, see the ContainmentName property.
CAUTION: Enabling auto-unique naming can have a severe performance impact when used for large numbers of objects filed in the same folder using a duplicate containment name. Under certain conditions, the Content Engine might retry the filing operation many times before the filing operation succeeds. In those cases, timeouts can occur. Therefore, your client application should ensure that unique containment names are created for each object, so that the auto-unique naming is only needed infrequently.
-
-
Field Summary
Fields Modifier and Type Field and Description static AutoUniqueNameAUTO_UNIQUEA constant representing an instance of typeAUTO_UNIQUE.static AutoUniqueNameNOT_AUTO_UNIQUEA constant representing an instance of typeNOT_AUTO_UNIQUE.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.BooleangetBooleanValue()Returns theBooleanvalue associated with this instance.static AutoUniqueNamegetInstanceFromBoolean(boolean val)Creates an instance of this class having the specified auto-unique setting.booleangetValue()Returns thebooleanvalue associated with this instance.java.lang.StringtoString()Returns aStringrepresentation of this instance.
-
-
-
Field Detail
-
AUTO_UNIQUE
public static final AutoUniqueName AUTO_UNIQUE
A constant representing an instance of typeAUTO_UNIQUE. This specifies that containment naming collisions are to be detected and resolved.
-
NOT_AUTO_UNIQUE
public static final AutoUniqueName NOT_AUTO_UNIQUE
A constant representing an instance of typeNOT_AUTO_UNIQUE. This specifies that containment naming collisions are not to be detected and resolved.
-
-
Method Detail
-
getValue
public boolean getValue()
Returns thebooleanvalue associated with this instance.- Returns:
- A
booleanvalue oftrueorfalse.
-
getBooleanValue
public java.lang.Boolean getBooleanValue()
Returns theBooleanvalue associated with this instance.- Returns:
- A
Booleanvalue oftrueorfalse.
-
getInstanceFromBoolean
public static AutoUniqueName getInstanceFromBoolean(boolean val)
Creates an instance of this class having the specified auto-unique setting.- Parameters:
val- Abooleanvalue oftrueto indicate auto-unique naming is enabled;falseotherwise.- Returns:
- An
AutoUniqueNameobject having the specified setting.
-
toString
public java.lang.String toString()
Returns aStringrepresentation of this instance.- Overrides:
toStringin classjava.lang.Object- Returns:
- A
Stringrepresenting the instance.
-
-