Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for Policy (0.09 sec)

  1. compat/maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java

        }
    
        public void merge(ArtifactRepositoryPolicy policy) {
            if (policy != null && policy.isEnabled()) {
                setEnabled(true);
    
                if (ordinalOfCksumPolicy(policy.getChecksumPolicy()) < ordinalOfCksumPolicy(getChecksumPolicy())) {
                    setChecksumPolicy(policy.getChecksumPolicy());
                }
    
                if (ordinalOfUpdatePolicy(policy.getUpdatePolicy()) < ordinalOfUpdatePolicy(getUpdatePolicy())) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorUtils.java

            boolean enabled = true;
            String checksums = toRepositoryChecksumPolicy(RepositoryPolicy.CHECKSUM_POLICY_WARN); // the default
            String updates = RepositoryPolicy.UPDATE_POLICY_DAILY;
    
            if (policy != null) {
                enabled = policy.isEnabled();
                if (policy.getUpdatePolicy() != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. cmd/iam.go

    	sessionPolicyArgs.IsOwner = false
    
    	// Sub policy is set and valid.
    	return hasSessionPolicy, subPolicy.IsAllowed(sessionPolicyArgs)
    }
    
    // GetCombinedPolicy returns a combined policy combining all policies
    func (sys *IAMSys) GetCombinedPolicy(policies ...string) policy.Policy {
    	_, policy := sys.store.MergePolicies(strings.Join(policies, ","))
    	return policy
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

            File repoDir = new File(getBasedir(), "src/test/remote-repo").getAbsoluteFile();
    
            RepositoryPolicy policy = new RepositoryPolicy();
            policy.setEnabled(true);
            policy.setChecksumPolicy("ignore");
            policy.setUpdatePolicy("always");
    
            Repository repository = new Repository();
            repository.setId(RepositorySystem.DEFAULT_REMOTE_REPO_ID);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadata.java

         * @return The artifact quality this metadata refers to.
         */
        int getNature();
    
        /**
         * Gets the policy that applies to this metadata regarding the specified repository.
         *
         * @param repository The repository for which to determine the policy, must not be {@code null}.
         * @return The policy, never {@code null}.
         */
        ArtifactRepositoryPolicy getPolicy(ArtifactRepository repository);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicyTest.java

    @Deprecated
    class DefaultGraphConflictResolutionPolicyTest {
        GraphConflictResolutionPolicy policy;
        MetadataGraphEdge e1;
        MetadataGraphEdge e2;
        MetadataGraphEdge e3;
    
        // ------------------------------------------------------------------------------------------
        @BeforeEach
        void setUp() throws Exception {
            policy = new DefaultGraphConflictResolutionPolicy();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/profiles/ProfilesConversionUtils.java

            org.apache.maven.model.RepositoryPolicy policy = new org.apache.maven.model.RepositoryPolicy();
            policy.setEnabled(profileXmlRepo.isEnabled());
            policy.setUpdatePolicy(profileXmlRepo.getUpdatePolicy());
            policy.setChecksumPolicy(profileXmlRepo.getChecksumPolicy());
            return policy;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java

    /**
     * Default conflict resolver.Implements closer newer first policy by default, but could be configured via plexus
     *
     */
    @Named
    @Singleton
    @Deprecated
    public class DefaultGraphConflictResolver implements GraphConflictResolver {
        /**
         * artifact, closer to the entry point, is selected
         */
        @Inject
        protected GraphConflictResolutionPolicy policy;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                    ArtifactRepositoryPolicy policy = metadata.getPolicy(repository);
    
                    File file =
                            new File(localRepo.getBasedir(), localRepo.pathOfLocalRepositoryMetadata(metadata, repository));
                    boolean update;
    
                    if (!policy.isEnabled()) {
                        update = false;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

        @Override
        public boolean isUpdateRequired(Artifact artifact, ArtifactRepository repository) {
            File file = artifact.getFile();
    
            ArtifactRepositoryPolicy policy = artifact.isSnapshot() ? repository.getSnapshots() : repository.getReleases();
    
            if (!policy.isEnabled()) {
                if (getLogger().isDebugEnabled()) {
                    getLogger()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top