public class OdiContext extends oracle.odi.domain.support.AbstractOdiEntity implements IContext, IFlexFieldUser, IMasterOdiEntity, oracle.odi.domain.impexp.IExportable, oracle.odi.impexp.smartie.ISmartExportable, oracle.odi.core.audit.support.IAuditableFirstClassObject
This class doesn't provides any method to manage mapping between physical
schema and logical schema. It only permit to define a context in the ODI topology.
Such OdiContext can then be used to map schemas using the class
OdiContextualSchemaMapping.
OdiPhysicalSchema,
OdiLogicalSchema,
OdiContextualSchemaMapping,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
CODE_MAX_LENGTH
Max length of context code.
|
static int |
NAME_MAX_LENGTH
Max length of context name.
|
| Constructor and Description |
|---|
OdiContext(java.lang.String pCode)
Create a new
OdiContext with given code. |
OdiContext(java.lang.String pName,
java.lang.String pCode)
Create a new
OdiContext with given name and code. |
| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(char[] pOldPassword,
char[] pNewPassword,
OdiInstance pOdiInstance)
Method verifies if pOldPassword equals current password set for this context or if it wasn't previously set and updates the context's password to pNewPassword if checks passed.
|
java.lang.String |
getCode()
Returns this
OdiContext's code. |
java.lang.Number |
getContextId()
Returns the Internal Context ID.
|
java.util.Collection |
getFlexFieldsValues()
Obtains flex fields values related to this
IFlexFieldUser. |
java.io.Serializable |
getInternalId()
Provides a common getter for the persistence layer to obtain an identity,
irrespective of the actual type of identity used.
|
java.lang.String |
getName()
Returns the Context Name.
|
void |
initFlexFields(IOdiFlexFieldFinder pOdiFlexFieldFinder)
Initialize flex fields related to this
IFlexFieldUser. |
boolean |
isDefaultContext()
Returns whether this
OdiContext has been defined as default OdiContext,
or not. |
boolean |
isInstanceLevelSecurityNeeded()
Internal: this method is for internal purpose and must not be considered
as part of the public API.
|
void |
setName(java.lang.String pName)
Sets the Context Name.
|
boolean |
verifyPassword(char[] pPassword,
OdiInstance pOdiInstance)
Verifies if password provided matches context's current password.
|
getFirstDate, getFirstUser, getInternalVersion, getLastDate, getLastUser, isNew, preCommit, toStringequals, getBigNumericId, getGlobalId, getNumericId, getParent, hashCodegetBigNumericId, getGlobalId, getNumericIdgetFirstDate, getFirstUser, getLastDate, getLastUsergetGlobalId, getParentpublic static final int CODE_MAX_LENGTH
public static final int NAME_MAX_LENGTH
public OdiContext(java.lang.String pCode)
OdiContext with given code.
This constructor also defines the context's name with that code value as a default name value for this OdiContext.
pCode - the context's codepublic OdiContext(java.lang.String pName,
java.lang.String pCode)
OdiContext with given name and code.pName - context's namepCode - context's codepublic java.lang.Number getContextId()
public java.io.Serializable getInternalId()
IRepositoryEntity
Typically a subclass will delegate to a public
SomePrimitiveWrapper getId() method. The necessity for the
getInternalId() abstract method is solely because the
persistence layer needs a way of obtaining the identity irrespective of
the actual identity implementation choice.
Returning null from this method will indicate the object has
never been saved. This will likely be relied on by some DAO
implementations.
getInternalId in interface IRepositoryEntitypublic boolean isInstanceLevelSecurityNeeded()
IOdiEntityDefines a method to capture the info on which object needs instance level privilege.
isInstanceLevelSecurityNeeded in interface IOdiEntityisInstanceLevelSecurityNeeded in class oracle.odi.domain.support.AbstractOdiEntitytrue if instance level security needed,
false otherwisepublic java.lang.String getCode()
OdiContext's code.public boolean isDefaultContext()
OdiContext has been defined as default OdiContext,
or not.true if this is the default context,
false otherwisepublic java.lang.String getName()
getName in interface IFlexFieldUsergetName in interface IModelObjectgetName in interface IContextgetName in interface IOdiEntitygetName in class oracle.odi.domain.support.AbstractOdiEntitysetName(String)public void setName(java.lang.String pName)
public java.util.Collection getFlexFieldsValues()
IFlexFieldUserIFlexFieldUser.
In most implementations method IFlexFieldUser.initFlexFields(IOdiFlexFieldFinder) should be
called before calling this method.getFlexFieldsValues in interface IFlexFieldUserpublic void initFlexFields(IOdiFlexFieldFinder pOdiFlexFieldFinder)
IFlexFieldUserIFlexFieldUser.initFlexFields in interface IFlexFieldUserpOdiFlexFieldFinder - OdiFlexField finder to be used to query flex fieldspublic void changePassword(char[] pOldPassword,
char[] pNewPassword,
OdiInstance pOdiInstance)
pOldPassword - unencrypted password set for this context, null or empty array in case the context wasn't password protectedpNewPassword - new password to set, null or empty array to remove passwordpOdiInstance - the password encryption in 12.1.3 is AES which is dependent on odi instancepublic boolean verifyPassword(char[] pPassword,
OdiInstance pOdiInstance)
pPassword - password to compare current one with.pOdiInstance - needed for password encryption and decryption since in 12.1.3 encryption and decryption is OdiInstnace dependent.