Package org.xwiki.xar.type
Class AbstractXarEntryType
- java.lang.Object
-
- org.xwiki.xar.type.AbstractXarEntryType
-
- All Implemented Interfaces:
XarEntryType
public abstract class AbstractXarEntryType extends Object implements XarEntryType
Base class helper to implementXarEntryType
.- Since:
- 10.3
- Version:
- $Id: b782d45a9cfa52c8ff842555d8fb79c060c0162b $
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.xwiki.xar.XarEntryType
XarEntryType.UpgradeType
-
-
Constructor Summary
Constructors Constructor Description AbstractXarEntryType(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
XarEntryType.UpgradeType
getUpgradeType()
boolean
isDeleteAllowed()
boolean
isEditAllowed()
void
setDeleteAllowed(boolean deleteAllowed)
void
setEditAllowed(boolean editAllowed)
void
setUpgradeType(XarEntryType.UpgradeType upgradeType)
-
-
-
Constructor Detail
-
AbstractXarEntryType
public AbstractXarEntryType(String name)
- Parameters:
name
- the name of the type
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceXarEntryType
- Returns:
- the name of the type
-
isEditAllowed
public boolean isEditAllowed()
- Specified by:
isEditAllowed
in interfaceXarEntryType
- Returns:
- true if editing this document is allowed
-
setEditAllowed
public void setEditAllowed(boolean editAllowed)
- Parameters:
editAllowed
- true if editing this document is allowed
-
isDeleteAllowed
public boolean isDeleteAllowed()
- Specified by:
isDeleteAllowed
in interfaceXarEntryType
- Returns:
- true if deleting this document is allowed
-
setDeleteAllowed
public void setDeleteAllowed(boolean deleteAllowed)
- Parameters:
deleteAllowed
- true if deleting this document is allowed
-
getUpgradeType
public XarEntryType.UpgradeType getUpgradeType()
- Specified by:
getUpgradeType
in interfaceXarEntryType
- Returns:
- the upgrade behavior
-
setUpgradeType
public void setUpgradeType(XarEntryType.UpgradeType upgradeType)
- Parameters:
upgradeType
- the upgrade behavior
-
-