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:
java.lang.Comparable<Configuration>
public class Configuration extends Commentable implements java.lang.Comparable<Configuration>
A configuration has either - a pid - or a factory pid and an alias (pid) and properties.
-
-
Constructor Summary
Constructors Constructor Description Configuration(java.lang.String pid, java.lang.String factoryPid)
Create a new configuration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Configuration o)
java.lang.String
getFactoryPid()
Return the factory pidjava.lang.String
getPid()
Get the pid.java.util.Dictionary<java.lang.String,java.lang.Object>
getProperties()
Get all properties of the configuration.boolean
isSpecial()
Is this a special configuration?java.lang.String
toString()
-
Methods inherited from class org.apache.sling.provisioning.model.Commentable
getComment, setComment
-
Methods inherited from class org.apache.sling.provisioning.model.Traceable
getLocation, setLocation
-
-
-
-
Method Detail
-
compareTo
public int compareTo(Configuration o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Configuration>
-
getPid
public java.lang.String getPid()
Get the pid. If this is a factory configuration, it returns the alias for the configuration- Returns:
- The pid.
-
getFactoryPid
public java.lang.String getFactoryPid()
Return the factory pid- Returns:
- The factory pid or null.
-
isSpecial
public boolean isSpecial()
Is this a special configuration?- Returns:
- Special config
-
getProperties
public java.util.Dictionary<java.lang.String,java.lang.Object> getProperties()
Get all properties of the configuration.- Returns:
- The properties
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCommentable
-
-