Class Configuration
java.lang.Object
org.apache.sling.provisioning.model.Traceable
org.apache.sling.provisioning.model.Commentable
org.apache.sling.provisioning.model.Configuration
- All Implemented Interfaces:
Comparable<Configuration>
A configuration has either
- a pid
- or a factory pid and an alias (pid)
and properties.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.sling.provisioning.model.Commentable
getComment, setComment
Methods inherited from class org.apache.sling.provisioning.model.Traceable
getLocation, setLocation
-
Constructor Details
-
Configuration
Create a new configuration- Parameters:
pid
- The pid or alias for a factory pidfactoryPid
- The factory pid
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Configuration>
-
getPid
Get the pid. If this is a factory configuration, it returns the alias for the configuration- Returns:
- The pid.
-
getFactoryPid
Return the factory pid- Returns:
- The factory pid or null.
-
isSpecial
public boolean isSpecial()Is this a special configuration?- Returns:
- Special config
-
getProperties
Get all properties of the configuration.- Returns:
- The properties
-
toString
- Overrides:
toString
in classCommentable
-