|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.repository.NameInfo
public class NameInfo
This object contains information about the restrictions for resource and
collection names of a specific repository. This information should be
provided by any repository via the IRepositoryManager.getNameInfo()
method.
The implementation of this object ensures that the WCM framework's restrictions are added. The WCM framework enforced the following restrictions on the namespace of all repositories for new resources and collections. Reserved/forbidden characters in resource and collection names: '/', '\', '?' Maximum length of name and path: 2048 characters
Copyright 2004 SAP AG
| Constructor Summary | |
|---|---|
NameInfo(char[] resNameChars,
char[] collNameChars,
int maxNameLength,
int maxPathLength)
Construct a new name info |
|
NameInfo(NameInfo obj,
char[] resNameChars,
String[] deniedExtensions,
boolean noExtension)
From the given NameInfo object constructs a new object and adds the restricted extensions and characters to it |
|
| Method Summary | |
|---|---|
void |
checkExtension(String name,
IResource resource)
|
void |
checkName(String name)
|
void |
checkName(String name,
IResource res)
|
String[] |
getDeniedExtensions()
|
int |
getMaxNameLength()
Returns the maximum length for resource names |
int |
getMaxPathLength()
Returns the maximum path length |
char[] |
getReservedCollectionNameChars()
Returns the array of reserved or forbidden characters in collection names |
char[] |
getReservedResourceNameChars()
Returns the array of reserved or forbidden characters in resource names |
boolean |
isNoExtension()
|
void |
setDeniedExtensions(String[] deniedExtensions)
|
void |
setNoExtension(boolean noExtension)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NameInfo(char[] resNameChars,
char[] collNameChars,
int maxNameLength,
int maxPathLength)
resNameChars - An array of reserved or forbidden characters in
resource namescollNameChars - An array of reserved or forbidden characters in
collection namesmaxNameLength - The maximum length for resource names.maxPathLength - The maximum path length. The max. path length will not be checked by the framework.
public NameInfo(NameInfo obj,
char[] resNameChars,
String[] deniedExtensions,
boolean noExtension)
obj - existing NameInfo objectresNameChars - additional characters to restrictdeniedExtensions - additional extensions to restrictnoExtension - flag which is true if resource names without extensions are denied| Method Detail |
|---|
public String toString()
toString in class Objectpublic char[] getReservedResourceNameChars()
public char[] getReservedCollectionNameChars()
public int getMaxNameLength()
public int getMaxPathLength()
public void checkName(String name)
throws InvalidNameException
InvalidNameException
public void checkName(String name,
IResource res)
throws InvalidNameException
InvalidNameException
public void checkExtension(String name,
IResource resource)
throws WcmException
WcmExceptionpublic String[] getDeniedExtensions()
public void setDeniedExtensions(String[] deniedExtensions)
public boolean isNoExtension()
public void setNoExtension(boolean noExtension)
| 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 | |||||||||