Oracle Content Management SDK

oracle.ifs.server
Class S_Folder

java.lang.Object
  |
  +--oracle.ifs.server.S_LibraryObject
        |
        +--oracle.ifs.server.S_TieLibraryObject
              |
              +--oracle.ifs.server.S_PublicObject
                    |
                    +--oracle.ifs.server.S_TiePublicObject
                          |
                          +--oracle.ifs.server.S_Folder
All Implemented Interfaces:
IfsEventHandler, LibraryObjectInterface, PublicObjectInterface, Traceable
Direct Known Subclasses:
S_TieFolder

public class S_Folder
extends S_TiePublicObject

Server side representation of the FOLDER class.

See Also:
S_LibraryService, S_LibrarySession

Method Summary
 void addItem(S_PublicObject ro, S_LibraryObjectDefinition rdef)
          Add an item to a Folder.
 boolean checkExistenceOfPublicObjectByPath(java.lang.String path)
          Check for existence of an object at the specified path.
protected  void extendedPostAddItem(OperationState opState, S_PublicObject rightpo, S_LibraryObjectDefinition def, S_Relationship rel)
          An extensibility point after an item is added to a folder.
protected  void extendedPostInsert(OperationState opState, S_LibraryObjectDefinition def)
          operations to be performed after creating an instance of S_Folder.
protected  void extendedPostRemoveItem(OperationState opState, S_PublicObject rightpo, S_LibraryObjectDefinition def, S_Relationship relationship)
          an extensibility point after an item is removed from a folder.
protected  void extendedPreAddItem(OperationState opState, S_PublicObject rightpo, S_LibraryObjectDefinition def)
          An extensibility point before an item is added to a folder.
protected  void extendedPreFree(OperationState opState, S_LibraryObjectDefinition def)
          operations to be performed before freeing an instance of S_Folder.
protected  void extendedPreRemoveItem(OperationState opState, S_PublicObject rightpo, S_LibraryObjectDefinition def, S_Relationship relationship)
          an extensibility point before an item is removed from a folder.
 S_PublicObject findPublicObjectByPath(java.lang.String path)
          Find item by Folder path.
 long getItemCount(java.lang.String folderRelClassname)
          Get the number of items in the S_Folder.
 S_PublicObject[] getItems(java.lang.String classname, SortSpecification sort)
          Gets the PUBLICOBJECTs in this FOLDER.
 long getSubfolderCount(java.lang.String folderRelClassname)
          Get the number of sub folders in the S_Folder.
 void handleEvent(IfsEvent event)
          Handles the specified event.
 boolean isVersionable()
          isVersionable() - true is this object can be in a Family.
 void removeItem(S_PublicObject ro, S_LibraryObjectDefinition def)
          Remove an item from a Folder.
 
Methods inherited from class oracle.ifs.server.S_PublicObject
addRelationship, checkAccess, deriveDefinition, extendedPostUpdate, extendedPreInsert, extendedPreUpdate, getCategories, getCategories, getLeftwardRelationshipObjects, getLeftwardRelationshipObjects, getLeftwardRelationships, getLeftwardRelationships, getLockObject, getReferencingFolders, getRightwardRelationshipObjects, getRightwardRelationshipObjects, getRightwardRelationships, getRightwardRelationships, getVersionDescriptions, hasNameAttribute, isLocked, removeRelationship, verifyCanUseContentQuota
 
Methods inherited from class oracle.ifs.server.S_LibraryObject
equals, free, getAttribute, getAttributeByUpperCaseName, getClassId, getClassObject, getId, getSession, isTraced, postEvent, postEvent, renderAsReader, renderAsStream, setAttribute, setAttribute, toString, trace, update
 
Methods inherited from interface oracle.ifs.common.LibraryObjectInterface
getId
 
Methods inherited from interface oracle.ifs.common.Traceable
getTraceLogger, isTraced, trace
 

Method Detail


handleEvent

public void handleEvent(IfsEvent event)
                 throws IfsException
Handles the specified event.
Overrides:
handleEvent in class S_LibraryObject
Parameters:
event - the event
Throws:
IfsException - if the operation fails

extendedPostInsert

protected void extendedPostInsert(OperationState opState,
                                  S_LibraryObjectDefinition def)
                           throws IfsException
operations to be performed after creating an instance of S_Folder. This is overridden by classes that need to perform operations after successfully creating the rows for the new instance.
Overrides:
extendedPostInsert in class S_PublicObject
Parameters:
opState - current operation state
def - object definition
Throws:
IfsException - if operation fails.

extendedPreFree

protected void extendedPreFree(OperationState opState,
                               S_LibraryObjectDefinition def)
                        throws IfsException
operations to be performed before freeing an instance of S_Folder. This is overridden by classes that need to perform operations before successfully deleting the rows for the freed instance.
Overrides:
extendedPreFree in class S_PublicObject
Parameters:
opState - current operation state
def - object definition
Throws:
IfsException - if operation fails.

extendedPreAddItem

protected void extendedPreAddItem(OperationState opState,
                                  S_PublicObject rightpo,
                                  S_LibraryObjectDefinition def)
                           throws IfsException
An extensibility point before an item is added to a folder.
Parameters:
opState - the operation state
rightpo - the item being added to the folder
def - the LibraryObjectDefinition that contains the settings for the new instance.
Throws:
IfsException - if any other aspect of the operation fails.

extendedPostAddItem

protected void extendedPostAddItem(OperationState opState,
                                   S_PublicObject rightpo,
                                   S_LibraryObjectDefinition def,
                                   S_Relationship rel)
                            throws IfsException
An extensibility point after an item is added to a folder.
Parameters:
opState - the operation state
rightpo - the item being added to the folder
def - the LibraryObjectDefinition that contains the settings for the new instance.
rel - the relationship just created
Throws:
IfsException - if any other aspect of the operation fails.

extendedPreRemoveItem

protected void extendedPreRemoveItem(OperationState opState,
                                     S_PublicObject rightpo,
                                     S_LibraryObjectDefinition def,
                                     S_Relationship relationship)
                              throws IfsException
an extensibility point before an item is removed from a folder.
Parameters:
opState - the operation state
rightpo - the item being added to the folder
def - the LibraryObjectDefinition that contains the settings for the new instance.
Throws:
IfsException - if any other aspect of the operation fails.

extendedPostRemoveItem

protected void extendedPostRemoveItem(OperationState opState,
                                      S_PublicObject rightpo,
                                      S_LibraryObjectDefinition def,
                                      S_Relationship relationship)
                               throws IfsException
an extensibility point after an item is removed from a folder.
Parameters:
opState - the operation state
rightpo - the item removed from the folder
def - the LibraryObjectDefinition for this operation
Throws:
IfsException - if any other aspect of the operation fails.

isVersionable

public boolean isVersionable()
                      throws IfsException
isVersionable() - true is this object can be in a Family.
Overrides:
isVersionable in class S_PublicObject
Throws:
IfsException - if the operation fails

getItemCount

public long getItemCount(java.lang.String folderRelClassname)
                  throws IfsException
Get the number of items in the S_Folder.
Throws:
IfsException - if the operation fails

getSubfolderCount

public long getSubfolderCount(java.lang.String folderRelClassname)
                       throws IfsException
Get the number of sub folders in the S_Folder.
Throws:
IfsException - if the operation fails

getItems

public S_PublicObject[] getItems(java.lang.String classname,
                                 SortSpecification sort)
                          throws IfsException
Gets the PUBLICOBJECTs in this FOLDER.
Parameters:
classname - the name of the folder relationship classobject
sort - the desired sort order
Returns:
the PUBLICOBJECTs
Throws:
IfsException - if the operation fails

addItem

public void addItem(S_PublicObject ro,
                    S_LibraryObjectDefinition rdef)
             throws IfsException
Add an item to a Folder.
Parameters:
ro - object to be added.
rdef - the object definition to be added to the Folder.
Throws:
IfsException - if the operation fails.

removeItem

public void removeItem(S_PublicObject ro,
                       S_LibraryObjectDefinition def)
                throws IfsException
Remove an item from a Folder.
Parameters:
ro - The object to remove.
def - Any options that describe the remove semantics.
Throws:
IfsException - if any other aspect of the operation fails.

findPublicObjectByPath

public S_PublicObject findPublicObjectByPath(java.lang.String path)
                                      throws IfsException
Find item by Folder path.
Parameters:
path - the folder path to the desired object.
Returns:
the desired object.
Throws:
IfsException - if the operation fails.

checkExistenceOfPublicObjectByPath

public boolean checkExistenceOfPublicObjectByPath(java.lang.String path)
                                           throws IfsException
Check for existence of an object at the specified path.
Parameters:
path - the folder path to the desired object.
Returns:
true if an object exists
Throws:
IfsException - if the operation fails.

Oracle Content Management SDK

(c) 2002 Copyright Oracle Corporation. All rights reserved.