public interface IUnit
This interface is not intended to be implemented by clients.
| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECTION
Collection
|
static String |
CREATED_AT
Creation time of the object
|
static String |
CREATED_BY
Creator of the object
|
static String |
DEVELOPMENT_COMPONENT_NAME
The name of the Development Component to which this unit is assigned.
|
static String |
DEVELOPMENT_COMPONENT_VENDOR
The vendor (-id) of the Development Component to which this unit is assigned.
|
static String |
DOMAIN
Domain
|
static String |
IS_TEMPLATE
Optional attribute for units that serve as templates for others.
|
static String |
LAST_CHANGED_AT
Last time the object was changed
|
static String |
LAST_CHANGED_BY
Last user who changed the object
|
static String |
ORIGINAL_LOCALE
Original Locale
|
static String |
RESPONSIBLE
Responsible person
|
static String |
SYSTEM_LOCAL_DEVELOPMENT_COMPONENT
Defines the name of the built-in Development Component for system-local objects.
|
static String |
SYSTEM_LOCAL_GENERATED_DEVELOPMENT_COMPONENT
Defines the name of the built-in Development Component for generated system-local objects.
|
static String |
TRANSPORT_DEPENDENCIES
Deprecated.
|
static String |
UNIT_ATTR_NAMESPACE
Namespace of all unit attributes
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkOutForEdit(Object versionControlActivity,
boolean exclusive)
Deprecated.
version-control not fully supported; changes expected in future releases
|
String |
getCollection()
Get the value for the collection unit attribute, which is
used for in the translation of the texts belonging to this unit.
|
String |
getDomain()
Get the value for the domain unit attribute, which is
used for in the translation of the texts belonging to this unit.
|
ILockHandle |
getLockHandle()
Returns the lock handle, which allows to lock or unlock this unit
|
String |
getNameInNamespace()
The name of the unit is returned.
|
String |
getOriginalCountry()
Deprecated.
please use
getOriginalLocale() instead |
String |
getOriginalLanguage()
Deprecated.
please use
getOriginalLocale() instead |
Locale |
getOriginalLocale()
Get the value for the original-locale unit attribute, which is
used for in the translation of the texts belonging to this unit.
|
IPcdAttributes |
getUnitAttributes()
Returns the unit attributes.
|
IVersionControlInfo |
getVersionControlInfo()
Deprecated.
version-control not fully supported; changes expected in future releases
|
boolean |
isTransportable()
Deprecated.
evaluate the
DEVELOPMENT_COMPONENT_NAME attribute instead |
void |
modifyUnitAttributes(ModificationItem[] mods)
Modifies the unit attributes.
|
void |
setCollection(String collection)
Set the value for the collection unit attribute, which is
used for in the translation of the texts belonging to this unit.
|
void |
setDevelopmentComponent(Object versionControlActivity,
String developmentComponentVendor,
String developmentComponentName)
Deprecated.
version-control not fully supported; changes expected in future releases
|
void |
setDomain(String domain)
Set the value for the domain unit attribute, which is
used for in the translation of the texts belonging to this unit.
|
void |
setOriginalCountry(String country)
Deprecated.
please use
setOriginalLocale(java.util.Locale) instead |
void |
setOriginalLanguage(String language)
Deprecated.
please use
setOriginalLocale(java.util.Locale) instead |
void |
setOriginalLocale(Locale locale)
Set the value for the original-language attribute, which is
used for in the translation of the texts belonging to this unit.
|
void |
setTransportable(boolean isTransportable)
Deprecated.
use method
setDevelopmentComponent(Object, String, String) instead. |
static final String UNIT_ATTR_NAMESPACE
static final String CREATED_BY
static final String CREATED_AT
static final String LAST_CHANGED_BY
static final String LAST_CHANGED_AT
static final String RESPONSIBLE
static final String COLLECTION
static final String DOMAIN
static final String ORIGINAL_LOCALE
static final String DEVELOPMENT_COMPONENT_NAME
This attribute can be set during object creation using
IPcdContext.bind(javax.naming.Name, Object, javax.naming.directory.Attributes, int), but
cannot be modified by method modifyUnitAttributes(ModificationItem[]). Changing the development component
of existing objetcs has to be done by calling method setDevelopmentComponent(Object, String, String) instead.
For more details, please refer to the chapter on Versioning in the
package description of com.sapportals.portal.pcd.gl.
static final String DEVELOPMENT_COMPONENT_VENDOR
This attribute can be set during object creation using
IPcdContext.bind(javax.naming.Name, Object, javax.naming.directory.Attributes, int), but
cannot be modified by method modifyUnitAttributes(ModificationItem[]). Changing the development component
of existing objects has to be done by calling method setDevelopmentComponent(Object, String, String) instead.
For more details, please refer to the chapter on Versioning in the
package description of com.sapportals.portal.pcd.gl.
static final String SYSTEM_LOCAL_DEVELOPMENT_COMPONENT
setDevelopmentComponent(java.lang.Object, java.lang.String, java.lang.String) later on.
The DEVELOPMENT_COMPONENT_VENDOR attribute is empty for system-local objects.
For more details, please refer to the chapter on Versioning in the
package description of com.sapportals.portal.pcd.gl.
static final String SYSTEM_LOCAL_GENERATED_DEVELOPMENT_COMPONENT
The DEVELOPMENT_COMPONENT_VENDOR attribute is empty for generated system-local objects.
For more details, please refer to the chapter on Versioning in the
package description of com.sapportals.portal.pcd.gl.
static final String TRANSPORT_DEPENDENCIES
IPcdAttribute.TRANSPORT_DEPENDENCIESNote that the dependencies have to be set on DCs for the NWDI based transport. Nevertheless, this information is useful for correlating the PCD object dependencies with the DC dependencies.
static final String IS_TEMPLATE
String getNameInNamespace() throws NamingException
NamingException - if a naming exception is encounteredILockHandle getLockHandle() throws NamingException
ILockHandleNamingException - if a naming exception is encounteredIPcdAttributes getUnitAttributes() throws NamingException
NamingException - if a naming exception is encounteredvoid modifyUnitAttributes(ModificationItem[] mods) throws NamingException
mods - modification itemsNamingException - if a naming exception is encounteredIVersionControlInfo getVersionControlInfo() throws NamingException
NamingException - if a naming exception is encounteredvoid checkOutForEdit(Object versionControlActivity, boolean exclusive) throws NamingException
versionControlActivity - the activity (change list) used
for the check-out operation in the version-control system.
For convenience, it is also possible to pass null, if the activity is
set in the JNDI environment of the context that was used to lookup this object. The constant for
this environment variable is defined by com.sap.portal.directory.Constants.VERSION_CONTROL_ACTIVITY.exclusive - if true, the object cannot be checked-out by other users; note that the implementation
may check-out objects exclusively even if false is specifiedNamingException - if the object cannot be checked outvoid setDevelopmentComponent(Object versionControlActivity, String developmentComponentVendor, String developmentComponentName) throws NamingException
If the current setting of the
DEVELOPMENT_COMPONENT_NAME attribute is SYSTEM_LOCAL_DEVELOPMENT_COMPONENT,
the object will be added to version control. If the object was already assigned to
a real development component, this call will effectively move the corresponding
resources in the DTR according to the new location. If the current setting of the
DEVELOPMENT_COMPONENT_NAME attribute is SYSTEM_LOCAL_GENERATED_DEVELOPMENT_COMPONENT,
an exception is thrown, because it is not possible to add generated objects to
version control.
versionControlActivity - the activity (change list) used for this operation in the version-control systemdevelopmentComponentVendor - the vendor-id for this development componentdevelopmentComponentName - the name of this development componentNamingException - if the object cannot be added to version-controlString getCollection()
null if collection not set.void setCollection(String collection) throws NamingException
collection - the value for the collection attribute as string,
null if the attribute should be removed (cleared).NamingException - if a naming exception is encounteredString getDomain()
null if domain is not set.void setDomain(String domain) throws NamingException
domain - the value for the domain attribute as string,
null if the attribute should be removed (cleared).NamingException - if a naming exception is encounteredLocale getOriginalLocale()
null if no original locale is set.setOriginalLocale(java.util.Locale)void setOriginalLocale(Locale locale) throws NamingException
locale - the new value for the original locale,
null if the attribute should be removed (cleared).NamingException - if a naming exception is encounteredString getOriginalLanguage()
getOriginalLocale() insteadvoid setOriginalLanguage(String language) throws NamingException
setOriginalLocale(java.util.Locale) insteadlanguage - original-language attributeNamingException - if a naming exception is encounteredString getOriginalCountry()
getOriginalLocale() insteadvoid setOriginalCountry(String country) throws NamingException
setOriginalLocale(java.util.Locale) insteadcountry - the country part of the original-locale attributeNamingException - if a naming exception is encounteredboolean isTransportable()
DEVELOPMENT_COMPONENT_NAME attribute insteadsetTransportable(boolean)void setTransportable(boolean isTransportable)
throws NamingException
setDevelopmentComponent(Object, String, String) instead.isTransportable - if true transportableNamingException - if a naming exception is encounteredisTransportable()| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS
|
[sap.com]
|
api
|
BC-PIN-PCD
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcd/gl/api
|
-
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcd/gl/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice