Package net.shibboleth.profile.plugin
Class PropertyDrivenPlugin.PackageDescriptor
java.lang.Object
net.shibboleth.profile.plugin.PropertyDrivenPlugin.PackageDescriptor
- All Implemented Interfaces:
Plugin.Package
- Enclosing class:
- PropertyDrivenPlugin<T extends Module>
private static class PropertyDrivenPlugin.PackageDescriptor
extends Object
implements Plugin.Package
Implementation of
Plugin.Package for our use.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringWhat to return toPlugin.Package.getDestinationName().private final booleanWhat to return toPlugin.Package.isNonWindows().private final StringWhat to return toPlugin.Package.getSourceName().private final booleanWhat to return toPlugin.Package.isStripTopLevelDir().private final booleanWhat to return toPlugin.Package.isWindows(). -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePackageDescriptor(String src, String dest, boolean nonWin, boolean win, boolean stripTld) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean.Where the file/string has to be unpacked to (relative to idp.home).Where in the zip file is the file.inthashCode().booleanIs this package for non-windows Only?booleanIs there a meaningless top level directory?booleanIs this package for Windows Only?
-
Field Details
-
source
What to return toPlugin.Package.getSourceName(). -
destination
What to return toPlugin.Package.getDestinationName(). -
nonWindows
private final boolean nonWindowsWhat to return toPlugin.Package.isNonWindows(). -
windows
private final boolean windowsWhat to return toPlugin.Package.isWindows(). -
stripToplLevelDir
private final boolean stripToplLevelDirWhat to return toPlugin.Package.isStripTopLevelDir().
-
-
Constructor Details
-
PackageDescriptor
private PackageDescriptor(@Nonnull String src, @Nonnull String dest, boolean nonWin, boolean win, boolean stripTld) Constructor.- Parameters:
src- forgetSourceName()dest- forgetDestinationName()nonWin- forisNonWindows()win- forisWindows()
-
-
Method Details
-
getSourceName
Where in the zip file is the file.- Specified by:
getSourceNamein interfacePlugin.Package- Returns:
- the location.
-
getDestinationName
Where the file/string has to be unpacked to (relative to idp.home).- Specified by:
getDestinationNamein interfacePlugin.Package- Returns:
- the location
-
isWindows
public boolean isWindows()Is this package for Windows Only?- Specified by:
isWindowsin interfacePlugin.Package- Returns:
- true if it is
-
isNonWindows
public boolean isNonWindows()Is this package for non-windows Only?- Specified by:
isNonWindowsin interfacePlugin.Package- Returns:
-
isStripTopLevelDir
public boolean isStripTopLevelDir()Is there a meaningless top level directory?- Specified by:
isStripTopLevelDirin interfacePlugin.Package
-
equals
. Hashing and equality is slightly weird because we want to deduplicate on {destinationonly -
hashCode
public int hashCode(). Hashing and equality is slightly weird because we want to deduplicate on {destinationonly
-