TypeDao instead@Deprecated public class TypeManager extends Manager
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TypeManager.TypeManagerSerializableDTO
Deprecated.
|
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator| Constructor and Description |
|---|
TypeManager()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assureNoItem(Class c)
Deprecated.
|
protected void |
checkBeforeItemRemoval(SessionContext ctx,
Item item)
Deprecated.
Avoiding calls to ejb layer except for
AttributeDescriptor and Type instances. |
protected void |
checkForRelationAttribute(boolean localized,
AttributeDescriptor fd)
Deprecated.
|
AtomicType |
createAtomicType(AtomicType superType,
Class javaClass)
Deprecated.
use ModelService.create to create instances
|
AtomicType |
createAtomicType(AtomicType superType,
String code)
Deprecated.
use ModelService.create to create instances
|
AtomicType |
createAtomicType(Class javaClass)
Deprecated.
use ModelService.create to create instances
|
AtomicType |
createAtomicType(PK pkBase,
AtomicType superType,
Class javaClass)
Deprecated.
use ModelService.create to create instances
|
AtomicType |
createAtomicType(PK pkBase,
AtomicType superType,
String code)
Deprecated.
use ModelService.create to create instances
|
AtomicType |
createAtomicType(PK pkBase,
Class javaClass)
Deprecated.
use ModelService.create to create instances
|
CollectionType |
createCollectionType(PK pk,
String code,
Type type)
Deprecated.
use ModelService.create to create instances
|
CollectionType |
createCollectionType(PK pkBase,
String code,
Type type,
int typeOfCollection)
Deprecated.
use ModelService.create to create instances
|
CollectionType |
createCollectionType(String code,
Type type)
Deprecated.
use ModelService.create to create instances
|
CollectionType |
createCollectionType(String code,
Type type,
int typeOfCollection)
Deprecated.
use ModelService.create to create instances
|
ComposedType |
createComposedType(ComposedType superType,
String code)
Deprecated.
use ModelService.create to create instances
|
ComposedType |
createComposedType(PK pkBase,
ComposedType superType,
String code)
Deprecated.
use ModelService.create to create instances
|
MapType |
createMapType(PK pkBase,
String code,
Type argumentType,
Type returnType)
Deprecated.
use ModelService.create to create instances
|
MapType |
createMapType(String code,
Type argumentType,
Type returnType)
Deprecated.
use ModelService.create to create instances
|
RelationDescriptor |
createRelationAttribute(PK pkBase,
String relationName,
ComposedType enclosingType,
String qualifier,
ComposedType attributeType,
int modifiers,
boolean localized)
Deprecated.
use proper service to create instances
|
RelationDescriptor |
createRelationAttribute(PK pkBase,
String relationName,
ComposedType enclosingType,
String qualifier,
ComposedType attributeType,
int modifiers,
boolean localized,
int typeOfCollection)
Deprecated.
use proper service to create instances
|
protected RelationDescriptor |
createRelationDescriptor(PK pk,
String relationName,
ComposedType enclosingType,
String qualifier,
ComposedType otherEndItemType,
int modifiers,
boolean localized)
Deprecated.
use proper service to create instances
|
protected RelationDescriptor |
createRelationDescriptor(String relationName,
ComposedType enclosingType,
String qualifier,
ComposedType otherEndItemType,
int modifiers,
boolean localized)
Deprecated.
use proper service to create instances
|
RelationType |
createRelationType(PK pk,
String relationName,
boolean localized,
AttributeDescriptor sourceFD,
AttributeDescriptor targetFD)
Deprecated.
use proper service to create instances
|
RelationType |
createRelationType(String relationName,
boolean localized,
AttributeDescriptor sourceFD,
AttributeDescriptor targetFD)
Deprecated.
use proper service to create instances
|
SearchRestriction |
createRestriction(String code,
Principal principal,
ComposedType restrictedType,
String query)
Deprecated.
use ModelService.create to create instances
|
Set<? extends AtomicType> |
getAllAtomicTypes()
Deprecated.
- write own flexible search to fetch desired types
|
Set<? extends CollectionType> |
getAllCollectionTypes()
Deprecated.
- write own flexible search to fetch desired types
|
Set<? extends ComposedType> |
getAllComposedTypes()
Deprecated.
- write own flexible search to fetch desired types
|
Set<? extends MapType> |
getAllMapTypes()
Deprecated.
- write own flexible search to fetch desired types
|
Set |
getAllTypes()
Deprecated.
- write own flexible search to fetch desired types
|
Set |
getAtomicTypesForJavaClass(Class javaClass)
Deprecated.
use TypeService instead.
|
ComposedType |
getComposedType(Class jaloClass)
Deprecated.
use TypeService instead.
|
ComposedType |
getComposedType(String code)
Deprecated.
use TypeService instead
|
static TypeManager |
getInstance()
Deprecated.
|
Class |
getRemoteManagerClass()
Deprecated.
|
Collection |
getRestrictions(Principal principal,
ComposedType type)
Deprecated.
use SearchRestrictionService or FlexibleSearch instead
|
AtomicType |
getRootAtomicType(Class javaClass)
Deprecated.
|
ComposedType |
getRootComposedType(Class jaloClass)
Deprecated.
Finds the top most composed type starting with the one matching the given jalo class ( see
getComposedType(Class) for match by jalo class ). |
ComposedType |
getRootComposedType(int typeCode)
Deprecated.
The type matching an item ejb typecode.
|
ComposedType |
getRootComposedTypeForJaloClass(Class jaloClass)
Deprecated.
|
SearchRestriction |
getSearchRestriction(ComposedType ct,
String code)
Deprecated.
use SearchRestrictionService or FlexibleSearch instead
|
Collection |
getSearchRestrictions(Principal principal,
ComposedType restrictedType)
Deprecated.
|
Collection<SearchRestriction> |
getSearchRestrictions(Principal principal,
ComposedType type,
boolean includeGroups,
boolean includeSuperTypes,
boolean includeSubtypes)
Deprecated.
|
Type |
getType(String code)
Deprecated.
use TypeService.getTypeForCode() instead.
|
protected TypeManagerEJB |
getTypeManagerEJB()
Deprecated.
|
void |
init()
Deprecated.
called once for each tenant, so this method fits best to perform some initialization stuff
|
protected void |
notifyItemRemoval(SessionContext ctx,
Item item)
Deprecated.
Superclass method overridden to avoid call to ajb layer.
|
Object |
writeReplace()
Deprecated.
|
afterItemCreation, beforeItemCreation, destroy, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemote, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, setAttribute, setTenant, setTransientObject, unwrap, unwrap, wrappublic static final String BEAN_NAME
public void init()
Managerpublic Class getRemoteManagerClass()
getRemoteManagerClass in class Managerpublic static TypeManager getInstance()
@Deprecated public Type getType(String code) throws JaloItemNotFoundException
code - The code of the searched type.Type with the given code.JaloItemNotFoundException - if there is no Type with the given code.protected void checkBeforeItemRemoval(SessionContext ctx, Item item) throws ConsistencyCheckException
AttributeDescriptor and Type instances.checkBeforeItemRemoval in class Managerctx - the current session contextitem - the item which should be removedConsistencyCheckException - thrown to abort removal due to consistency errorsprotected void notifyItemRemoval(SessionContext ctx, Item item)
restrictions for a
Principal which is going to be removed.notifyItemRemoval in class Managerctx - the currency session contextitem - the item which is going to be removed@Deprecated public Set getAllTypes()
@Deprecated public Set<? extends AtomicType> getAllAtomicTypes()
@Deprecated public Set<? extends ComposedType> getAllComposedTypes()
@Deprecated public Set<? extends CollectionType> getAllCollectionTypes()
@Deprecated public Set<? extends MapType> getAllMapTypes()
@Deprecated public Set getAtomicTypesForJavaClass(Class javaClass)
public AtomicType getRootAtomicType(Class javaClass) throws JaloItemNotFoundException
JaloItemNotFoundException@Deprecated public ComposedType getComposedType(Class jaloClass) throws JaloItemNotFoundException
jaloClass - the jalo class which the type have to match exactlyComposedTypeJaloItemNotFoundException - in case there is no such typepublic ComposedType getRootComposedType(Class jaloClass) throws JaloItemNotFoundException
getComposedType(Class) for match by jalo class ). if the jalo class type is already abstract it will be
returned, otherwise its top most non-abstract super-type.jaloClass - the jalo class matching the start typeComposedTypeJaloItemNotFoundException - if no type matched the jalo classpublic ComposedType getRootComposedType(int typeCode) throws JaloItemNotFoundException
typeCode - the item ejb typecodeComposedTypeJaloItemNotFoundException - if no such type exist@Deprecated public ComposedType getComposedType(String code) throws JaloItemNotFoundException
code - the exact code of the typeComposedTypeJaloItemNotFoundException - if no such type exist@Deprecated public AtomicType createAtomicType(Class javaClass) throws JaloInvalidParameterException, JaloDuplicateCodeException
AtomicType for the given class.javaClass - the class of the AtomicType which should be createdAtomicTypeJaloInvalidParameterException - if the given class is not a valid class for an AtomicTypeJaloDuplicateCodeException - if the already exists a AtomicType with the given class.@Deprecated public AtomicType createAtomicType(PK pkBase, Class javaClass) throws JaloDuplicateCodeException, JaloInvalidParameterException
AtomicType for the given class.pkBase - the pk for the new item; it will be equipped with type code additionally (javaClass - the class of the AtomicType which should be createdAtomicTypeJaloInvalidParameterException - if the given class is not a valid class for an AtomicTypeJaloDuplicateCodeException - if the already exists a AtomicType with the given class.@Deprecated public AtomicType createAtomicType(AtomicType superType, Class javaClass) throws JaloInvalidParameterException, JaloDuplicateCodeException
AtomicType for the given class.superType - the super type of the AtomicType which should be createdjavaClass - the class of the AtomicType which should be createdAtomicTypeJaloInvalidParameterException - if the given class is not a valid class for an AtomicTypeJaloDuplicateCodeException - if the already exists a AtomicType with the given class.@Deprecated public AtomicType createAtomicType(PK pkBase, AtomicType superType, Class javaClass) throws JaloDuplicateCodeException, JaloInvalidParameterException
AtomicType for the given class.pkBase - the pk for the new item; it will be equipped with type code additionally (superType - the super type of the AtomicType which should be createdjavaClass - the class of the AtomicType which should be createdAtomicTypeJaloInvalidParameterException - if the given class is not a valid class for an AtomicTypeJaloDuplicateCodeException - if the already exists a AtomicType with the given class.@Deprecated public AtomicType createAtomicType(AtomicType superType, String code) throws JaloInvalidParameterException, JaloDuplicateCodeException
AtomicType for the given class.superType - the super type of the AtomicType which should be createdcode - the code of the AtomicType which should be createdAtomicTypeJaloInvalidParameterException - if any of the parameters is nullJaloDuplicateCodeException - if the already exists a AtomicType with the given class.@Deprecated public AtomicType createAtomicType(PK pkBase, AtomicType superType, String code) throws JaloDuplicateCodeException, JaloInvalidParameterException
AtomicType for the given class.pkBase - the pk for the new item; it will be equipped with type code additionally (superType - the super type of the AtomicType which should be createdcode - the code of the AtomicType which should be createdAtomicTypeJaloInvalidParameterException - if any of the parameters is nullJaloDuplicateCodeException - if the already exists a AtomicType with the given class.@Deprecated public ComposedType createComposedType(ComposedType superType, String code) throws JaloInvalidParameterException, JaloDuplicateCodeException
@Deprecated public ComposedType createComposedType(PK pkBase, ComposedType superType, String code) throws JaloDuplicateCodeException, JaloInvalidParameterException
@Deprecated public CollectionType createCollectionType(String code, Type type) throws JaloInvalidParameterException, JaloDuplicateCodeException
@Deprecated public CollectionType createCollectionType(PK pk, String code, Type type) throws JaloInvalidParameterException, JaloDuplicateCodeException
@Deprecated public CollectionType createCollectionType(String code, Type type, int typeOfCollection) throws JaloInvalidParameterException, JaloDuplicateCodeException
@Deprecated public CollectionType createCollectionType(PK pkBase, String code, Type type, int typeOfCollection) throws JaloDuplicateCodeException, JaloInvalidParameterException
@Deprecated public MapType createMapType(String code, Type argumentType, Type returnType) throws JaloInvalidParameterException, JaloDuplicateCodeException
@Deprecated public MapType createMapType(PK pkBase, String code, Type argumentType, Type returnType) throws JaloDuplicateCodeException, JaloInvalidParameterException
@Deprecated public SearchRestriction createRestriction(String code, Principal principal, ComposedType restrictedType, String query) throws JaloInvalidParameterException
JaloInvalidParameterException@Deprecated public SearchRestriction getSearchRestriction(ComposedType ct, String code)
@Deprecated public Collection getSearchRestrictions(Principal principal, ComposedType restrictedType)
FlexibleSearch.getQueryFilters(Principal, ComposedType, boolean, boolean, boolean)principal - the PrincipalrestrictedType - the restricted ComposedTypeCollection of all restrictions for the given Principal on the given
ComposedType@Deprecated public Collection<SearchRestriction> getSearchRestrictions(Principal principal, ComposedType type, boolean includeGroups, boolean includeSuperTypes, boolean includeSubtypes)
FlexibleSearch.getQueryFilters(Principal, ComposedType, boolean, boolean, boolean)principal - the Principaltype - the restricted ComposedTypeincludeGroups - if true restrictions for all groups of the principal are includedincludeSuperTypes - if true restrictions for all supertypes of the type are includedincludeSubtypes - if true restrictions for all subtypes of the type are includedCollection of all restrictions for the given Principal on the given
ComposedType@Deprecated public RelationType createRelationType(String relationName, boolean localized, AttributeDescriptor sourceFD, AttributeDescriptor targetFD) throws JaloInvalidParameterException, JaloDuplicateCodeException, JaloDuplicateQualifierException
@Deprecated public RelationType createRelationType(PK pk, String relationName, boolean localized, AttributeDescriptor sourceFD, AttributeDescriptor targetFD) throws JaloInvalidParameterException, JaloDuplicateCodeException, JaloDuplicateQualifierException
@Deprecated protected RelationDescriptor createRelationDescriptor(String relationName, ComposedType enclosingType, String qualifier, ComposedType otherEndItemType, int modifiers, boolean localized) throws JaloDuplicateQualifierException
relationName - the name of the new relatonenclosingType - the owning type of this attribute ( this is not the relation type ! )qualifier - the qualifier of the relation attributeotherEndItemType - the type of the other end of the new relationmodifiers - the attribute modifierslocalized - whether the relation is localized or notRelationDescriptorJaloDuplicateQualifierException - in case the owning type already got attribute with the given qualifier@Deprecated protected RelationDescriptor createRelationDescriptor(PK pk, String relationName, ComposedType enclosingType, String qualifier, ComposedType otherEndItemType, int modifiers, boolean localized) throws JaloDuplicateQualifierException
pk - the pk for the new item; it will be equipped with type code additionally (relationName - the name of the new relatonenclosingType - the owning type of this attribute ( this is not the relation type ! )qualifier - the qualifier of the relation attributeotherEndItemType - the type of the other end of the new relationmodifiers - the attribute modifierslocalized - whether the relation is localized or notRelationDescriptorJaloDuplicateQualifierException - in case the owning type already got attribute with the given qualifierprotected void checkForRelationAttribute(boolean localized,
AttributeDescriptor fd)
protected TypeManagerEJB getTypeManagerEJB()
public ComposedType getRootComposedTypeForJaloClass(Class jaloClass) throws JaloItemNotFoundException
JaloItemNotFoundException@Deprecated public Collection getRestrictions(Principal principal, ComposedType type)
@Deprecated public RelationDescriptor createRelationAttribute(PK pkBase, String relationName, ComposedType enclosingType, String qualifier, ComposedType attributeType, int modifiers, boolean localized) throws JaloDuplicateQualifierException
JaloDuplicateQualifierException@Deprecated public RelationDescriptor createRelationAttribute(PK pkBase, String relationName, ComposedType enclosingType, String qualifier, ComposedType attributeType, int modifiers, boolean localized, int typeOfCollection) throws JaloDuplicateQualifierException
JaloDuplicateQualifierExceptionprotected void assureNoItem(Class c) throws JaloInvalidParameterException
JaloInvalidParameterExceptionpublic Object writeReplace() throws ObjectStreamException
writeReplace in class ManagerObjectStreamExceptionCopyright © 2017 SAP SE. All Rights Reserved.