|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICollection
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(String name,
IPosition position,
IPropertyMap properties)
Creates a new sub collection in a collection that supports ordering. |
ICollection |
createCollection(String name,
IPosition position,
IPropertyMap properties,
boolean ignorePropertyFailures)
Creates a new sub collection in a collection that supports ordering. |
ICollection |
createCollection(String name,
IPropertyMap properties)
Creates a new sub collection in a collection. |
ICollection |
createCollection(String name,
IPropertyMap properties,
boolean ignorePropertyFailures)
Creates a new sub collection in a collection. |
IResource |
createLink(String name,
URL targetURL,
LinkType linkType,
IPosition position,
IPropertyMap properties)
Creates a new link in a collection that supports ordering. |
IResource |
createLink(String name,
URL targetURL,
LinkType linkType,
IPosition position,
IPropertyMap properties,
boolean ignorePropertyFailures)
Creates a new link in a collection that supports ordering. |
IResource |
createLink(String name,
URL targetURL,
LinkType linkType,
IPropertyMap properties)
Creates a new link in a collection. |
IResource |
createLink(String name,
URL targetURL,
LinkType linkType,
IPropertyMap properties,
boolean ignorePropertyFailures)
Creates a new link in a collection. |
ILockInfo |
createResource(String name,
ILockProperties lockProperties)
Creates a empty resource that is initially locked (lock null resource) |
IResource |
createResource(String name,
IPosition position,
IPropertyMap properties,
IContent content)
Creates a new resource in a collection that supports ordering. |
IResource |
createResource(String name,
IPosition position,
IPropertyMap properties,
IContent content,
boolean ignorePropertyFailures)
Creates a new resource in a collection that supports ordering. |
IResource |
createResource(String name,
IPropertyMap properties,
IContent content)
Creates a new resource in a collection. |
IResource |
createResource(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,
String[] permissionNames)
Returns the children of this collection. |
int |
getChildrenCount(boolean visible,
boolean collections,
boolean links)
Returns the number of filtered children in the collection. |
IResourceList |
getChildrenWithoutLinkMapping()
This method will return all child resources without performing the special handling for link resources. |
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 |
|---|
IResourceList getChildren()
throws ResourceException,
AccessDeniedException
ResourceException
AccessDeniedException - If the resource is locked, readonly or
authorization failed
IResourceList getChildren(boolean visible,
boolean collections,
boolean links)
throws ResourceException,
AccessDeniedException
visible - true: activate visibility check and only visible resource are selected (system property "hidden"
is false), false: visibility check is disabled and both visible and hidden resources are selectedcollections - true: activate check for collections and only collections are selected (links to collection
are also included regardless of links flag), false: check for collections is disabledlinks - true: activate check for links and only link resources are selected, false: check for links is disabled
ResourceException
AccessDeniedException - If the resource is locked, readonly or
authorization failed
int getChildrenCount(boolean visible,
boolean collections,
boolean links)
throws ResourceException,
AccessDeniedException
visible - true: visibility check is active and only visible resource are counted (system property "hidden"
is false), false: visibility check is disabled and both visible and hidden resources are countedcollections - true: collections check is active and only collections are counted (links to collection
are also included regardless of links flag), false: check for collections is disabledlinks - true: links check is active and only link resources are counted, false: check for links is disabled
ResourceException
AccessDeniedException - If the resource is locked, readonly or
authorization failed
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
IResourceList getChildren(Selector childrenSelector,
Collator sortBy,
IPropertyNameList propertyPrefill,
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
boolean hasChildren()
throws ResourceException
ResourceException
OrderType getOrderType()
throws ResourceException
ResourceException
void setOrderType(OrderType orderType)
throws ResourceException,
NotSupportedException,
AccessDeniedException
orderType - orderType to be set
ResourceException
NotSupportedException
AccessDeniedException - If the resource is locked, readonly or
authorization failed
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
ICollection createCollection(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
ICollection createCollection(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
ICollection createCollection(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/removed
ResourceException
NotSupportedException
AccessDeniedException - If the resource is locked, readonly or
authorization failed
ICollection createCollection(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/removed
ResourceException
NotSupportedException
AccessDeniedException - If the resource is locked, readonly or
authorization failed
IResource createResource(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 content
ResourceException
NotSupportedException
AccessDeniedException - If the resource is locked, readonly or
authorization failed
IResource createResource(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 content
ResourceException
NotSupportedException
AccessDeniedException - If the resource is locked, readonly or
authorization failed
IResource createResource(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/removed
ResourceException
NotSupportedException
AccessDeniedException - If the resource is locked, readonly or
authorization failed
IResource createResource(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
ILockInfo createResource(String name,
ILockProperties lockProperties)
throws ResourceException,
NotSupportedException,
AccessDeniedException
name - The name of the resourcelockProperties - The properties of the lock
ResourceException
NotSupportedException
AccessDeniedException - If the resource is locked, readonly or
authorization failed
IResource createLink(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
IResource createLink(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
IResource createLink(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
IResource createLink(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
IResourceList getChildrenWithoutLinkMapping()
throws ResourceException,
NotSupportedException,
AccessDeniedException
ResourceException
NotSupportedException
AccessDeniedException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||