|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that provides an entry point for querying portal objects.
Method Summary | |
int |
lookupObjectID(java.lang.String UUID)
Gets an object's ID from its UUID. |
java.lang.String |
lookupUUID(int objectID)
Looks up an object's UUID by object ID. |
IACL |
queryACL(int objectID)
Retrieves an ACL (Access Control List) for managing the security on a portal object. |
int[] |
queryCommunitiesForPortlet(int portletID)
Returns an array of IDs of the Communities that contain the portlet with the specified ID. |
IExtendedData |
queryExtendedData(int objectID)
Queries for an object's extended object data. |
IObjectQuery |
queryObjects()
Queries for all objects of a particular class. |
IObjectQuery |
queryObjects(int folderID)
Queries for all objects of this class underneath a particular folder. |
IObjectQuery |
queryObjects(int folderID,
int startRow,
int maxRows)
Queries for objects underneath a particular folder. |
IObjectQuery |
queryObjects(int folderID,
int startRow,
int maxRows,
ObjectProperty sortProperty,
boolean ascending)
Queries for objects underneath a particular folder. |
IObjectQuery |
queryObjects(int folderID,
int startRow,
int maxRows,
ObjectProperty sortProperty,
boolean ascending,
ObjectProperty[] propsToReturn,
QueryFilter[] filters)
Queries for objects underneath a particular folder that comply to a set of filters. |
IObjectQueryRow |
querySingleObject(int objectID)
Queries for a single object by object ID and retrieves all of its properties. |
void |
updateACL(int objectID,
IACL acl)
Updates the ACL (Access Control List) on a portal object. |
Method Detail |
public IObjectQuery queryObjects(int folderID, int startRow, int maxRows, ObjectProperty sortProperty, boolean ascending, ObjectProperty[] propsToReturn, QueryFilter[] filters) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
IObjectQuery
object that has one row
for each object returned. OutOfMemoryError
s.
folderID
- the ID of the folder in which to query; if set to -1, the query is for all foldersstartRow
- the first row in the query to retrieve (row numbers are zero-based)maxRows
- the number of rows in the query to retrieve; if set to -1, all rows are retrievedsortProperty
- the property on which to sort the queryascending
- whether the sort should be ascending or descending; use true
for ascendingpropsToReturn
- an array of object properties indicating which properties to return in the queryfilters
- an array of query filters to narrow down the search
IObjectQuery
object that represents the results of the query
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic IObjectQuery queryObjects(int folderID, int startRow, int maxRows, ObjectProperty sortProperty, boolean ascending) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
IObjectQuery
object that has one row for each object returned.
Note: Use caution when creating a query. Queries that result in a large number of objects, including queries without query filters, can result in SOAP timeouts or OutOfMemoryError
s.
folderID
- the ID of the folder in which to query; if set to -1, the query will be for all foldersstartRow
- the first row in the query to retrieve (row numbers are zero-based)maxRows
- the number of rows in the query to retrieve; if set to -1, all rows are retrievedsortProperty
- the property on which to sort the queryascending
- whether the sort should be ascending or descending; use true
for ascending
IObjectQuery
object that represents the results of this query
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic IObjectQuery queryObjects(int folderID, int startRow, int maxRows) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
IObjectQuery
object that has one row for each object returned.
Note: Use caution when creating a query. Queries that result in a large number of objects, including those that query
many folders, or queries without query filters, can result in SOAP timeouts or OutOfMemoryError
s.
folderID
- the ID of the folder in which to query; if set to -1, the query will be for all foldersstartRow
- the first row in the query to retrieve (row numbers are zero-based)maxRows
- the number of rows in the query to retrieve; if set to -1, all rows are retrieved
IObjectQuery
object that represents the results of this query
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic IObjectQuery queryObjects(int folderID) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
IObjectQuery
object that has one row for each
object returned.
Note: Use caution when creating a query. Queries that result in a large number of objects can result in SOAP timeouts or OutOfMemoryError
s.
folderID
- the ID of the folder in which to query; if set to -1, the query will be for all folders
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic IObjectQuery queryObjects() throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
IObjectQuery
object that has one row for each object returned.
Note: Use caution when creating a query. Queries that result in a large number of objects can result in SOAP timeouts or OutOfMemoryError
s.
IObjectQuery
object that represents all of the objects of this class
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic IObjectQueryRow querySingleObject(int objectID) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
objectID
- the ID of the object to be queried
IObjectQueryRow
object representing the specified object's properties
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic IExtendedData queryExtendedData(int objectID) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
IExtendedData
object representing all of the extended data about the object.
java.net.MalformedURLException
PortalException
java.rmi.RemoteException
public java.lang.String lookupUUID(int objectID) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
objectID
- the ID of the object for which to get a UUID
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic int[] queryCommunitiesForPortlet(int portletID) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
portletID
- the Portlet ID
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic int lookupObjectID(java.lang.String UUID) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic IACL queryACL(int objectID) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
objectID
- the object ID of the object for which to retrieve the ACL
java.lang.IllegalArgumentException
- if the object ID is invalid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method call
java.net.MalformedURLException
public void updateACL(int objectID, IACL acl) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
objectID
- the object ID for which to set the ACLacl
- the ACL to set on the object
java.lang.IllegalArgumentException
- if the object ID is invalid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method call
ACLEntryReadOnlyException
- if the ACL contains read-only ACLEntry
s which have been modified
java.net.MalformedURLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©2010 Oracle® Corporation. All Rights Reserved.