public class GenericObjectTypeHandler extends WcmObject implements IObjectTypeHandler
Modifier and Type | Field and Description |
---|---|
protected IActionList |
actionList |
protected String[] |
extensionArray |
protected Vector |
extensions |
protected Vector |
mimeTypes |
protected String |
name |
protected String[] |
pathArray |
protected Vector |
paths |
protected Properties |
properties |
protected Vector |
resourceTypes |
ORDER_TYPE_MANUAL, ORDER_TYPE_NONE
Constructor and Description |
---|
GenericObjectTypeHandler()
Construct object of class GenericObjectTypeHandler.
|
Modifier and Type | Method and Description |
---|---|
IActionList |
getActionList()
Get the ActionList attribute of the GenericObjectTypeHandler object.
|
String[] |
getExtensions()
Get the Extensions attribute of the GenericObjectTypeHandler object.
|
Vector |
getMimeTypes()
Get the MimeTypes attribute of the GenericObjectTypeHandler object.
|
String |
getName()
Get the Name attribute of the GenericObjectTypeHandler object.
|
String[] |
getPaths()
Get the Paths attribute of the GenericObjectTypeHandler object.
|
Integer |
getPathsHashCode()
Returns identical values for identical paths arrays.
|
Properties |
getProperties()
Get the Properties attribute of the GenericObjectTypeHandler object.
|
Vector |
getResourceTypes()
Get the Properties attribute of the GenericObjectTypeHandler object.
|
Vector |
getSourceResourceTypes()
Get the resource types exclusively for a source.
|
Vector |
getTargetResourceTypes()
Get the resource types exclusively for a target.
|
URL |
getURL(IResource resource,
IActionType actionType)
Get the URL attribute of the GenericObjectTypeHandler object.
|
URL |
getURL(IResource resource,
IActionType actionType,
Properties props)
Get the URL attribute of the GenericObjectTypeHandler object.
|
void |
initialize(String name,
Vector extensions,
Vector mimeTypes,
Vector paths,
IActionList actionList,
Vector resourceTypes,
Properties props)
TBD: Description of the Method.
|
boolean |
matches(String needle)
Checks if the input string matches the paths of the object.
|
boolean |
matchesResourceType(String testResourceType,
String othResourceType)
Checks if
testResourceType matches the othResourceType
. |
void |
setActionList(IActionList actionList)
Set the ActionList attribute of the GenericObjectTypeHandler object.
|
void |
setExtensions(Vector extensions)
Set the Extensions attribute of the GenericObjectTypeHandler object.
|
void |
setMimeTypes(Vector mimeTypes)
Set the MimeTypes attribute of the GenericObjectTypeHandler object.
|
void |
setName(String name)
Set the Name attribute of the GenericObjectTypeHandler object.
|
void |
setPaths(Vector paths)
Set the Paths attribute of the GenericObjectTypeHandler object.
|
void |
setProperties(Properties props)
Set the Properties attribute of the GenericObjectTypeHandler object.
|
void |
setResourceTypes(Vector resourceTypes)
Set the Properties attribute of the GenericObjectTypeHandler object.
|
void |
shutDownOTH()
Must be called in shutDownImpl() method of an OTH service.
|
void |
startUpOTH()
Must be called in startUp() method of an OTH service.
|
protected String name
protected Vector resourceTypes
protected Vector extensions
protected Vector mimeTypes
protected Vector paths
protected Properties properties
protected String[] extensionArray
protected String[] pathArray
protected IActionList actionList
public GenericObjectTypeHandler() throws WcmException
WcmException
- Exception raised in failure situationpublic void setName(String name)
name
- The new Name valuepublic void setActionList(IActionList actionList)
actionList
- The new ActionList valuepublic void setResourceTypes(Vector resourceTypes)
resourceTypes
- resourceTypes to be setpublic void setProperties(Properties props)
props
- properties to be setpublic void setExtensions(Vector extensions)
extensions
- The new Extensions valuepublic void setMimeTypes(Vector mimeTypes)
mimeTypes
- The new MimeTypes valuepublic void setPaths(Vector paths)
paths
- The new Paths valuepublic boolean matches(String needle)
IObjectTypeHandler
matches
in interface IObjectTypeHandler
needle
- The input string.true
if matches, otherwise false
.public boolean matchesResourceType(String testResourceType, String othResourceType)
IObjectTypeHandler
testResourceType
matches the othResourceType
. Therefore othResourceType
has to be one of the
resource types of the object type handler.matchesResourceType
in interface IObjectTypeHandler
testResourceType
- resource type to be tested.othResourceType
- resource type against which to check.true
if testResourceType
matches the othResourceType
, otherwise false
.public Integer getPathsHashCode()
getPathsHashCode
in interface IObjectTypeHandler
public String getName() throws WcmException
getName
in interface IObjectTypeHandler
WcmException
- Exception raised in failure situationpublic IActionList getActionList()
getActionList
in interface IObjectTypeHandler
public URL getURL(IResource resource, IActionType actionType) throws WcmException
getURL
in interface IObjectTypeHandler
resource
- TBD: Description of the incoming method parameteractionType
- TBD: Description of the incoming method parameterWcmException
- Exception raised in failure situationpublic URL getURL(IResource resource, IActionType actionType, Properties props) throws WcmException
getURL
in interface IObjectTypeHandler
resource
- TBD: Description of the incoming method parameteractionType
- TBD: Description of the incoming method parameterprops
- TBD: Description of the incoming method parameterWcmException
- Exception raised in failure situationpublic Vector getResourceTypes()
getResourceTypes
in interface IObjectTypeHandler
public Vector getSourceResourceTypes()
IObjectTypeHandler
IResourceType
getSourceResourceTypes
in interface IObjectTypeHandler
null
public Vector getTargetResourceTypes()
IObjectTypeHandler
IResourceType
getTargetResourceTypes
in interface IObjectTypeHandler
null
public Properties getProperties()
getProperties
in interface IObjectTypeHandler
public String[] getExtensions()
getExtensions
in interface IObjectTypeHandler
public Vector getMimeTypes()
getMimeTypes
in interface IObjectTypeHandler
public String[] getPaths()
getPaths
in interface IObjectTypeHandler
public void initialize(String name, Vector extensions, Vector mimeTypes, Vector paths, IActionList actionList, Vector resourceTypes, Properties props) throws WcmException
initialize
in interface IObjectTypeHandler
name
- TBD: Description of the incoming method parameterextensions
- TBD: Description of the incoming method parametermimeTypes
- TBD: Description of the incoming method parameterpaths
- TBD: Description of the incoming method parameteractionList
- TBD: Description of the incoming method parameterprops
- TBD: Description of the incoming method parameterresourceTypes
- TBD: Description of the incoming method parameterWcmException
- Exception raised in failure situationpublic void startUpOTH() throws WcmException
WcmException
- Exception raised in failure situationpublic void shutDownOTH() throws WcmException
WcmException
- Exception raised in failure situationAccess 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
|
Copyright 2018 SAP AG Complete Copyright Notice