public class CmsConfigurationCopyResource
extends java.lang.Object
Usually used in folder types to copy some default resources to the folder, but also usable for file resources.
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
COPY_AS_NEW
Indicates "copy resources" should be copied with type
CmsResource#COPY_AS_NEW . |
static java.lang.String |
COPY_AS_PRESERVE
Indicates "copy resources" should be copied with type
CmsResource#COPY_PRESERVE_SIBLING . |
static java.lang.String |
COPY_AS_SIBLING
Indicates "copy resources" should be copied with type
CmsResource#COPY_AS_SIBLING . |
构造器和说明 |
---|
CmsConfigurationCopyResource(java.lang.String source,
java.lang.String target,
java.lang.String type)
Creates a new copy resource info container.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getSource()
Returns the source resource.
|
java.lang.String |
getTarget()
Returns the target resource (may contain macros).
|
CmsResourceCopyMode |
getType()
Returns the type of the copy, for example "as new", "as sibling" etc.
|
java.lang.String |
getTypeString()
Returns the copy type as String.
|
boolean |
isTargetWasNull()
Returns
true if the original target configuration was null . |
boolean |
isTypeWasNull()
Returns
true if the original type configuration was null . |
java.lang.String |
toString() |
public static final java.lang.String COPY_AS_NEW
CmsResource#COPY_AS_NEW
.public static final java.lang.String COPY_AS_PRESERVE
CmsResource#COPY_PRESERVE_SIBLING
.public static final java.lang.String COPY_AS_SIBLING
CmsResource#COPY_AS_SIBLING
.public CmsConfigurationCopyResource(java.lang.String source, java.lang.String target, java.lang.String type)
If target is null
, the macro A_CmsResourceType.MACRO_RESOURCE_FOLDER_PATH
is used as default.
If type is null
, the copy type CmsResource#COPY_AS_NEW
is used as default.
source
- the source resourcetarget
- the target resource (may contain macros)type
- the type of the copy, for example "as new", "as sibling" etcpublic java.lang.String getSource()
public java.lang.String getTarget()
public CmsResourceCopyMode getType()
Possible types are org.opencms.file.CmsResource#COPY_AS_NEW
,
org.opencms.file.CmsResource#COPY_AS_SIBLING
and
org.opencms.file.CmsResource#COPY_PRESERVE_SIBLING
.
public java.lang.String getTypeString()
getType()
public boolean isTargetWasNull()
true
if the original target configuration was null
.true
if the original target configuration was null
public boolean isTypeWasNull()
true
if the original type configuration was null
.true
if the original type configuration was null
public java.lang.String toString()
toString
在类中 java.lang.Object
Object.toString()