com.sas.services.information.publicobject
Interface PublicObjectContainerInterface

All Superinterfaces:
PublicObjectInterface, java.rmi.Remote
All Known Subinterfaces:
FavoritesContainer, FavoritesFolder, FavoritesGroup, FilteredFolderInterface, FilteredRepositoryInterface, FolderInterface, MutableContainerInterface, MyDocumentsInterface, MyInboxInterface, MyResultsInterface, PersonalRepositoryInterface, RootFolderInterface, SearchFolder, VirtualFolderInterface
All Known Implementing Classes:
DavPerson, FilteredFolder, FilteredRepository, Folder, MyDocuments, MyInbox, MyResults, PersonalRepository, VirtualFolder

public interface PublicObjectContainerInterface
extends PublicObjectInterface

This interface describes a container of Public Objects. It is mainly used for objects such as Folder to hold their contents, however it could be used to have a table contain its columns.


Method Summary
 PublicObjectInterface getChildAt(int index)
          Returns a child item at the specified location
 int getChildCount()
          Returns the number of children within this container.
 java.util.List getChildren()
          Get a List of the children of this container.
 java.util.List getChildren(java.lang.String type)
          Deprecated. As of 9.3, this method is no longer used
 PublicObjectInterface newChild(java.lang.String type, java.lang.String name)
          Deprecated. As of 9.3, this method is no longer used
 
Methods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor
 

Method Detail

getChildren

java.util.List getChildren()
                           throws ServiceException,
                                  java.rmi.RemoteException
Get a List of the children of this container.

Returns:
All child nodes below this container. For folder, this includes subfolders and members.
Throws:
ServiceException - If a repository error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getChildAt

PublicObjectInterface getChildAt(int index)
                                 throws ServiceException,
                                        java.rmi.RemoteException
Returns a child item at the specified location

Parameters:
index - the index of the child
Returns:
the child item at the specified index
Throws:
ServiceException
java.rmi.RemoteException
Since:
9.3

getChildCount

int getChildCount()
                  throws ServiceException,
                         java.rmi.RemoteException
Returns the number of children within this container.

Returns:
child count
Throws:
ServiceException - If a repository error occurs.
java.rmi.RemoteException - In the event of remote object failure.
Since:
9.3

getChildren

java.util.List getChildren(java.lang.String type)
                           throws ServiceException,
                                  java.rmi.RemoteException
Deprecated. As of 9.3, this method is no longer used

Get a list of children of a specific type. The type string should be the unlocalized type, listed as the "Type Abbreviation" in the type dictionary.

Parameters:
type - The "type abbreviation" which will be used to filter the children returned from the container.
Returns:
A List of child elements that match the type specified.
Throws:
ServiceException - If a repository error occurs.
java.rmi.RemoteException - In the event of remote object failure.

newChild

PublicObjectInterface newChild(java.lang.String type,
                               java.lang.String name)
                               throws ServiceException,
                                      java.rmi.RemoteException
Deprecated. As of 9.3, this method is no longer used

Create a new metadata object and add it to the container.

Parameters:
type - The public object type to add to the container.
name - The name of the new object
Returns:
The newly created public object.
Throws:
ServiceException - If a repository error occurs.
java.rmi.RemoteException - In the event of remote object faiure.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.