|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jp.protection.pub.LicenseLocation
public class LicenseLocation
Class that defines location of a license
| Field Summary | |
|---|---|
protected java.lang.String |
licenseFileName
|
protected java.lang.String |
licenseFolder
|
protected boolean |
searchSubFolders
|
static long |
serialVersionUID
|
protected boolean |
userHomeRelative
|
| Constructor Summary | |
|---|---|
LicenseLocation()
Creates a new instance of LicenseLocation |
|
LicenseLocation(java.io.File aLicenseFile)
Creates a new instance of LicenseLocation |
|
LicenseLocation(java.lang.String aLicenseFolder,
java.lang.String aLicenseFileName,
boolean aSearchSubFolders,
boolean aUserHomeRelative)
Creates a new instance of LicenseLocation |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
java.lang.String |
getLicenseFileName()
Returns license file name |
java.util.List<java.io.File> |
getLicenseFiles()
Returns a list of license files for this location |
java.lang.String |
getLicenseFolder()
Returns license folder |
java.lang.String |
getLicenseFolderStr()
Returns textual representation of license folder |
boolean |
isSearchSubFolders()
Returns whether sub-folders should be scanned for a license |
boolean |
isUserHomeRelative()
Returns whether this location is User Home relative |
protected java.util.List<java.io.File> |
list(java.io.File aFolder)
|
void |
setLicenseFileName(java.lang.String licenseFileName)
Specifies license file name |
void |
setLicenseFolder(java.lang.String licenseFolder)
Specifies license folder |
void |
setSearchSubFolders(boolean searchSubFolders)
Specifies whether sub-folders should be scanned for a license |
void |
setUserHomeRelative(boolean userHomeRelative)
Specifies whether license location should be User Home relative |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
protected java.lang.String licenseFolder
protected java.lang.String licenseFileName
protected boolean searchSubFolders
protected boolean userHomeRelative
| Constructor Detail |
|---|
public LicenseLocation()
LicenseLocation
public LicenseLocation(java.lang.String aLicenseFolder,
java.lang.String aLicenseFileName,
boolean aSearchSubFolders,
boolean aUserHomeRelative)
LicenseLocation
aLicenseFolder - license folderaLicenseFileName - license file nameaSearchSubFolders - specifies whether sub-folders should be scanned for a licenseaUserHomeRelative - specifies whether license location is User Home relativepublic LicenseLocation(java.io.File aLicenseFile)
LicenseLocation
aLicenseFile - a file denotes exact location for a license| Method Detail |
|---|
public java.util.List<java.io.File> getLicenseFiles()
protected java.util.List<java.io.File> list(java.io.File aFolder)
public boolean isUserHomeRelative()
true if this location is User Home relative; false otherwisepublic boolean isSearchSubFolders()
true if sub-folders should be scanned for a license; false otherwisepublic java.lang.String getLicenseFolder()
public java.lang.String getLicenseFolderStr()
public void setLicenseFileName(java.lang.String licenseFileName)
licenseFileName - license file namepublic void setUserHomeRelative(boolean userHomeRelative)
userHomeRelative - true if license location should be User Home relative;false otherwisepublic void setSearchSubFolders(boolean searchSubFolders)
searchSubFolders - true if sub-folders should be scanned for a license;falsepublic void setLicenseFolder(java.lang.String licenseFolder)
licenseFolder - license folderpublic java.lang.String getLicenseFileName()
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||