|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A collection is a resource (IResource) that contains other resources
and collections following the composite pattern.
Copyright (c) SAP AG 2001-2004
| Method Summary | |
ICollection |
createCollection(java.lang.String name,
IPosition position,
IPropertyMap properties)
Creates a new sub collection in a collection that supports ordering. |
ICollection |
createCollection(java.lang.String name,
IPosition position,
IPropertyMap properties,
boolean ignorePropertyFailures)
Creates a new sub collection in a collection that supports ordering. |
ICollection |
createCollection(java.lang.String name,
IPropertyMap properties)
Creates a new sub collection in a collection. |
ICollection |
createCollection(java.lang.String name,
IPropertyMap properties,
boolean ignorePropertyFailures)
Creates a new sub collection in a collection. |
IResource |
createLink(java.lang.String name,
URL targetURL,
LinkType linkType,
IPosition position,
IPropertyMap properties)
Creates a new link in a collection that supports ordering. |
IResource |
createLink(java.lang.String name,
URL targetURL,
LinkType linkType,
IPosition position,
IPropertyMap properties,
boolean ignorePropertyFailures)
Creates a new link in a collection that supports ordering. |
IResource |
createLink(java.lang.String name,
URL targetURL,
LinkType linkType,
IPropertyMap properties)
Creates a new link in a collection. |
IResource |
createLink(java.lang.String name,
URL targetURL,
LinkType linkType,
IPropertyMap properties,
boolean ignorePropertyFailures)
Creates a new link in a collection. |
ILockInfo |
createResource(java.lang.String name,
ILockProperties lockProperties)
Creates a empty resource that is initially locked (lock null resource) |
IResource |
createResource(java.lang.String name,
IPosition position,
IPropertyMap properties,
IContent content)
Creates a new resource in a collection that supports ordering. |
IResource |
createResource(java.lang.String name,
IPosition position,
IPropertyMap properties,
IContent content,
boolean ignorePropertyFailures)
Creates a new resource in a collection that supports ordering. |
IResource |
createResource(java.lang.String name,
IPropertyMap properties,
IContent content)
Creates a new resource in a collection. |
IResource |
createResource(java.lang.String name,
IPropertyMap properties,
IContent content,
boolean ignorePropertyFailures)
Creates a new resource in a collection. |
IResourceList |
getChildren()
Returns a list of all resources in the collection |
IResourceList |
getChildren(boolean visible,
boolean collections,
boolean links)
Returns a filtered list of the resources in this collection. |
IResourceList |
getChildren(Selector childrenSelector,
Collator sortBy,
IPropertyNameList propertyPrefill)
Returns the children of this collection. |
IResourceList |
getChildren(Selector childrenSelector,
Collator sortBy,
IPropertyNameList propertyPrefill,
java.lang.String[] permissionNames)
Returns the children of this collection. |
int |
getChildrenCount(boolean visible,
boolean collections,
boolean links)
Returns the number of children in the collection |
OrderType |
getOrderType()
Returns the order type of a collection |
boolean |
hasChildren()
True if the collection has at least one child resource |
void |
reorder(IReorderList list)
Change the position of some or all resources in an ordered collection. |
void |
setOrderType(OrderType orderType)
Set the order type of a collection |
| Methods inherited from interface com.sapportals.wcm.repository.so.ITypeCast |
listTypes |
| Method Detail |
public IResourceList getChildren()
throws ResourceException,
AccessDeniedException
ResourceException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public IResourceList getChildren(boolean visible,
boolean collections,
boolean links)
throws ResourceException,
AccessDeniedException
visible - true: only visible resource (system property "hidden" is
false), false: only hidden resourcescollections - true: only collections, false: only resources which are
not collectionslinks - true: only links, false: only non-link resourcesResourceException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public int getChildrenCount(boolean visible,
boolean collections,
boolean links)
throws ResourceException,
AccessDeniedException
visible - true: only visible resource (system property "hidden" is
false), false: only hidden resourcescollections - true: only collections, false: only resources which are
not collectionslinks - true: only links, false: only non-link resourcesResourceException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public IResourceList getChildren(Selector childrenSelector,
Collator sortBy,
IPropertyNameList propertyPrefill)
throws ResourceException,
AccessDeniedException
null)
which will cause properties to be fetched: Collator, Selector or propertyPrefill).childrenSelector - Specifies the filter expressionsortBy - Specifies the ordering of the returned list. Children which are collections are grouped together and are placed BEFORE the non-collections.propertyPrefill - Specifies the names of properties which should be fetched
for the children of the collection in addition to those needed for filtering and sorting. This "prefetching" can improve
performance of subsequent getProperty() calls on the child resources.ResourceException - AccessDeniedException - If the resource is locked, readonly or authorization failed
public IResourceList getChildren(Selector childrenSelector,
Collator sortBy,
IPropertyNameList propertyPrefill,
java.lang.String[] permissionNames)
throws ResourceException,
AccessDeniedException
null)
which will cause properties to be fetched: Collator, Selector or propertyPrefill).childrenSelector - Specifies the filter expressionsortBy - Specifies the ordering of the returned list. Children which are collections are grouped together and are placed BEFORE the non-collections.propertyPrefill - Specifies the names of properties which should be fetched
for the children of the collection in addition to those needed for filtering and sorting. This "prefetching" can improve
performance of subsequent getProperty() calls on the child resources.permissionNames - An array of permission names (permission name constants are defined in IPermission).
Resources for which the user in the context does not have one of the secified permissions are removed from the result list.ResourceException - AccessDeniedException - If the resource is locked, readonly or authorization failed
public boolean hasChildren()
throws ResourceException
ResourceException -
public OrderType getOrderType()
throws ResourceException
ResourceException -
public void setOrderType(OrderType orderType)
throws ResourceException,
NotSupportedException,
AccessDeniedException
orderType - orderType to be setResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public void reorder(IReorderList list)
throws ResourceException,
NotSupportedException,
AccessDeniedException
list - A list that contains IPositioning instances that
specify how the resources in the collection should be positioned.ResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public ICollection createCollection(java.lang.String name,
IPropertyMap properties)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the new collection.properties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.ResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public ICollection createCollection(java.lang.String name,
IPosition position,
IPropertyMap properties)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the new collectionposition - The position in the collectionproperties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.ResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public ICollection createCollection(java.lang.String name,
IPropertyMap properties,
boolean ignorePropertyFailures)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the new collection.properties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.ignorePropertyFailures - Ignore exceptions if some or all properties
could not be set/removedResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public ICollection createCollection(java.lang.String name,
IPosition position,
IPropertyMap properties,
boolean ignorePropertyFailures)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the new collectionposition - The position in the collectionproperties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.ignorePropertyFailures - Ignore exception if some or all properties
could not be set/removedResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public IResource createResource(java.lang.String name,
IPropertyMap properties,
IContent content)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the resourceproperties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.content - The new contentResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public IResource createResource(java.lang.String name,
IPosition position,
IPropertyMap properties,
IContent content)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the resourceposition - Ths positioning informationproperties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.content - The new contentResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public IResource createResource(java.lang.String name,
IPropertyMap properties,
IContent content,
boolean ignorePropertyFailures)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the resourceproperties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.content - The new contentignorePropertyFailures - Ignore exception if some or all properties
could not be set/removedResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public IResource createResource(java.lang.String name,
IPosition position,
IPropertyMap properties,
IContent content,
boolean ignorePropertyFailures)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the resourceposition - The positioning informationproperties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.content - The new contentignorePropertyFailures - ResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public ILockInfo createResource(java.lang.String name,
ILockProperties lockProperties)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the resourcelockProperties - The properties of the lockResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public IResource createLink(java.lang.String name,
URL targetURL,
LinkType linkType,
IPropertyMap properties)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the resourcetargetURL - The link targetlinkType - The link typeproperties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.ResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public IResource createLink(java.lang.String name,
URL targetURL,
LinkType linkType,
IPosition position,
IPropertyMap properties)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the resourcetargetURL - The link targetlinkType - The link typeposition - The positioning informationproperties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.ResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public IResource createLink(java.lang.String name,
URL targetURL,
LinkType linkType,
IPropertyMap properties,
boolean ignorePropertyFailures)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the resourcetargetURL - The link targetlinkType - The link typeproperties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.ignorePropertyFailures - ResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
public IResource createLink(java.lang.String name,
URL targetURL,
LinkType linkType,
IPosition position,
IPropertyMap properties,
boolean ignorePropertyFailures)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the resourcetargetURL - The link targetlinkType - The link typeposition - The positioning informationproperties - The intial properties to set for the new resource. The
repository will try to set all properties in the map.ignorePropertyFailures - ResourceException - NotSupportedException - AccessDeniedException - If the resource is locked, readonly or
authorization failed
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||