|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object Managers are used to create, open, copy, delete, and find administrative objects. Each class of object is associated with a particular Object Manager.
IPTObject| Method Summary | |
void |
ClearData(int objId)
Internal server use only: Clears data stream |
int |
Clone(int nObjectID,
int iFolderID)
Create a new object of this class that is a copy of an existing object. |
int |
Clone(int nObjectID,
java.lang.Object vNewNameOrNewFolderID)
deprecated |
int |
Clone(int nObjectID,
java.lang.String sNewName)
Create a new object of this class that is a copy of an existing object. |
java.lang.Object |
Create(int lAdminFolderID)
Create a new object of this class. |
void |
Delete(int nObjectID)
Delete the object with the specified Object ID |
java.lang.Object[] |
DeleteObjects(int ObjectIDs)
Deprecated. |
java.lang.Object[] |
DeleteObjects(int[] ObjectIDs)
Delete multiple objects with the specified IDs |
int |
GetCreationRight()
The activity right (from PT_ACTIVITY_RIGHTS) needed to create objects of this class |
int |
GetManagedClassID()
The Class ID of objects managed by this manager (from PT_CLASSIDS) |
java.lang.Object |
GetReadDataStream(int nObjectID,
java.lang.Object pbstrNote)
Obtain stream to read data from BLOB or file associated with object. |
java.lang.Object[][] |
GetSchema()
Returns an array of PT_PROPIDs, Names, Types, and Sizes for the searchable schema of this object class. |
IPTSession |
GetSession()
Returns the IPTSession that was used to create this Object Manager |
java.lang.Object |
GetWriteDataStream(int objId,
java.lang.String bstrNote)
Obtain stream to write data to BLOB or file associated with object. |
boolean |
IsObjectAccessible(int lObjectID,
int lUserID,
int lMinAccessLevel)
Used to test if the object in question is accessible by the given user at the given security level |
java.lang.Object |
Open(int nObjectID,
boolean bLockInitially)
Open the object with the specified ObjectID |
IPTQueryResult |
Query(int nPropIDMask,
int lFolderID,
int[][] vOrderBy,
int nSkipRows,
int nMaxRows,
java.lang.Object[][] vQueryFilter)
Perform a query for objects of this type. |
IPTQueryResult |
Query(int nPropIDMask,
int lFolderID,
int[] vOrderBy,
int nSkipRows,
int nMaxRows,
java.lang.Object[][] vQueryFilter)
Perform a query for objects of this type. |
IPTQueryResult |
Query(int nPropIDMask,
int lFolderID,
int vOrderBy,
int nSkipRows,
int nMaxRows,
java.lang.Object[][] vQueryFilter)
Perform a query for objects of this type. |
IPTQueryResult |
Query(int nPropIDMask,
int lFolderID,
java.lang.Object vOrderBy,
int nSkipRows,
int nMaxRows,
java.lang.Object[][] vQueryFilter)
Deprecated. |
int |
QueryCount(int lFolderID,
java.lang.Object[][] vQueryFilter)
Counts the number of objects of this class that match a filter |
IPTQueryResult |
QuerySingleObject(int nObjectID)
Returns a Query Result (very similar to that returned by Query) that contains information about a specific object |
IPTQueryResult |
SimpleQuery(int lFolderID,
int OrderBy)
Return an IPTQueryResult containing information about all objects of this class that are stored in the indicated folder |
| Methods inherited from interface com.plumtree.server.IPTUnknown |
GetInterfaces |
| Method Detail |
public IPTSession GetSession()
public int GetManagedClassID()
PT_CLASSIDSpublic java.lang.Object[][] GetSchema()
public java.lang.Object Create(int lAdminFolderID)
lAdminFolderID - the ID of the folder in which to create the object
public int Clone(int nObjectID,
int iFolderID)
nObjectID - the ID of the object to be copiediFolderID - the ID of the folder in which the new object should be
stored
public int Clone(int nObjectID,
java.lang.String sNewName)
nObjectID - the ID of the object to be copiedsNewName - the name to give to the new object
public int Clone(int nObjectID,
java.lang.Object vNewNameOrNewFolderID)
public void Delete(int nObjectID)
nObjectID - ID of the object to be deletedpublic java.lang.Object[] DeleteObjects(int[] ObjectIDs)
ObjectIDs - array of object ID for objects to be deletedpublic java.lang.Object[] DeleteObjects(int ObjectIDs)
public java.lang.Object Open(int nObjectID,
boolean bLockInitially)
nObjectID - the ID of the object to openbLockInitially - Should the object be locked before opening it?
Open will fail if bLockInitially is true and the object is already
locked. If true is passed in for bLockInitially, the client is
responsible for calling IPTServerContext.UnlockObjectIPTServerContext
public IPTQueryResult SimpleQuery(int lFolderID,
int OrderBy)
lFolderID - the folder whose contents are being queried, or -1 for
all foldersOrderBy - a PT_PROPIDS to order the results by in ascending orderIPTQueryResult
public IPTQueryResult Query(int nPropIDMask,
int lFolderID,
int[][] vOrderBy,
int nSkipRows,
int nMaxRows,
java.lang.Object[][] vQueryFilter)
nPropIDMask - a bitmask of PT_PROPIDS values that indicates what
properties should appear in the IPTQueryResult resultlFolderID - the folder whose contents are being queried, or -1 for
all foldersvOrderBy - a 2D array specifying how results should be ordered. The
first column holds the PT_PROPIDS by which to order, and the second
column holds the order direction, from PT_ORDERBY_SETTINGS. Multiple
rows can be included for multi-level ordering, but a maximum of three
rows will be respected.nSkipRows - number of rows to skip at the beginning, or 0 for nonenMaxRows - maximum number of rows to return, or -1 for allvQueryFilter - is a 2D array with 3 columns. The first column holds
the property id, from PT_PROPIDS. The second column holds the operator,
from PT_FILTEROPS. The third column holds the value to be matched.
public IPTQueryResult Query(int nPropIDMask,
int lFolderID,
int[] vOrderBy,
int nSkipRows,
int nMaxRows,
java.lang.Object[][] vQueryFilter)
nPropIDMask - a bitmask of PT_PROPIDS values that indicates what
properties should appear in the IPTQueryResult resultlFolderID - the folder whose contents are being queried, or -1 for
all foldersvOrderBy - a 1D array specifying how results should be ordered. The
column holds the PT_PROPIDS by which to order, all ordering will be in
ascending order. Multiple rows can be included for multi-level ordering,
but a maximum of three rows will be respected.nSkipRows - number of rows to skip at the beginning, or 0 for nonenMaxRows - maximum number of rows to return, or -1 for allvQueryFilter - is a 2D array with 3 columns. The first column holds
the property id, from PT_PROPIDS. The second column holds the operator,
from PT_FILTEROPS. The third column holds the value to be matched.
public IPTQueryResult Query(int nPropIDMask,
int lFolderID,
int vOrderBy,
int nSkipRows,
int nMaxRows,
java.lang.Object[][] vQueryFilter)
nPropIDMask - a bitmask of PT_PROPIDS values that indicates what
properties should appear in the IPTQueryResult resultlFolderID - the folder whose contents are being queried, or -1 for
all foldersvOrderBy - a PT_PROPIDS value by which to order the results, which
will be returned in ascending ordernSkipRows - number of rows to skip at the beginning, or 0 for nonenMaxRows - maximum number of rows to return, or -1 for allvQueryFilter - is a 2D array with 3 columns. The first column holds
the property id, from PT_PROPIDS. The second column holds the operator,
from PT_FILTEROPS. The third column holds the value to be matched.
public IPTQueryResult Query(int nPropIDMask,
int lFolderID,
java.lang.Object vOrderBy,
int nSkipRows,
int nMaxRows,
java.lang.Object[][] vQueryFilter)
public int QueryCount(int lFolderID,
java.lang.Object[][] vQueryFilter)
lFolderID - the folder whose contents are being queried, or -1 for
all foldersvQueryFilter - is a 2D array with 3 columns. The first column holds
the property id, from PT_PROPIDS. The second column holds the operator,
from PT_FILTEROPS. The third column holds the value to be matched.public IPTQueryResult QuerySingleObject(int nObjectID)
nObjectID - the object ID of the object for which information is
sought
public java.lang.Object GetReadDataStream(int nObjectID,
java.lang.Object pbstrNote)
nObjectID - the object ID of the object whose stream is soughtpbstrNote - a String populated by the call for header information
public java.lang.Object GetWriteDataStream(int objId,
java.lang.String bstrNote)
objId - the object ID of the object whose stream is soughtbstrNote - Optional header information Stringpublic void ClearData(int objId)
objId - Object ID
public boolean IsObjectAccessible(int lObjectID,
int lUserID,
int lMinAccessLevel)
lObjectID - the ID of the object in questionlUserID - the ID of the user whose access is being testedlMinAccessLevel - the access level that the user should have on the
objectpublic int GetCreationRight()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||