|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.jdeveloper.audit.service.ProfileRepository
public class ProfileRepository
A persistent repository of profilesByName. The repository is maintained in a directory in the IDE system directory. The file names are controlled here; the profile names are stored within the files and extracted when needed.
| Field Summary | |
|---|---|
static java.lang.String |
ALL_METRICS |
static java.lang.String |
ALL_RULES |
static java.lang.String |
AUDIT_RULES |
static java.lang.String |
CODE_ASSIST_RULES |
static java.lang.String |
COMPILE_RULES |
static java.lang.String |
STATUS_RULES |
| Method Summary | |
|---|---|
void |
close()Closes this repository. |
void |
delete(Profile profile)Deletes a profile. |
boolean |
exists(java.lang.String name)Gets whether this repository has a profile with a specified name. |
Profile |
getDefaultProfile(java.lang.String id)Gets the default profile with a specified id from this repository. |
Profile |
getProfile(java.lang.String name)Gets a profile with a specified name from this repository. |
Profile |
getProfile(java.lang.String name, java.lang.String id)Gets a profile with a specified name from this repository, or the default profile with a specified id otherwise. |
java.util.List<Profile> |
getProfiles()Gets the profiles in this repository. |
static ProfileRepository |
getRepository()Gets a profile repository. |
static java.lang.String |
normalizeProfileName(java.lang.String name) |
static java.net.URL |
profileDirectory() |
static java.net.URL |
profileDirectory(java.net.URL system) |
static java.lang.String |
sanitizeFileName(java.lang.String name) |
void |
save(Profile profile)Saves a profile to a profile file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ALL_RULES
public static final java.lang.String ALL_METRICS
public static final java.lang.String AUDIT_RULES
public static final java.lang.String CODE_ASSIST_RULES
public static final java.lang.String STATUS_RULES
public static final java.lang.String COMPILE_RULES
| Method Detail |
|---|
public static ProfileRepository getRepository()
public java.util.List<Profile> getProfiles()
public boolean exists(java.lang.String name)
name - The case-insensitive name of the profile.public Profile getProfile(java.lang.String name)
name - The case-insensitive name of the profile.
public Profile getProfile(java.lang.String name,
java.lang.String id)
name - The case-insensitive name of the profile.id - A creation key supplied to the constructor of a default profile.public Profile getDefaultProfile(java.lang.String id)
id - The id of a registered default profile.
public void save(Profile profile)
throws java.io.IOException
profile - The profile to save.java.io.IOExceptionpublic void delete(Profile profile)
profile - The profile to delete.public void close()
public static java.net.URL profileDirectory()
public static java.net.URL profileDirectory(java.net.URL system)
public static java.lang.String normalizeProfileName(java.lang.String name)
public static java.lang.String sanitizeFileName(java.lang.String name)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||