Interface TypeService
Type instances represent object metadata information for objects within the system. This service allows
retrieval of Type instances so information about the object and the AttributeDefinition details that
describe what information is stored with the object. The AttributeDefinition details include attribute
definitions that are system-defined and user-defined extended attributes.
The primary use case for this service is to retrieve information that is related to user-defined extended attributes. Because of this fact, the types that are surfaced through this service are the object types that can be extended with custom attribute definitions. All other types are suppressed. This is the identical behavior that is surfaced through the application.
Currently, the type information is immutable. So, the information provided by this service is read-only.
- Since:
- 1.7
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets all the type definitions that are audited in the system.Gets all of the type definitions that are repository contexts in the system.Gets all the type definitions that can be searched in the system.Retrieve all type definitions that are repository contexts that haveType.Capability.TOPin the system.getTypeById(String id) Gets theTypewith the specified unique identifier.getTypes()Gets all the type definitions in the system.getTypesByCapability(Type.Capability capability) Retrieve all type definitions that have the specified capabilityType.Capabilityin the system.booleanisTypeCapable(String id, Type.Capability capability) Indicates whether the capability is available at the specified type.booleantypeExists(String id) Indicates whether aTypewith the specified unique identifier exists within the system.
-
Method Details
-
typeExists
Indicates whether aTypewith the specified unique identifier exists within the system.- Parameters:
id- the unique identifier to search for.- Returns:
True, if the type definition exists,Falseotherwise.
-
getTypeById
Gets theTypewith the specified unique identifier. If theTypedoes not exist, aTypeNotFoundExceptionis thrown.- Parameters:
id- the unique identifier to search for.- Returns:
- The type, if it exists.
- Throws:
TypeNotFoundException- thrown when the type definition does not exist.
-
getTypes
Gets all the type definitions in the system.- Returns:
- A list of all of the type definitions in the system.
- Since:
- 1.7
-
getSearchableTypes
Gets all the type definitions that can be searched in the system.- Returns:
- A list of all of the type definitions that can be searched in the system.
- Since:
- 2.2
-
getAuditableTypes
Gets all the type definitions that are audited in the system.- Returns:
- A list of all of the type definitions that are audited in the system.
- Since:
- 2.2
-
getContextTypes
Gets all of the type definitions that are repository contexts in the system.- Returns:
- A list of all of the type definitions that are repository contexts in the system.
- Since:
- 2.1
-
getTopLevelTypes
List<TypeDescriptor> getTopLevelTypes()Retrieve all type definitions that are repository contexts that haveType.Capability.TOPin the system.- Returns:
- the list of all type definitions that are repository contexts that have
Type.Capability.TOPin the system. - Since:
- 2.1
-
getTypesByCapability
Retrieve all type definitions that have the specified capabilityType.Capabilityin the system.- Parameters:
capability- the capability of the type definition.- Returns:
- the list of all type definitions that have the specified capability
Type.Capabilityin the system. - Since:
- 2.3
-
isTypeCapable
Indicates whether the capability is available at the specified type.- Parameters:
id- the unique identifier to search for.capability- the capability of the type definition.- Returns:
- A
booleanvalue that indicates whether the type has the capability. - Since:
- 2.3
-