Class IsInPersonalCabinetValidator
java.lang.Object
com.ptc.core.meta.container.common.AbstractValidator
com.ptc.core.foundation.folder.common.IsInPersonalCabinetValidator
- All Implemented Interfaces:
ActionValidator
public final class IsInPersonalCabinetValidator
extends com.ptc.core.meta.container.common.AbstractValidator
Returns true if the TypeInstance resides in a personal cabinet, returns
false if in a shared cabinet. Looks at the CabinetBased ATI. Traps
all exceptions, returns false.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionprotected Objectcalculate(AttributeContainer the_attribute_container) Examines the AttributeContainer for an AttributeTypeIdentifier whose logical identifier cabinet.isPersonal context is true.getFilter(AttributeContainerSpec the_filter, TypeIdentifier type_identifier) Will add the filter this validator needs to the supplied parameter and return that parameter.
-
Method Details
-
getFilter
public AttributeContainerSpec getFilter(AttributeContainerSpec the_filter, TypeIdentifier type_identifier) Will add the filter this validator needs to the supplied parameter and return that parameter. TypeIdentifier can be null, will create a TypeIdentifier for Foldered
Supported API: true- Specified by:
getFilterin interfaceActionValidator- Specified by:
getFilterin classcom.ptc.core.meta.container.common.AbstractValidator- Parameters:
the_filter-type_identifier- Used to get the DefinitionIdentifier for constructing the AttributeTypeIdentifier- Returns:
- AttributeContainerSpec
-
calculate
protected Object calculate(AttributeContainer the_attribute_container) throws InvalidFunctionArgumentException Examines the AttributeContainer for an AttributeTypeIdentifier whose logical identifier cabinet.isPersonal context is true. Returns true if the context is true, else false. Default return value is true for any exceptions/errors.
Supported API: true- Specified by:
calculatein classcom.ptc.core.meta.container.common.AbstractValidator- Parameters:
the_attribute_container-- Returns:
- Object
- Throws:
InvalidFunctionArgumentException
-