public interface ProfileOptionService
Modifier and Type | Field and Description |
---|---|
static String |
SITE_LEVEL_NAME |
static String |
USER_LEVEL_NAME |
Modifier and Type | Method and Description |
---|---|
void |
createProfileOption(ProfileOption profileOption)
Creates a profile option.
|
ProfileOption[] |
getProfileOptions(String profileOptionCode,
String profileOptionName,
String activeFlag,
String sysAdminVisibleOnly,
String userVisibleOnly)
Retrieves profile options based on
ExternalApplicationTxt ,
profileOptionCode , profileOptionName ,
activeFlag , sysAdminVisibleOnly , and
userVisibleOnly . |
String |
getProfileOptionValue(String profileOptionCode)
Retrieves the value of a profile option.
|
String |
getProfileOptionValueForLevel(String profileOptionCode,
String profileLevelCode,
String profileLevelValueId)
Retrieves the value of a profile option for a specific level and level
instance.If not value is set at the specific level and level instance, it
will return the value set at SITE level.
|
void |
inactivateProfileOption(String profileOptionCode)
Deactivates a profile option by setting the
EffectiveEndDate
as the current date and time. |
void |
setProfileOptionValue(ProfileOptionValue profileOptionValue)
Sets the value of a profile option.
|
void |
updateProfileOption(ProfileOption profileOption)
Updates a profile option.
|
static final String USER_LEVEL_NAME
static final String SITE_LEVEL_NAME
void createProfileOption(ProfileOption profileOption) throws HDRConfigException
profileOption
- ProfileOption
value object that have to
be created.HDRConfigException
- ProfileOptionCode
is not unique.ProfileOptionName
is not unique.EffectiveStartDate
of the profile option is later
than EffectiveEndDate
.SiteUpdateableFlag
is
set to "Y" when SiteVisibleFlag
is set to "N".UserAccessUpdateableFlag
is set to "Y" when
UserUpdateableFlag
is set to "N".Constraint1
does not contain valid concept lists when
ValueTypeCode
is set to "LOOKUP".void updateProfileOption(ProfileOption profileOption) throws HDRConfigException
profileOption
- ProfileOption
value object that have to
be updated.HDRConfigException
- ProfileOptionName
is not unique.EffectiveStartDate
of the profile option is later
than EffectiveEndDate
.SiteUpdateableFlag
is
set to "Y" when SiteVisibleFlag
is set to "N".UserAccessUpdateableFlag
is set to "Y" when
UserUpdateableFlag
is set to "N".Constraint1
does not contain valid concept lists when
ValueTypeCode
is set to "LOOKUP".void inactivateProfileOption(String profileOptionCode) throws HDRConfigException
EffectiveEndDate
as the current date and time. For any inactivated profile option, we can
neither set the profile value nor get the profile value. profileOptionCode
- ProfileOption
value oject that have
to be deactivated.HDRConfigException
- If ProfileOptionCode
is not valid.ProfileOption[] getProfileOptions(String profileOptionCode, String profileOptionName, String activeFlag, String sysAdminVisibleOnly, String userVisibleOnly) throws HDRConfigException
ExternalApplicationTxt
,
profileOptionCode
, profileOptionName
,
activeFlag
, sysAdminVisibleOnly
, and
userVisibleOnly
.
profileOptionCode
- Unique identifier of the profile option.profileOptionName
- Name of the profile option.activeFlag
- Status of the profile option. The valid values are "Y"
and "N". Indicate "Y" if the profile option is active and "N" if
inactive.sysAdminVisibleOnly
- Flag indicating if the profile options to be
retrieved are visible to the system administrator at any level. The valid
values are "Y" and "N".userVisibleOnly
- Flag indicating if the profile options to be
retrieved are visible to the user. The valid values are "Y" and "N".ProfileOption
value objects that meet the
criteria.HDRConfigException
void setProfileOptionValue(ProfileOptionValue profileOptionValue) throws HDRConfigException
profileOptionValue
- ProfileOptionValue
value object.HDRConfigException
- ProfileOptionValue
is invalid.ProfileOptionValue
does not contain valid concept
list when ValueTypeCode
is set to "LOOKUP".ProfileOptionLevelValue
is not a user identifier when
ProfileOptionLevelCode
is set to "USER".ProfileOptionLevelCode
is invalid.String getProfileOptionValue(String profileOptionCode) throws HDRConfigException
null
, the
value for the site level is retrieved.null
, if the all the visible flags at sysadnin
level is set to 'N'.null
, if the visible flag at user level is set
to 'N'.profileOptionCode
- ProfileOptionCode
.null
if the profile
option is not set at any of the level instances. Will return null value
for an inactivated profile option. But the API is dependent on the
middle-tier cache to retrieve the value for an inactivated profile
option. So till the middle-tier cache is synchronized with the DB this
api will return the profile value. Cache timing can be controlled through
the caching framework global setting.HDRConfigException
- If the ProfileOptionCode
is invalid.String getProfileOptionValueForLevel(String profileOptionCode, String profileLevelCode, String profileLevelValueId) throws HDRConfigException
null
, if the all the
visible flags at sysadnin level is set to 'N'.
Retrievesnull
, if the visible flag at user level is set to
'N' or if the visible flag at that specific level is set to 'N'profileOptionCode
- ProfileOptionCode
of this
ProfileOption
. This attribute is mandatory.profileLevelCode
- ProfileOptionLevelCode
of this
ProfileOption
. This attribute is mandatory and is validated
against the
CTB_PROFILE_OPTION_LEVELS
concept list.profileLevelValueId
- ProfileOptionLevelValue
of this
ProfileOption
.
ProfileOptionLevelCode
is "USER", the parameter must
be the user identifier.ProfileOptionLevelCode
is "SITE", the parameter must
be null
.ProfileOptionLevelCode
is not
"SITE".HDRConfigException
- ProfileOptionCode
is invalid.ProfileOptionLevelCode
is invalid.ProfileOptionLevelValue
is invalid.HDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved