|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IInfoObject
IInfoObject is the core interface for writing a SAP BusinessObjects Enterprise object that interacts
and works within the SAP BusinessObjects Enterprise system. For the client library, this object
allows for the persistence of information sent to the CMS. For the client desktop,
this object defines the appearance of an object type.
Note: This object is serializable and can be used in environments that support fail-over. To ensure the object can be recreated in the event of an application server failure, use a session variable to persist the object across pages. The object can then be retrieved from the session variable from any server in the cluster.
| Nested Class Summary | |
|---|---|
static interface |
IInfoObject.CommitLevel
The CommitLevel interface contains constants corresponding to the
commit levels that are supported for optimistic locking. |
static interface |
IInfoObject.Delta
Internal only. |
static class |
IInfoObject.LocaleOption
The LocaleOption indicates whether you want default, fallback,
or create if not exist behaviour when you call getFiles
|
static interface |
IInfoObject.LockStatus
Internal only. |
static interface |
IInfoObject.PropertySet
|
| Method Summary | |
|---|---|
boolean |
applyDelta(java.lang.String delta)
Internal only. |
boolean |
applyDelta(java.lang.String delta,
int deltaFlags)
Internal only. |
void |
clearTenantID()
Clears the property representing the tenant this object is associated with (by setting the tenant id to 0 or shared). |
void |
deleteNow()
Deletes the current object from the repository. |
int |
getCommitLevel()
Returns the commit consistency level set on this InfoObject. |
java.lang.String |
getCUID()
Returns the object's unique identifier within a cluster. |
java.lang.String |
getDelta()
Internal only. |
java.lang.String |
getDelta(int deltaFlags)
Internal only. |
java.lang.String |
getDescription()
Returns the description of the InfoObject. |
java.lang.String |
getDescription(java.util.Locale locale)
Returns the localized description of this InfoObject with fallback logic. |
java.lang.String |
getDescription(java.util.Locale locale,
boolean doFallback)
Returns the localized description of this InfoObject To read this value, this object must contain the SI_ML_DESCRIPTION property. |
java.util.List |
getDescriptionLocales()
Return a List of all locales in SI_ML_DESCRIPTION If the object has SI_TRANSLATION_STATE property, it is used to prune outdated translations. |
java.util.List |
getFileLocales()
Return a List of all locales in SI_FILES, not including SOURCE Return null if the files bag is single-valued, or it is a new infoobject, and no file hasn't been added yet |
IFiles |
getFiles()
Returns the InfoObject's associated files. |
IFiles |
getFiles(java.util.Locale locale,
IInfoObject.LocaleOption option)
Returns the InfoObject's associated files based on the locale your provided. |
java.lang.String |
getGUID()
Returns the object's globally unique identifier. |
int |
getID()
Returns the unique ID of an InfoObject. |
java.lang.String |
getKeyword()
Returns the keyword of the InfoObject. |
java.lang.String |
getKind()
Returns the kind of the InfoObject. |
ILockInfo |
getLockInfo()
Internal only. |
java.lang.String |
getOwner()
Internal only. |
int |
getOwnerID()
Internal only. |
IInfoObject |
getParent()
Gets the parent object for this object. |
IInfoObject |
getParent(int propertySet)
Gets the parent object for this object. |
java.lang.String |
getParentCUID()
Returns the parent object's cluster unique identifier. |
int |
getParentID()
Returns the ID of the parent object. |
IProcessingInfo |
getProcessingInfo()
Returns the processing information for the object. |
java.lang.String |
getProgID()
Returns the prog id of this InfoObject. |
java.lang.String |
getRUID()
Returns the object's unique identifier within an object package. |
ISchedulingInfo |
getSchedulingInfo()
Returns the scheduling information for the object. |
ISecurityInfo |
getSecurityInfo()
Deprecated. since version 12.0. Use getSecurityInfo2 instead |
ISecurityInfo2 |
getSecurityInfo2()
Returns the security information for the object. |
IFiles |
getSourceFiles(IInfoObject.LocaleOption option)
Returns the InfoObject's SOURCE files |
java.lang.String |
getSpecificKind()
Returns the specific kind of the InfoObject. |
java.lang.String |
getSpecificProgID()
Returns the specific ProgID of this InfoObject. |
int |
getTenantID()
Returns the id of the tenant that this object is associated with. |
java.lang.String |
getTitle()
Returns the title of the InfoObject. |
java.lang.String |
getTitle(java.util.Locale locale)
Returns the localized title of this InfoObject with fallback logic. |
java.lang.String |
getTitle(java.util.Locale locale,
boolean doFallback)
Returns the localized title of this InfoObject To read this value, this object must contain the SI_ML_NAME property. |
java.util.List |
getTitleLocales()
Return a List of all locales in SI_ML_NAME If the object has SI_TRANSLATION_STATE property, it is used to prune outdated translations. |
java.util.Date |
getUpdateTimeStamp()
Returns the date and time of when this object was last updated. |
boolean |
isDirty()
Returns true if any of the object's properties have been changed. |
boolean |
isInstance()
Returns true if this object is an instance. |
boolean |
isLockHeld()
Internal only. |
boolean |
isMarkedAsRead()
Return true if the object has been read, and false otherwise. |
boolean |
isReadOnly()
Return true if the object is read only. |
IProperties |
properties()
Returns a collection of properties. |
java.lang.Integer[] |
propertyIDs()
Returns a collection of InfoObject property IDs. |
void |
releaseLock()
Internal only. |
IFiles |
removeFiles(java.util.Locale locale)
Removes an IFiles associated with a certain locale. |
IFiles |
removeSourceFiles()
Removes the InfoObject's SOURCE files. |
void |
retrievePropertySet(int propertySet)
Retrieves the property set from the repository. |
void |
save()
Saves the current object into the CMS repository. |
void |
setCommitLevel(int cl)
Sets the commit consistency level, e.g., how property version conflicts will be resolved. |
void |
setDescription(java.lang.String newDescription)
Sets the description of the InfoObject. |
void |
setKeyword(java.lang.String keyword)
Sets the keyword of the InfoObject. |
void |
setMarkedAsRead(boolean value)
Sets a boolean that indicates whether the object has been read. |
void |
setParentID(int parentID)
Sets the ID of the parent object. |
void |
setTenantID(int tenantID)
Sets the id of the tenant that this object is associated with. |
void |
setTitle(java.lang.String newTitle)
Sets the title of the InfoObject. |
void |
unlockNow()
Internal only. |
| Method Detail |
|---|
java.lang.String getDescription()
String containing the description of the object.
java.lang.String getDescription(java.util.Locale locale)
throws SDKException
To read this value, this object must contain the SI_ML_DESCRIPTION property.
If the object has SI_TRANSLATION_STATE property, it is used to prune outdated translations.
locale - The locale of the description
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getDescription(java.util.Locale locale,
boolean doFallback)
throws SDKException
To read this value, this object must contain the SI_ML_DESCRIPTION property.
If the object has SI_TRANSLATION_STATE property, it is used to prune outdated translations.
locale - The locale of the descriptiondoFallback, - true if fallback logic is performed, false if fallback logic is not performed
SDKException - This is thrown if the process is unsuccessful.
java.util.List getDescriptionLocales()
throws SDKException
If the object has SI_TRANSLATION_STATE property, it is used to prune outdated translations.
SDKExceptionvoid setDescription(java.lang.String newDescription)
newDescription - A String containing the InfoObject's description.int getID()
int.boolean isInstance()
true if this object is an instance, false otherwise.int getParentID()
int value of the parent ID.IProcessingInfo getProcessingInfo()
IProcessingInfo object containing processing information
for the object.java.lang.Integer[] propertyIDs()
Integer array of property IDs.IProperties properties()
IProperties object containing a collection of properties.ISchedulingInfo getSchedulingInfo()
ISchedulingInfo object containing this object's scheduling
information.ISecurityInfo getSecurityInfo()
ISecurityInfo2 getSecurityInfo2()
throws SDKException
SDKExceptionjava.lang.String getTitle()
String containing the title of the InfoObject.
java.lang.String getTitle(java.util.Locale locale)
throws SDKException
To read this value, this object must contain the SI_ML_NAME property.
If the object has SI_TRANSLATION_STATE property, it is used to prune outdated translations.
locale - The locale of the title
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getTitle(java.util.Locale locale,
boolean doFallback)
throws SDKException
To read this value, this object must contain the SI_ML_NAME property.
If the object has SI_TRANSLATION_STATE property, it is used to prune outdated translations.
locale - The locale of the titledoFallback, - true if fallback logic is performed, false if fallback logic is not performed
SDKException - This is thrown if the process is unsuccessful.
java.util.List getTitleLocales()
throws SDKException
If the object has SI_TRANSLATION_STATE property, it is used to prune outdated translations.
SDKExceptionvoid setTitle(java.lang.String newTitle)
newTitle - The title of the InfoObject.
IFiles getFiles()
throws SDKException
IFiles object that contains the InfoObject's associated files.
SDKException - This is thrown if the process is unsuccessful.
IFiles getSourceFiles(IInfoObject.LocaleOption option)
throws SDKException
IFiles object that contains the InfoObject's SOURCE files.
SDKException - This is thrown if the process is unsuccessful.
IFiles getFiles(java.util.Locale locale,
IInfoObject.LocaleOption option)
throws SDKException
locale - The locale of the filesoption - indicates one of the following behavious, default, fallback or createifnotexist
IFiles object that contains the InfoObject's associated files.
SDKException - This is thrown if the process is unsuccessful.
java.util.List getFileLocales()
throws SDKException
SDKException - If it is not a new infoobject, and there is no SI_FILES property
IFiles removeFiles(java.util.Locale locale)
throws SDKException
Removes an IFiles associated with a certain locale. If SI_FILES is not multilingual or the locale isn't found then null is returned. Otherwise the removed IFiles is returned.
SDKException
IFiles removeSourceFiles()
throws SDKException
Removes the InfoObject's SOURCE files. If SI_FILES is not multilingual or the SOURCE files isn't found then null is returned. Otherwise the removed IFiles is returned.
SDKException
java.lang.String getGUID()
throws SDKException
SI_GUID property. Otherwise,
when this method is called an exception will be thrown.
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getCUID()
throws SDKException
SI_CUID property. Otherwise,
when this method is called an exception will be thrown.
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getRUID()
throws SDKException
SI_RUID property. Otherwise,
when this method is called an exception will be thrown.
SDKException - This is thrown if the process is unsuccessful.void setParentID(int parentID)
parentID - A int specifying the ID of the parent object.
java.lang.String getParentCUID()
throws SDKException
SI_PARENT_CUID property. Otherwise,
when this method is called an exception will be thrown.
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getProgID()
throws SDKException
SDKException - This is thrown if the process is unsuccessful.
void retrievePropertySet(int propertySet)
throws SDKException
SDKException - This is thrown if the process is unsuccessful.
IInfoObject getParent()
throws SDKException
IInfoObject who is the parent of this object.
return null if the current session does not have right to view the parent object.
SDKException - This is thrown if the process is unsuccessful.
IInfoObject getParent(int propertySet)
throws SDKException
IInfoObject who is the parent of this object.
Will contain the requested properties.
SDKException - This is thrown if the process is unsuccessful.
void save()
throws SDKException
SDKException - This is thrown if the process is unsuccessful.
void deleteNow()
throws SDKException
Deletes the current object from the repository.
SDKException - This is thrown if the process is unsuccessful.
void unlockNow()
throws SDKException
SDKExceptionboolean isDirty()
true if any of the object's properties have been changed.
boolean specifying whether any of the object's properties
have been changed. true if any properties have changed, false
otherwise.java.lang.String getKeyword()
String containing the keyword of the object.
void setKeyword(java.lang.String keyword)
throws SDKException
keyword - A String containing the InfoObject's keyword.
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getKind()
throws SDKException
String containing the kind of the object.
SDKException - This is thrown if the process is unsuccessful.
boolean isMarkedAsRead()
throws SDKException
true if the object has been read, and false otherwise.
boolean that indicates whether the object has been read.
SDKException - This is thrown if the process is unsuccessful.void setMarkedAsRead(boolean value)
boolean that indicates whether the object has been read.
value - A boolean that indicates whether the object has been read.
java.lang.String getDelta()
throws SDKException
SDKException
java.lang.String getDelta(int deltaFlags)
throws SDKException
SDKExceptionIInfoObject.getDelta()
boolean applyDelta(java.lang.String delta)
throws SDKException
Apply a given delta string to this object - equivalent to applyDelta(Delta.ALL).
Only property changes and limited file operation are supported. Specifically only ADD and
REMOVE file operations are supported when communicating between Java and COM SDK.
Otherwise Java SDK will try to apply all file operations.
SDKException
boolean applyDelta(java.lang.String delta,
int deltaFlags)
throws SDKException
SDKExceptionIInfoObject.applyDelta(String)
java.util.Date getUpdateTimeStamp()
throws SDKException
Returns the date and time of when this object was last updated.
Date identifying the last time this object was updated.
SDKException
void setCommitLevel(int cl)
throws SDKException
Sets the commit consistency level, e.g., how property version conflicts will be resolved. Valid settings are defined in IInfoObject.CommitLevel.
cl - The desired commit consistency level.
SDKException - This is thrown if the parameter provided is invalid.
int getCommitLevel()
throws SDKException
Returns the commit consistency level set on this InfoObject. If the commit consistency level has not
been set explicitly, the default setting is IInfoObject.CommitLevel.COMMIT_LAST_WRITE_WINS.
SDKException
boolean isLockHeld()
throws SDKException
SDKExceptionvoid releaseLock()
ILockInfo getLockInfo()
throws SDKException
SDKExceptionboolean isReadOnly()
true if the object is read only. If the object is read-only, only security changes are save on commit.
java.lang.String getOwner()
throws SDKException
SDKException
int getOwnerID()
throws SDKException
SDKException
java.lang.String getSpecificKind()
throws SDKException
Returns the specific kind of the InfoObject. The specific kind represents the InfoObject type. It will generally be the same as the object kind, except when the object belongs to a sub-type. In such a case, specific kind refers to the most derived type, whereas kind refers to the least derived type.
String containing the specific kind of the object.
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getSpecificProgID()
throws SDKException
Returns the specific ProgID of this InfoObject. It will generally be the same as the ProgID, except when the object belongs to a sub-type. In such a case, specific ProgID refers to the most derived type, whereas ProgID refers to the least derived type.
SDKException - This is thrown if the process is unsuccessful.
int getTenantID()
throws SDKException
SDKException - This exception will be thrown if the property is not queried for this object
void setTenantID(int tenantID)
throws SDKException
tenantID - The id of the tenant that this object is associated with
SDKException - This exception will be thrown if the tenant ID cannot be set properly due to property construction error
void clearTenantID()
throws SDKException
SDKException - This exception will be thrown if the tenant ID cannot be set properly
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||