public abstract class ResourceBaseImpl extends Object implements Resource
PROPERTY_AUTHOR, PROPERTY_DESCRIPTION, PROPERTY_MODIFIED_TIME, PROPERTY_TITLE| Constructor and Description |
|---|
ResourceBaseImpl() |
| Modifier and Type | Method and Description |
|---|---|
AssetFactory |
getAssetFactory() |
CollectionFactory |
getCollectionFactory() |
Section |
getContainingSection()
Gets the section the resource is contained within.
|
String |
getDescription()
The description
|
String |
getId()
The id of the item
|
String |
getName()
The name of the item
|
String |
getPrimarySectionId() |
Map<String,Serializable> |
getProperties()
Get properties mape
|
Serializable |
getProperty(String propertyName)
Get any property by name
String name property name
|
SectionFactory |
getSectionFactory() |
String |
getTitle()
The title of the item
|
String |
getType()
Get the type of the resource
|
void |
setAssetFactory(AssetFactory resourceFactory) |
void |
setCollectionFactory(CollectionFactory collectionFactory) |
void |
setPrimarySectionId(String sectionId) |
void |
setProperties(Map<String,Serializable> props)
Set resources properties
|
void |
setSectionFactory(SectionFactory sectionFactory) |
public void setProperties(Map<String,Serializable> props)
props - property mappublic String getId()
ResourcegetId in interface ResourceResource.getId()public String getName()
ResourcegetName in interface ResourceResource.getName()public String getTitle()
ResourcegetTitle in interface ResourceResource.getTitle()public String getType()
ResourcegetType in interface ResourceResource.getType()public String getDescription()
ResourcegetDescription in interface ResourceResource.getDescription()public Section getContainingSection()
ResourcegetContainingSection in interface ResourceResource.getContainingSection()public Serializable getProperty(String propertyName)
ResourcegetProperty in interface Resourceorg.alfresco.wcm.client.Resource#getProperty()public Map<String,Serializable> getProperties()
ResourcegetProperties in interface ResourceResource.getProperties()public SectionFactory getSectionFactory()
public void setSectionFactory(SectionFactory sectionFactory)
public AssetFactory getAssetFactory()
public void setAssetFactory(AssetFactory resourceFactory)
public CollectionFactory getCollectionFactory()
public void setCollectionFactory(CollectionFactory collectionFactory)
public void setPrimarySectionId(String sectionId)
public String getPrimarySectionId()
Copyright © 2005–2014 Alfresco Software. All rights reserved.